Beispiel #1
0
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())
Beispiel #2
0
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())
Beispiel #3
0
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)
Beispiel #4
0
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)