DUNE: Uniform Navigational Environment
2020.01.0
|
Servos simulator task
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onUpdateParameters (void) |
void | onResourceAcquisition (void) |
void | onResourceRelease (void) |
void | onResourceInitialization (void) |
void | consume (const IMC::SetServoPosition *msg) |
void | consume (const IMC::SimulatedState *msg) |
void | onMain (void) |
Public Attributes | |
IMC::ServoPosition | m_positions [c_servo_count] |
IMC::SetServoPosition | m_commands [c_servo_count] |
Random::Generator * | m_prng |
double | m_last_time |
double | m_fault_timer |
bool | m_faulted |
int | m_servo_in_fault |
Arguments | m_args |
|
inline |
References Simulators::Servos::Arguments::fault_trigger, Simulators::Servos::Arguments::generate_faults, Simulators::Servos::Arguments::limit_rate, Simulators::Servos::Arguments::max_angle, Simulators::Servos::Arguments::max_rate, Simulators::Servos::Arguments::prng_seed, and Simulators::Servos::Arguments::prng_type.
|
inline |
|
inline |
|
inline |
|
inline |
Acquire resources.
References Simulators::Servos::Arguments::prng_seed, and Simulators::Servos::Arguments::prng_type.
|
inline |
Initialize resources.
|
inline |
Release resources.
|
inline |
Update parameters.
References Simulators::Servos::Arguments::max_angle, and Simulators::Servos::Arguments::max_rate.
IMC::SetServoPosition Simulators::Servos::Task::m_commands[c_servo_count] |
Message for SetServoPosition.
double Simulators::Servos::Task::m_fault_timer |
Fault timer counter.
bool Simulators::Servos::Task::m_faulted |
Flag to signal a fault has already been generated.
double Simulators::Servos::Task::m_last_time |
Last time a setservoposition message was received.
IMC::ServoPosition Simulators::Servos::Task::m_positions[c_servo_count] |
Message for servo positions.
Random::Generator* Simulators::Servos::Task::m_prng |
PRNG handle.
int Simulators::Servos::Task::m_servo_in_fault |
Number of faulty servo.