public class WaypointController extends UsvController
Modifier and Type | Field and Description |
---|---|
protected double |
cumulativeTurn
cumulative amount of turn in attempt to reach this waypoint (360 would mean a full circle
|
protected double |
MAXSPDTURNRADIUS
turn-radius-based factor used to determine whether the usvExecution can make the turn
to achieve a waypoint given its current position, heading, and rpm
|
boolean |
newWaypoint
reset death spiral detection variables (true when waypoint initially commanded)
|
protected double |
previousPsi
vehicle heading on previous closed loop iteration
|
alongTrackRange, correctToTrack, crossTrackError, offTrackAngleDegrees, propCommand, psiCommand, psiError, rudderCommand, THRUSTCONVERSION, usvExecution
Constructor and Description |
---|
WaypointController(UsvExecution execution)
Creates a new instance of WaypointController
|
Modifier and Type | Method and Description |
---|---|
void |
computeControls()
Computes control settings for waypoint control
|
computeRudderCommands, setControls, updateCrossTrackError
protected final double MAXSPDTURNRADIUS
public boolean newWaypoint
protected double cumulativeTurn
protected double previousPsi
public WaypointController(UsvExecution execution)
execution
- UsvExecution reference to main class of USVpublic void computeControls()
computeControls
in class UsvController