public class HeadingController extends UavController
Modifier and Type | Field and Description |
---|---|
protected boolean |
fixedTurnRate
true if climb rate is specifically commanded (closed loop rate vs altitude control)
|
protected boolean |
manualHeadingControl
true if rudder and ailerons are being controlled manually
|
protected double |
orderedPsiDot
ordered climb rate if control is manual
|
protected double |
psiCommand
commanded heading
|
static double |
STANDARD_RATE_TURN
standard turn rate (degrees per second)
|
protected double |
turnRateMultiple
multiple applied to standard turn rate to determine commanded turn rate
|
aileronCommand, alongTrackRange, correctToTrack, crossTrackError, error, errorIntegral, maxIntegral, offTrackAngleDegrees, pdOnlyTime, powerCommand, psiError, reset, rudderCommand, stabilatorCommand, timePIDControl, uavExecution, xCommand, xStart, yCommand, yStart
Constructor and Description |
---|
HeadingController(UavExecution execution)
Creates a new instance of HeadingController
|
Modifier and Type | Method and Description |
---|---|
void |
computeControls()
computes uavExecution controls based on type of controller and current state/command
|
setControls, updateCrossTrackError
protected double psiCommand
public static final double STANDARD_RATE_TURN
protected double turnRateMultiple
protected boolean manualHeadingControl
protected boolean fixedTurnRate
protected double orderedPsiDot
public HeadingController(UavExecution execution)
execution
- UavExecution instancepublic void computeControls()
computeControls
in class UavController