![]() |
DUNE: Uniform Navigational Environment
2016.05.0
|
Class to parse a rows maneuver and to create and fire each stage.
Public Member Functions | |
RowsStages (const IMC::Rows *maneuver, Tasks::Task *task) | |
bool | getNextPoint (double *lat, double *lon) |
bool | getFirstPoint (double *lat, double *lon) |
float | getDistance (double *lat, double *lon) |
std::vector< float > ::const_iterator | getDistancesBegin (void) |
std::vector< float > ::const_iterator | getDistancesEnd (void) |
unsigned | getIndex (void) |
DUNE::Maneuvers::RowsStages::RowsStages | ( | const IMC::Rows * | maneuver, |
Tasks::Task * | task | ||
) |
Default constructor.
[in] | maneuver | pointer to rows maneuver |
[in] | task | pointer to task object (debug and inf) |
References DUNE::Math::Angles::rotate().
float DUNE::Maneuvers::RowsStages::getDistance | ( | double * | lat, |
double * | lon | ||
) |
Get total distance and last point coordinates.
[out] | lat | latitude of last point found |
[out] | lon | longitude of last point found |
|
inline |
Get an iterator to all_distances begin()
|
inline |
Get an iterator to all_distances begin()
bool DUNE::Maneuvers::RowsStages::getFirstPoint | ( | double * | lat, |
double * | lon | ||
) |
Get first point.
[out] | lat | latitude of current point |
[out] | lon | longitude of current point |
|
inline |
Get current point index.
bool DUNE::Maneuvers::RowsStages::getNextPoint | ( | double * | lat, |
double * | lon | ||
) |
Get next point.
[out] | lat | latitude of current point |
[out] | lon | longitude of current point |