public class DepthController extends UuvController
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | altitudeControltrue if depth control is based on altitude above the bottom (as opposed to depth) | 
| protected double | ballastCommandballast command setting | 
| protected double | bowPlaneCommandcommanded bow plane setting | 
| protected boolean | depthControlResettrue if a new depth was specified this loop | 
| protected double | GLIDER_DEPTH_MAXIMUM | 
| protected double | GLIDER_DEPTH_MINIMUMGLIDER DEPTHCONTROL CONSTANTS | 
| protected double | GLIDER_PITCH_MAXIMUM | 
| protected double | GLIDER_PITCH_MINIMUM | 
| protected boolean | openLoopDepthtrue if planes and/or vertical thrusters are being manually controlled | 
| protected double | sternPlaneCommandcommanded stern plane setting | 
alongTrackRange, bowLateralThrusterCommand, bowVerticalThrusterCommand, correctToTrack, crossTrackError, depthError, depthErrorIntegral, depthPidTime, MAXDEPTHERROR, offTrackAngleDegrees, openLoopHeading, pdOnlyTime, portPropellerCommand, psiCommand, psiError, rudderCommand, speedControlReset, speedError, stbdPropellerCommand, sternLateralThrusterCommand, sternVerticalThrusterCommand, thetaCommand, THRUSTCONVERSION, turningRpm, uuvExecution, zCommand| Constructor and Description | 
|---|
| DepthController(UuvExecution execution)Creates a new instance of DepthController | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | computeBallast() | 
| void | computeControls()Computes plane and vertical thruster control settings for depth control | 
| protected void | computePlanes()Computes settings for bow and stern planes | 
| double | getBallastCommand() | 
| double | getBowPlaneCommand() | 
| double | getBowVerticalThrusterCommand() | 
| void | getGpsFix()Requires the vehicle to surface and obtain a GPS fix
 Surfaces vehicle for 30 seconds plus a 3 seconds per meter surface rate | 
| double | getSternPlaneCommand() | 
| double | getSternVerticalThrusterCommand() | 
| double | getThetaCommand() | 
| double | getZCommand() | 
| void | readControls()read uuv controls from an external source, default implementation is to compute them | 
| void | setControls()Sets the vertical thrusters, bow planes and stern planes according to the computed values
 Overrides the parent class method to effect depth rather than horizontal relevant controls | 
adjustPropellersForSteeringIfNoRudders, checkRudderAvailable, computeLateralThrusterCommands, computePropellerCommands, computeRudderCommands, computeVerticalThrusterCommands, getBowLateralThrusterCommand, getCrossTrackError, getPortPropellerCommand, getPsiCommand, getRudderCommand, getSpeedCommand, getStbdPropellerCommand, getSternLateralThrusterCommand, isClosedLoopSpeed, setCommandedSpeed, setPropellersRPM, unsetClosedLoopSpeed, updateCrossTrackErrorprotected final double GLIDER_DEPTH_MINIMUM
protected final double GLIDER_DEPTH_MAXIMUM
protected final double GLIDER_PITCH_MAXIMUM
protected final double GLIDER_PITCH_MINIMUM
protected boolean depthControlReset
protected boolean altitudeControl
protected boolean openLoopDepth
protected double ballastCommand
protected double bowPlaneCommand
protected double sternPlaneCommand
public DepthController(UuvExecution execution)
execution - UuvExecution reference to main class of AUVpublic void setControls()
setControls in class UuvControllerpublic void readControls()
UuvControllerreadControls in class UuvControllerpublic void computeControls()
computeControls in class UuvControllerprotected void computePlanes()
public double getBowPlaneCommand()
public double getBowVerticalThrusterCommand()
public double getSternPlaneCommand()
public double getSternVerticalThrusterCommand()
public double getThetaCommand()
getThetaCommand in class UuvControllerpublic double getZCommand()
protected void computeBallast()
public double getBallastCommand()
public void getGpsFix()