public class AltitudeController extends UavController
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | aglAltitudetrue if commanded altitude is above ground level (false for mean sea level) | 
| protected double | altitudeCommandcommanded altitude | 
| protected double | cruiseTASnormal cruise true air speed | 
| protected boolean | fixedClimbRatetrue if climb rate is specifically commanded (closed loop rate vs altitude control) | 
| protected boolean | manualAltitudeControltrue if altitude control is open loop (manual engine power control) | 
| protected double | minCommandAltitudeminimum altitude that can be commanded | 
| protected double | orderedZDotordered climb rate if control is manual | 
| static double | STANDARD_RATE_CLIMBstandard climb rate (500' per minute in meters per second) | 
aileronCommand, alongTrackRange, correctToTrack, crossTrackError, error, errorIntegral, maxIntegral, offTrackAngleDegrees, pdOnlyTime, powerCommand, psiError, reset, rudderCommand, stabilatorCommand, timePIDControl, uavExecution, xCommand, xStart, yCommand, yStart| Constructor and Description | 
|---|
| AltitudeController(UavExecution execution)Creates a new instance of AltitudeController | 
| Modifier and Type | Method and Description | 
|---|---|
| void | computeControls()computes uavExecution controls based on type of controller and current state/command | 
setControls, updateCrossTrackErrorprotected double minCommandAltitude
protected double cruiseTAS
protected double altitudeCommand
protected boolean aglAltitude
public static final double STANDARD_RATE_CLIMB
protected boolean manualAltitudeControl
protected boolean fixedClimbRate
protected double orderedZDot
public AltitudeController(UavExecution execution)
execution - UavExecution instancepublic void computeControls()
computeControls in class UavController