DUNE: Uniform Navigational Environment  2.6.0-rc1
Actuators::MicroCamD::Task Struct Reference

Public Member Functions

 Task (const std::string &name, Tasks::Context &ctx)
 
void onResourceAcquisition (void)
 
void onResourceRelease (void)
 
void onResourceInitialization (void)
 
void consume (const IMC::RemoteActions *msg)
 
void consume (const IMC::CameraZoom *msg)
 
void setMirror (bool value)
 
void setCameraMode (CameraMode mode)
 
void setZoom (Zoom zoom)
 
void setOSD (OSD osd)
 
void setMode (Mode mode)
 
void setPitchRate (int16_t pitch)
 
void setRollRate (int16_t roll)
 
void computeChecksum (void)
 
void sendCommand (void)
 
bool parse (uint8_t byte)
 
void task (void)
 

Public Attributes

SerialPort * m_uart
 
uint8_t m_cmd [20]
 
Arguments m_args
 
ParserStates m_pstate
 
uint8_t m_pdata [16]
 
uint8_t m_pdata_idx
 
uint8_t m_pdata_crc
 
IMC::EulerAngles m_euler
 

Constructor & Destructor Documentation

Actuators::MicroCamD::Task::Task ( const std::string &  name,
Tasks::Context &  ctx 
)
inline

Member Function Documentation

void Actuators::MicroCamD::Task::computeChecksum ( void  )
inline

References Actuators::MicroCamD::IDX_CSUM, and m_cmd.

Referenced by sendCommand().

void Actuators::MicroCamD::Task::consume ( const IMC::RemoteActions *  msg)
inline
void Actuators::MicroCamD::Task::consume ( const IMC::CameraZoom *  msg)
inline
void Actuators::MicroCamD::Task::onResourceAcquisition ( void  )
inline
void Actuators::MicroCamD::Task::onResourceInitialization ( void  )
inline
void Actuators::MicroCamD::Task::onResourceRelease ( void  )
inline

References m_uart.

void Actuators::MicroCamD::Task::sendCommand ( void  )
inline

References computeChecksum(), m_cmd, and m_uart.

Referenced by onResourceInitialization(), and task().

void Actuators::MicroCamD::Task::setCameraMode ( CameraMode  mode)
inline
void Actuators::MicroCamD::Task::setMirror ( bool  value)
inline

Referenced by consume().

void Actuators::MicroCamD::Task::setMode ( Mode  mode)
inline
void Actuators::MicroCamD::Task::setOSD ( OSD  osd)
inline
void Actuators::MicroCamD::Task::setPitchRate ( int16_t  pitch)
inline
void Actuators::MicroCamD::Task::setRollRate ( int16_t  roll)
inline
void Actuators::MicroCamD::Task::setZoom ( Zoom  zoom)
inline

References Actuators::MicroCamD::IDX_ZOOM, and m_cmd.

Referenced by consume().

void Actuators::MicroCamD::Task::task ( void  )
inline

Member Data Documentation

Arguments Actuators::MicroCamD::Task::m_args

Referenced by onResourceAcquisition(), and Task().

uint8_t Actuators::MicroCamD::Task::m_cmd[20]
IMC::EulerAngles Actuators::MicroCamD::Task::m_euler

Referenced by task().

uint8_t Actuators::MicroCamD::Task::m_pdata[16]

Referenced by parse(), and task().

uint8_t Actuators::MicroCamD::Task::m_pdata_crc

Referenced by parse().

uint8_t Actuators::MicroCamD::Task::m_pdata_idx

Referenced by parse().

ParserStates Actuators::MicroCamD::Task::m_pstate

Referenced by parse().

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