public class DepthController extends UuvController
Modifier and Type | Field and Description |
---|---|
protected boolean |
altitudeControl
true if depth control is based on altitude above the bottom (as opposed to depth)
|
protected double |
ballastCommand
ballast command setting
|
protected double |
bowPlaneCommand
commanded bow plane setting
|
protected boolean |
depthControlReset
true if a new depth was specified this loop
|
protected double |
GLIDER_DEPTH_MAXIMUM |
protected double |
GLIDER_DEPTH_MINIMUM
GLIDER DEPTHCONTROL CONSTANTS
|
protected double |
GLIDER_PITCH_MAXIMUM |
protected double |
GLIDER_PITCH_MINIMUM |
protected boolean |
openLoopDepth
true if planes and/or vertical thrusters are being manually controlled
|
protected double |
sternPlaneCommand
commanded 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, updateCrossTrackError
protected 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 UuvController
public void readControls()
UuvController
readControls
in class UuvController
public void computeControls()
computeControls
in class UuvController
protected void computePlanes()
public double getBowPlaneCommand()
public double getBowVerticalThrusterCommand()
public double getSternPlaneCommand()
public double getSternVerticalThrusterCommand()
public double getThetaCommand()
getThetaCommand
in class UuvController
public double getZCommand()
protected void computeBallast()
public double getBallastCommand()
public void getGpsFix()