public class AltitudeController extends UavController
Modifier and Type | Field and Description |
---|---|
protected boolean |
aglAltitude
true if commanded altitude is above ground level (false for mean sea level)
|
protected double |
altitudeCommand
commanded altitude
|
protected double |
cruiseTAS
normal cruise true air speed
|
protected boolean |
fixedClimbRate
true if climb rate is specifically commanded (closed loop rate vs altitude control)
|
protected boolean |
manualAltitudeControl
true if altitude control is open loop (manual engine power control)
|
protected double |
minCommandAltitude
minimum altitude that can be commanded
|
protected double |
orderedZDot
ordered climb rate if control is manual
|
static double |
STANDARD_RATE_CLIMB
standard 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, updateCrossTrackError
protected 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