public class HeadingController extends UavController
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | fixedTurnRatetrue if climb rate is specifically commanded (closed loop rate vs altitude control) | 
| protected boolean | manualHeadingControltrue if rudder and ailerons are being controlled manually | 
| protected double | orderedPsiDotordered climb rate if control is manual | 
| protected double | psiCommandcommanded heading | 
| static double | STANDARD_RATE_TURNstandard turn rate (degrees per second) | 
| protected double | turnRateMultiplemultiple 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, updateCrossTrackErrorprotected 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