public class WaypointController extends UgvController
| Modifier and Type | Field and Description | 
|---|---|
| protected double | lastPsiCommand | 
| protected boolean | newWaypoint | 
alongTrackRange, closedLoopSpeed, commandedSpeed, controlledPsi, correctToTrack, crossTrackError, leftTrackCommand, maxTrackDif, offTrackAngleDegrees, psiCommand, rightTrackCommand, ugvExecution| Constructor and Description | 
|---|
| WaypointController(UgvExecution execution)Creates a new instance of WaypointController | 
| Modifier and Type | Method and Description | 
|---|---|
| void | computeControls()computes ugvExecution controls based on type of controller and current state/command | 
| protected boolean | waypointAchieved(double waypointDistance,
                double waypointAngle)Determines whether the UGV is close enough to the waypoint to consider it achieved | 
computeControls, setControls, setOpenLoopPsi, setPsiCommand, setSpeed, setTrackSpeed, setTrackSpeed, updateCrossTrackErrorprotected boolean newWaypoint
protected double lastPsiCommand
public WaypointController(UgvExecution execution)
execution - TrackedUgvExecution reference to main class of UGVpublic void computeControls()
UgvControllercomputeControls in class UgvControllerprotected boolean waypointAchieved(double waypointDistance,
                       double waypointAngle)
waypointDistance - current distance from commanded waypointwaypointAngle - current required heading to the waypoint