DUNE: Uniform Navigational Environment
2016.05.0
|
Loiter maneuver.
Public Types | |
enum | LoiterTypes { LTYPE_CIRCULAR, LTYPE_FIGURE_EIGHT } |
Public Member Functions | |
Loiter (Maneuvers::Maneuver *task, LoiterArgs *args) | |
~Loiter (void) | |
LoiterTypes | getType (IMC::Loiter::LoiterTypeEnum type) |
void | onStart (const IMC::Loiter *maneuver) |
void | onPathControlState (const IMC::PathControlState *pcs) |
void | onEstimatedState (const IMC::EstimatedState *msg) |
Public Member Functions inherited from Maneuver::Multiplexer::MuxedManeuver< IMC::Loiter, LoiterArgs > | |
MuxedManeuver (Maneuvers::Maneuver *task, LoiterArgs *args) | |
MuxedManeuver (Maneuvers::Maneuver *task) | |
virtual | ~MuxedManeuver (void) |
void | start (const IMC::Maneuver *maneuver) |
Public Member Functions inherited from Maneuver::Multiplexer::AbstractMux | |
AbstractMux (Maneuvers::Maneuver *task) | |
virtual | ~AbstractMux (void) |
virtual void | onStateReport (void) |
virtual void | onVehicleMedium (const IMC::VehicleMedium *msg) |
virtual void | onGpsFix (const IMC::GpsFix *msg) |
Additional Inherited Members | |
Protected Attributes inherited from Maneuver::Multiplexer::MuxedManeuver< IMC::Loiter, LoiterArgs > | |
LoiterArgs * | m_args |
Protected Attributes inherited from Maneuver::Multiplexer::AbstractMux | |
Maneuvers::Maneuver * | m_task |
|
inline |
Default constructor.
[in] | task | pointer to Maneuver task |
[in] | args | loiter arguments |
|
inline |
Destructor.
|
inline |
Get supported loiter type to perform.
[in] | type | loiter type to perform from maneuver message |
References LTYPE_CIRCULAR, LTYPE_FIGURE_EIGHT, and Maneuver::Multiplexer::AbstractMux::m_task.
Referenced by onStart().
|
inlinevirtual |
On EstimatedState message.
[in] | msg | pointer to EstimatedState message |
Reimplemented from Maneuver::Multiplexer::AbstractMux.
|
inlinevirtual |
On PathControlState message.
[in] | pcs | pointer to PathControlState message |
Reimplemented from Maneuver::Multiplexer::AbstractMux.
References Maneuver::Multiplexer::AbstractMux::m_task.
|
inlinevirtual |
Start maneuver function.
[in] | maneuver | loiter maneuver message |
Implements Maneuver::Multiplexer::MuxedManeuver< IMC::Loiter, LoiterArgs >.
References getType(), LTYPE_FIGURE_EIGHT, Maneuver::Multiplexer::MuxedManeuver< IMC::Loiter, LoiterArgs >::m_args, Maneuver::Multiplexer::AbstractMux::m_task, and Maneuver::Multiplexer::LoiterArgs::min_radius.