DUNE: Uniform Navigational Environment  2019.02.1
Actuators::SingleSIMCT01::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void onUpdateParameters (void)
 
bool sendCommand (const char *cmd, char *bfr, unsigned bfr_len)
 
void demand (void)
 
void queryCurrent (void)
 
void queryRPM (void)
 
void consume (const IMC::SetThrusterActuation *msg)
 
void task (void)
 

Public Attributes

SerialPort * m_uart
 
int8_t m_demand
 
char m_scratch [15]
 
IMC::Rpm m_rpm
 
IMC::Current m_amp
 
std::string m_cmd_query_amp
 
std::string m_cmd_query_rpm
 
std::string m_rpl_demand
 
unsigned m_err_count
 
Counter< float > m_err_wdog
 
Arguments m_args
 

Static Public Attributes

static const unsigned c_err_max
 

Constructor & Destructor Documentation

Member Function Documentation

void Actuators::SingleSIMCT01::Task::consume ( const IMC::SetThrusterActuation *  msg)
inline
void Actuators::SingleSIMCT01::Task::demand ( void  )
inline
void Actuators::SingleSIMCT01::Task::onResourceAcquisition ( void  )
inline
void Actuators::SingleSIMCT01::Task::onResourceRelease ( void  )
inline
void Actuators::SingleSIMCT01::Task::onUpdateParameters ( void  )
inline
void Actuators::SingleSIMCT01::Task::queryCurrent ( void  )
inline
void Actuators::SingleSIMCT01::Task::queryRPM ( void  )
inline
bool Actuators::SingleSIMCT01::Task::sendCommand ( const char *  cmd,
char *  bfr,
unsigned  bfr_len 
)
inline
void Actuators::SingleSIMCT01::Task::task ( void  )
inline

Member Data Documentation

const unsigned Actuators::SingleSIMCT01::Task::c_err_max
static
IMC::Current Actuators::SingleSIMCT01::Task::m_amp
Arguments Actuators::SingleSIMCT01::Task::m_args
std::string Actuators::SingleSIMCT01::Task::m_cmd_query_amp
std::string Actuators::SingleSIMCT01::Task::m_cmd_query_rpm
int8_t Actuators::SingleSIMCT01::Task::m_demand
unsigned Actuators::SingleSIMCT01::Task::m_err_count
Counter<float> Actuators::SingleSIMCT01::Task::m_err_wdog
std::string Actuators::SingleSIMCT01::Task::m_rpl_demand
IMC::Rpm Actuators::SingleSIMCT01::Task::m_rpm
char Actuators::SingleSIMCT01::Task::m_scratch[15]
SerialPort* Actuators::SingleSIMCT01::Task::m_uart
Collaboration diagram for Actuators::SingleSIMCT01::Task:
Collaboration graph