DUNE: Uniform Navigational Environment
2.6.1
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onResourceAcquisition (void) |
void | onResourceInitialization (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 | panRadToPos (float &val) |
int | tiltRadToPos (float &val) |
void | boundPan (int &val) |
void | boundTilt (int &val) |
void | task (void) |
Public Attributes | |
SerialPort * | m_uart |
Arguments | m_args |
uint8_t | m_bfr [BUFFER_MAX] |
float | m_pan |
float | m_tilt |
|
inline |
References m_args, Actuators::PTUD48::Arguments::pan_accel, Actuators::PTUD48::Arguments::pan_speed, Actuators::PTUD48::Arguments::ptu_pc, Actuators::PTUD48::Arguments::ptu_track, Actuators::PTUD48::Arguments::tilt_accel, Actuators::PTUD48::Arguments::tilt_speed, Actuators::PTUD48::Arguments::uart_baud, and Actuators::PTUD48::Arguments::uart_dev.
|
inline |
References Actuators::PTUD48::PAN_MAX, and Actuators::PTUD48::PAN_MIN.
Referenced by task().
|
inline |
References Actuators::PTUD48::TILT_MAX.
Referenced by task().
|
inline |
|
inline |
References sendCommand().
Referenced by onResourceInitialization(), and task().
|
inline |
|
inline |
|
inline |
References m_uart.
|
inline |
Referenced by task().
|
inline |
References m_uart.
Referenced by createCommand(), and onResourceInitialization().
|
inline |
References boundPan(), boundTilt(), createCommand(), m_pan, m_tilt, panRadToPos(), and tiltRadToPos().
|
inline |
Referenced by task().
Arguments Actuators::PTUD48::Task::m_args |
Referenced by onResourceAcquisition(), onResourceInitialization(), and Task().
uint8_t Actuators::PTUD48::Task::m_bfr[BUFFER_MAX] |
SerialPort* Actuators::PTUD48::Task::m_uart |
Referenced by onResourceAcquisition(), onResourceRelease(), and sendCommand().