public class LoiterController extends UavController
| Modifier and Type | Field and Description | 
|---|---|
| protected double | loiterAltitudeMSL altitude to maintain at the loiter point | 
| protected boolean | pointAchievedSet to true after reaching the loiter point | 
| protected double | xCommandx position of the commanded loiter point | 
| protected double | yCommandy position of the commanded loiter point | 
aileronCommand, alongTrackRange, correctToTrack, crossTrackError, error, errorIntegral, maxIntegral, offTrackAngleDegrees, pdOnlyTime, powerCommand, psiError, reset, rudderCommand, stabilatorCommand, timePIDControl, uavExecution, xStart, yStart| Constructor and Description | 
|---|
| LoiterController(UavExecution execution)Creates a new instance of LoiterController | 
| Modifier and Type | Method and Description | 
|---|---|
| void | computeControls()computes uavExecution controls based on type of controller and current state/command | 
setControls, updateCrossTrackErrorprotected double xCommand
protected double yCommand
protected double loiterAltitude
protected boolean pointAchieved
public LoiterController(UavExecution execution)
execution - UavExecution instancepublic void computeControls()
computeControls in class UavController