DUNE: Uniform Navigational Environment
2.6.0-rc4
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onResourceAcquisition (void) |
void | onResourceRelease (void) |
void | onUpdateParameters (void) |
bool | sendCommand (const char *cmd, char *bfr, unsigned bfr_len) |
void | demand (void) |
void | queryCurrent (void) |
void | queryRPM (void) |
void | consume (const IMC::SetThrusterActuation *msg) |
void | task (void) |
Public Attributes | |
SerialPort * | m_uart |
int8_t | m_demand |
char | m_scratch [15] |
IMC::Rpm | m_rpm |
IMC::Current | m_amp |
std::string | m_cmd_query_amp |
std::string | m_cmd_query_rpm |
std::string | m_rpl_demand |
unsigned | m_err_count |
Counter< float > | m_err_wdog |
Arguments | m_args |
Static Public Attributes | |
static const unsigned | c_err_max |
|
inline |
References m_args, Actuators::SingleSIMCT01::Arguments::motor_id, Actuators::SingleSIMCT01::Arguments::scale, Actuators::SingleSIMCT01::Arguments::thruster_id, Actuators::SingleSIMCT01::Arguments::uart_baud, Actuators::SingleSIMCT01::Arguments::uart_dev, and Actuators::SingleSIMCT01::Arguments::uart_echo.
|
inline |
|
inline |
References m_args, m_demand, m_err_count, m_rpl_demand, m_scratch, Actuators::SingleSIMCT01::Arguments::motor_id, and sendCommand().
Referenced by task().
|
inline |
|
inline |
References m_uart.
|
inline |
|
inline |
References m_amp, m_cmd_query_amp, m_err_count, and sendCommand().
Referenced by task().
|
inline |
References m_cmd_query_rpm, m_err_count, m_rpm, and sendCommand().
Referenced by task().
|
inline |
References m_args, m_uart, and Actuators::SingleSIMCT01::Arguments::uart_echo.
Referenced by demand(), queryCurrent(), and queryRPM().
|
inline |
|
static |
Referenced by task().
IMC::Current Actuators::SingleSIMCT01::Task::m_amp |
Referenced by queryCurrent().
Arguments Actuators::SingleSIMCT01::Task::m_args |
Referenced by consume(), demand(), onResourceAcquisition(), onUpdateParameters(), sendCommand(), and Task().
std::string Actuators::SingleSIMCT01::Task::m_cmd_query_amp |
Referenced by onUpdateParameters(), and queryCurrent().
std::string Actuators::SingleSIMCT01::Task::m_cmd_query_rpm |
Referenced by onUpdateParameters(), and queryRPM().
unsigned Actuators::SingleSIMCT01::Task::m_err_count |
Referenced by demand(), queryCurrent(), queryRPM(), and task().
Counter<float> Actuators::SingleSIMCT01::Task::m_err_wdog |
Referenced by task().
std::string Actuators::SingleSIMCT01::Task::m_rpl_demand |
Referenced by demand(), and onUpdateParameters().
IMC::Rpm Actuators::SingleSIMCT01::Task::m_rpm |
Referenced by queryRPM().
char Actuators::SingleSIMCT01::Task::m_scratch[15] |
Referenced by demand().
SerialPort* Actuators::SingleSIMCT01::Task::m_uart |
Referenced by onResourceAcquisition(), onResourceRelease(), and sendCommand().