Remember, sharing is caring!
..The fuck is this supposed to mean? We're expected to shill for this movie because we're geeks? Disgusting.
It's not entirely clear if it's the AIMs that failed, or if something else sized up the shafts first.
The article states that two of four bearings on the driveshaft(s) that connect the AIMs to the propulsion system (reads, gearbox and screws) failed due to water ingress. If that's two shafts per propulsion set (AIM, gears and screws) and one on each side blew, then yeah, thats going to put you dead in the water.
What is not clear is if there are multiple shafts that can load balance AIM torque across to the propulsion set equally, or two shafts per AIM, each going to a port and starboard gearbox/screw. Whats even less clear is the redundancy. In either of the above setups there is at least two shafts available, why can't these things make it home on one shaft if the system was indeed supposed to be redundant? Even a stanking old B-47 can limp home on one.
I've noticed several design suggestions in your code.