DUNE: Uniform Navigational Environment  2019.02.1
Maneuver::Multiplexer::Sample Class Reference

Detailed Description

Sample maneuver.

Public Member Functions

 Sample (Maneuvers::Maneuver *task, SampleArgs *args)
 
 ~Sample (void)
 
void onStart (const IMC::Sample *maneuver)
 
void onThrottle (const IMC::Throttle *throttle)
 
void setSyringeState (int syringe, float value)
 
void onVehicleMedium (const IMC::VehicleMedium *medium)
 
- Public Member Functions inherited from Maneuver::Multiplexer::MuxedManeuver< IMC::Sample, SampleArgs >
 MuxedManeuver (Maneuvers::Maneuver *task, SampleArgs *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 onPathControlState (const IMC::PathControlState *pcs)
 
virtual void onBrake (const IMC::Brake *msg)
 
virtual void onEstimatedState (const IMC::EstimatedState *msg)
 
virtual void onStateReport (void)
 
virtual void onGpsFix (const IMC::GpsFix *msg)
 

Additional Inherited Members

- Protected Attributes inherited from Maneuver::Multiplexer::MuxedManeuver< IMC::Sample, SampleArgs >
SampleArgsm_args
 
- Protected Attributes inherited from Maneuver::Multiplexer::AbstractMux
Maneuvers::Maneuver * m_task
 

Constructor & Destructor Documentation

Maneuver::Multiplexer::Sample::Sample ( Maneuvers::Maneuver *  task,
SampleArgs args 
)
inline

Default constructor.

Parameters
[in]taskpointer to Maneuver task
[in]argsSample arguments
Maneuver::Multiplexer::Sample::~Sample ( void  )
inline

Member Function Documentation

void Maneuver::Multiplexer::Sample::onStart ( const IMC::Sample *  maneuver)
inlinevirtual

Start maneuver function.

Parameters
[in]maneuverSample maneuver message

Implements Maneuver::Multiplexer::MuxedManeuver< IMC::Sample, SampleArgs >.

void Maneuver::Multiplexer::Sample::onThrottle ( const IMC::Throttle *  msg)
inlinevirtual

On Rpm message.

Reimplemented from Maneuver::Multiplexer::AbstractMux.

void Maneuver::Multiplexer::Sample::onVehicleMedium ( const IMC::VehicleMedium *  msg)
inlinevirtual

On VehicleMedium message.

Reimplemented from Maneuver::Multiplexer::AbstractMux.

void Maneuver::Multiplexer::Sample::setSyringeState ( int  syringe,
float  value 
)
inline
Collaboration diagram for Maneuver::Multiplexer::Sample:
Collaboration graph