DUNE: Uniform Navigational Environment  2.4.2
Sensors::SDCR::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onUpdateParameters (void)
 
void onEntityReservation (void)
 
void onResourceAcquisition (void)
 
void sendMessages (const uint16_t *unpack)
 
void onCommand (uint8_t cmd, const uint8_t *data, int data_size)
 
void onVersion (unsigned major, unsigned minor, unsigned patch)
 
bool waitForCommand (uint8_t code)
 
void task (void)
 

Public Attributes

Hardware::LUCL::Protocol m_proto
 
Message * m_adcs [c_adcs_max]
 
Arguments m_args
 

Constructor & Destructor Documentation

Member Function Documentation

void Sensors::SDCR::Task::onCommand ( uint8_t  cmd,
const uint8_t *  data,
int  data_size 
)
inline

References Sensors::SDCR::CMD_STATE, and sendMessages().

Referenced by waitForCommand().

void Sensors::SDCR::Task::onEntityReservation ( void  )
inline
void Sensors::SDCR::Task::onResourceAcquisition ( void  )
inline
void Sensors::SDCR::Task::onUpdateParameters ( void  )
inline
void Sensors::SDCR::Task::onVersion ( unsigned  major,
unsigned  minor,
unsigned  patch 
)
inline

Referenced by waitForCommand().

void Sensors::SDCR::Task::sendMessages ( const uint16_t *  unpack)
inline
void Sensors::SDCR::Task::task ( void  )
inline
bool Sensors::SDCR::Task::waitForCommand ( uint8_t  code)
inline

References m_proto, onCommand(), and onVersion().

Referenced by task().

Member Data Documentation

Message* Sensors::SDCR::Task::m_adcs[c_adcs_max]

ADC Messages.

Referenced by onEntityReservation(), onUpdateParameters(), sendMessages(), and Task().

Arguments Sensors::SDCR::Task::m_args
Hardware::LUCL::Protocol Sensors::SDCR::Task::m_proto

Device protocol handler.

Referenced by onResourceAcquisition(), task(), and waitForCommand().

Collaboration diagram for Sensors::SDCR::Task:
Collaboration graph