DUNE: Uniform Navigational Environment  2020.01.0
Maneuver::RowsCoverage::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
virtual ~Task (void)
 
void onManeuverDeactivation (void)
 
void consume (const IMC::RowsCoverage *maneuver)
 
void consume (const IMC::EstimatedState *msg)
 
void onPathControlState (const IMC::PathControlState *pcs)
 
void sendPath (double lat, double lon)
 

Public Attributes

IMC::RowsCoverage m_maneuver
 
IMC::EstimatedState m_state
 
IMC::DesiredPath m_path
 
Maneuvers::RowsStages * m_stages_parser
 
float m_alt_min
 
double m_cov_pred
 
double m_cov_actual_min
 
double m_cur_hstep
 
Math::MovingAverage< float > * m_alt_avrg
 
unsigned int m_stage
 
Arguments m_args
 

Constructor & Destructor Documentation

Maneuver::RowsCoverage::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Constructor.

Parameters
[in]nametask name.
[in]ctxcontext.

References Maneuver::RowsCoverage::Arguments::altitude_average_size, and Maneuver::RowsCoverage::Arguments::min_altitude.

virtual Maneuver::RowsCoverage::Task::~Task ( void  )
inlinevirtual

Destructor.

Member Function Documentation

void Maneuver::RowsCoverage::Task::consume ( const IMC::RowsCoverage *  maneuver)
inline
void Maneuver::RowsCoverage::Task::consume ( const IMC::EstimatedState *  msg)
inline
void Maneuver::RowsCoverage::Task::onManeuverDeactivation ( void  )
inline
void Maneuver::RowsCoverage::Task::onPathControlState ( const IMC::PathControlState *  pcs)
inline

On PathControlState message.

Parameters
[in]pcspointer to PathControlState message
void Maneuver::RowsCoverage::Task::sendPath ( double  lat,
double  lon 
)
inline

Send new desired path.

Parameters
[in]latlatitude for new desired path
[in]lonlongitude for new desired path

Member Data Documentation

Math::MovingAverage<float>* Maneuver::RowsCoverage::Task::m_alt_avrg

Moving average for min. altitude calculation.

float Maneuver::RowsCoverage::Task::m_alt_min

Minimum altitude holder for hstep calculation.

Arguments Maneuver::RowsCoverage::Task::m_args

Task arguments.

double Maneuver::RowsCoverage::Task::m_cov_actual_min

Calculated coverage with min. altitude.

double Maneuver::RowsCoverage::Task::m_cov_pred

Predicted coverage.

double Maneuver::RowsCoverage::Task::m_cur_hstep

Current hstep in use.

IMC::RowsCoverage Maneuver::RowsCoverage::Task::m_maneuver
IMC::DesiredPath Maneuver::RowsCoverage::Task::m_path

DesiredPath.

unsigned int Maneuver::RowsCoverage::Task::m_stage

Stage counter.

Maneuvers::RowsStages* Maneuver::RowsCoverage::Task::m_stages_parser

Rows stages parser.

IMC::EstimatedState Maneuver::RowsCoverage::Task::m_state

EstimatedState.

Collaboration diagram for Maneuver::RowsCoverage::Task:
Collaboration graph