public class AirspeedController extends UavController
Modifier and Type | Field and Description |
---|---|
protected boolean |
knotsSpeed
set to true if speed control is in knots (false is meters or feet per second)
|
protected boolean |
manualSpeedControl
true if airspeed (elevator) is being manually controlled
|
protected double |
minCommandKnots
Minimum commanded speed (knots)
|
protected double |
minCommandSpeed
Minimum commanded speed (meters per second)
|
protected double |
speedCommand
commanded 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, updateCrossTrackError
protected 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 UavController
public void setMinSpeed(double newValue)
newValue
- new valuepublic void setMinKnots(double newValue)
newValue
- new value