DUNE: Uniform Navigational Environment
2019.02.1
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onEntityReservation (void) |
void | onResourceRelease (void) |
void | onResourceAcquisition (void) |
void | onResourceInitialization (void) |
void | consume (const IMC::SetServoPosition *msg) |
bool | readConstantParameters (void) |
bool | readEffectiveParameters (void) |
bool | startContinuous (void) |
bool | stopContinuous (void) |
LUCL::Command * | waitForReply (Commands command, double timeout) |
bool | waitForReplyAndDiscard (Commands command, double timeout) |
uint8_t | convertAngleToDemand (unsigned servo, double angle) |
void | setServoPosition (uint8_t servo, double position) |
void | handleState (LUCL::Command::CommandPayload &cmd) |
void | handleCommand (LUCL::Command *cmd) |
void | dispatchStats (void) |
void | clearStats (void) |
void | onMain (void) |
Public Attributes | |
Arguments | m_args |
IMC::ServoPosition | m_servo_pos [c_servo_count] |
IMC::Current | m_servo_amp [c_servo_count] |
SerialPort * | m_uart |
Listener * | m_listener |
double | m_exc_min [c_servo_count] |
double | m_exc_max [c_servo_count] |
uint8_t | m_demand_res |
unsigned | m_stat_invalid |
unsigned | m_stat_error |
unsigned | m_stat_timeout |
Counter< double > | m_wdog |
|
inline |
|
inline |
|
inline |
|
inline |
References Actuators::SCRTv4::Arguments::servo_dirs.
|
inline |
|
inline |
References Actuators::SCRTv4::CMD_STATE.
|
inline |
References Actuators::SCRTv4::Arguments::servo_dirs.
|
inline |
|
inline |
|
inline |
References Actuators::SCRTv4::Arguments::uart_dev.
|
inline |
|
inline |
|
inline |
References Actuators::SCRTv4::CMD_PARAMS_CON.
|
inline |
References Actuators::SCRTv4::CMD_PARAMS_EFF.
|
inline |
References Actuators::SCRTv4::CMD_SERVO_SET.
|
inline |
References Actuators::SCRTv4::CMD_STATE, and Actuators::SCRTv4::CONT_OUT_RATE_10HZ.
|
inline |
|
inline |
|
inline |
uint8_t Actuators::SCRTv4::Task::m_demand_res |
Demand resolution.
double Actuators::SCRTv4::Task::m_exc_max[c_servo_count] |
Maximum excursion (º).
double Actuators::SCRTv4::Task::m_exc_min[c_servo_count] |
Minimum excursion (º).
Listener* Actuators::SCRTv4::Task::m_listener |
Command listener.
IMC::Current Actuators::SCRTv4::Task::m_servo_amp[c_servo_count] |
Current messages.
IMC::ServoPosition Actuators::SCRTv4::Task::m_servo_pos[c_servo_count] |
Servo position messages.
unsigned Actuators::SCRTv4::Task::m_stat_error |
Count of communication errors.
unsigned Actuators::SCRTv4::Task::m_stat_invalid |
Count of invalid checksums.
unsigned Actuators::SCRTv4::Task::m_stat_timeout |
Count of command timeouts.
SerialPort* Actuators::SCRTv4::Task::m_uart |
Serial port device.
Counter<double> Actuators::SCRTv4::Task::m_wdog |
Watchdog.