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

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceAcquisition (void)
 
void onResourceInitialization (void)
 
void onUpdateParameters (void)
 
void onResourceRelease (void)
 
void sendCommand (const std::string &cmd)
 
void createCommand (const std::string &cmd_type, int &val)
 
void consume (const IMC::SetControlSurfaceDeflection *csd)
 
int rad2pos (float min_angle, float max_angle, int min_pos, int max_pos, float angle)
 
void task (void)
 

Public Attributes

SerialPort * m_uart
 
Limits m_limits
 
Arguments m_args
 
uint8_t m_bfr [BUFFER_MAX]
 
float m_pan
 
float m_tilt
 

Constructor & Destructor Documentation

Member Function Documentation

void Actuators::FLIRPTU::Task::consume ( const IMC::SetControlSurfaceDeflection *  csd)
inline
void Actuators::FLIRPTU::Task::createCommand ( const std::string &  cmd_type,
int &  val 
)
inline
void Actuators::FLIRPTU::Task::onResourceAcquisition ( void  )
inline
void Actuators::FLIRPTU::Task::onResourceRelease ( void  )
inline
int Actuators::FLIRPTU::Task::rad2pos ( float  min_angle,
float  max_angle,
int  min_pos,
int  max_pos,
float  angle 
)
inline
void Actuators::FLIRPTU::Task::sendCommand ( const std::string &  cmd)
inline

Member Data Documentation

Arguments Actuators::FLIRPTU::Task::m_args
uint8_t Actuators::FLIRPTU::Task::m_bfr[BUFFER_MAX]
Limits Actuators::FLIRPTU::Task::m_limits
float Actuators::FLIRPTU::Task::m_pan
float Actuators::FLIRPTU::Task::m_tilt
SerialPort* Actuators::FLIRPTU::Task::m_uart
Collaboration diagram for Actuators::FLIRPTU::Task:
Collaboration graph