#include <Guide.h>
Public Member Functions | |
Guide () | |
Default Constructor. | |
Guide (GeoCoord &pos) | |
Constructor. | |
~Guide () | |
Destructor. | |
FlightPlan * | getFlightPlan () |
Gets the FlightPlan data. | |
void | computeCrossTrack () |
Calculates how far the vehicle deflects from current position and adds current position and temporary waypoint to the list of waypoints if the error were more than permitted. | |
void | setPosition (GeoCoord &pos) |
Sets the current position. | |
Private Attributes | |
FlightPlan | flightplan |
Creates object member named flightplan from FlightPlan class. | |
GeoCoord | m_currentPosition |
Creates object member named m_currentPosition from GeoCoord class. |
Guide class.
This class gets the FlightPlan data, compute cross track error, assigns new waypoints when error is beyond limit, and gets the current position of the vehicle.
Definition at line 35 of file Guide.h.
uvsim::Guide::Guide | ( | GeoCoord & | pos | ) |
void uvsim::Guide::computeCrossTrack | ( | ) |
Calculates how far the vehicle deflects from current position and adds current position and temporary waypoint to the list of waypoints if the error were more than permitted.
The calculation is based on autopilot.
Definition at line 49 of file Guide.cc.
FlightPlan * uvsim::Guide::getFlightPlan | ( | ) |
Gets the FlightPlan data.
Definition at line 44 of file Guide.cc.
void uvsim::Guide::setPosition | ( | GeoCoord & | pos | ) |
FlightPlan uvsim::Guide::flightplan [private] |
Creates object member named flightplan from FlightPlan class.
GeoCoord uvsim::Guide::m_currentPosition [private] |