public class LoiterController extends UavController
Modifier and Type | Field and Description |
---|---|
protected double |
loiterAltitude
MSL altitude to maintain at the loiter point
|
protected boolean |
pointAchieved
Set to true after reaching the loiter point
|
protected double |
xCommand
x position of the commanded loiter point
|
protected double |
yCommand
y 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, updateCrossTrackError
protected double xCommand
protected double yCommand
protected double loiterAltitude
protected boolean pointAchieved
public LoiterController(UavExecution execution)
execution
- UavExecution instancepublic void computeControls()
computeControls
in class UavController