def unsafe(): """ Unsafes the thrusters on the vehicle, stops every motion the vehicle may be trying to do, and resets the depth to avoid any complications while unsafing the thrusters. @requires vehicle """ controller.setDepth(vehicle.getDepth()) allStop() # This is unsafe, since this doesn't always work vehicle.unsafeThrusters() controller.setDepth(vehicle.getDepth())
def up(depthChange, speed=0.3): """ Move the vehicle upward by the specified value. @param depthChange Distance upwards to move. @param speed Speed of the dive @requires vehicle, motionManager """ diveTo(vehicle.getDepth() - depthChange, speed=speed)
def up(depthChange, speed = 0.3): """ Move the vehicle upward by the specified value. @param depthChange Distance upwards to move. @param speed Speed of the dive @requires vehicle, motionManager """ diveTo(vehicle.getDepth() - depthChange, speed = speed)