DUNE: Uniform Navigational Environment  2016.09.0
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

References m_pan, and m_tilt.

void Actuators::FLIRPTU::Task::createCommand ( const std::string &  cmd_type,
int &  val 
)
inline

References sendCommand().

Referenced by onResourceInitialization(), and task().

void Actuators::FLIRPTU::Task::onResourceAcquisition ( void  )
inline
void Actuators::FLIRPTU::Task::onResourceRelease ( void  )
inline

References m_uart.

int Actuators::FLIRPTU::Task::rad2pos ( float  min_angle,
float  max_angle,
int  min_pos,
int  max_pos,
float  angle 
)
inline

References DUNE::Math::trimValue().

Referenced by task().

void Actuators::FLIRPTU::Task::sendCommand ( const std::string &  cmd)
inline

References m_uart.

Referenced by createCommand(), and onResourceInitialization().

Member Data Documentation

Arguments Actuators::FLIRPTU::Task::m_args
uint8_t Actuators::FLIRPTU::Task::m_bfr[BUFFER_MAX]
Limits Actuators::FLIRPTU::Task::m_limits

Referenced by onUpdateParameters(), and task().

float Actuators::FLIRPTU::Task::m_pan

Referenced by consume(), and task().

float Actuators::FLIRPTU::Task::m_tilt

Referenced by consume(), and task().

SerialPort* Actuators::FLIRPTU::Task::m_uart
Collaboration diagram for Actuators::FLIRPTU::Task:
Collaboration graph