public class AirspeedController extends UavController
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | knotsSpeedset to true if speed control is in knots (false is meters or feet per second) | 
| protected boolean | manualSpeedControltrue if airspeed (elevator) is being manually controlled | 
| protected double | minCommandKnotsMinimum commanded speed (knots) | 
| protected double | minCommandSpeedMinimum commanded speed (meters per second) | 
| protected double | speedCommandcommanded true air speed | 
aileronCommand, alongTrackRange, correctToTrack, crossTrackError, error, errorIntegral, maxIntegral, offTrackAngleDegrees, pdOnlyTime, powerCommand, psiError, reset, rudderCommand, stabilatorCommand, timePIDControl, uavExecution, xCommand, xStart, yCommand, yStart| Constructor and Description | 
|---|
| AirspeedController(UavExecution execution)Creates a new instance of AirspeedController | 
| Modifier and Type | Method and Description | 
|---|---|
| void | computeControls()computes uavExecution controls based on type of controller and current state/command | 
| void | setMinKnots(double newValue)sets the uavExecution minimum commanded speed | 
| void | setMinSpeed(double newValue)sets the uavExecution minimum commanded speed | 
setControls, updateCrossTrackErrorprotected boolean knotsSpeed
protected double speedCommand
protected boolean manualSpeedControl
protected double minCommandSpeed
protected double minCommandKnots
public AirspeedController(UavExecution execution)
execution - UavExecution instancepublic void computeControls()
computeControls in class UavControllerpublic void setMinSpeed(double newValue)
newValue - new valuepublic void setMinKnots(double newValue)
newValue - new value