DUNE: Uniform Navigational Environment
2019.02.1
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
~Task (void) | |
void | onUpdateParameters (void) |
void | onEntityReservation (void) |
void | onResourceAcquisition (void) |
void | onResourceRelease (void) |
void | onResourceInitialization (void) |
void | setStrobeMode (StrobeMode mode) |
void | sendMessages (const uint16_t *unpack) |
void | onCommand (uint8_t cmd, const uint8_t *data, int data_size) |
void | onVersion (unsigned major, unsigned minor, unsigned patch) |
void | consume (const IMC::Heartbeat *msg) |
void | consume (const IMC::QueryPowerChannelState *msg) |
void | consume (const IMC::PowerChannelControl *msg) |
void | consume (const IMC::PowerOperation *msg) |
void | checkActivation (void) |
void | onRequestActivation (void) |
void | onRequestDeactivation (void) |
void | onActivation (void) |
void | onDeactivation (void) |
bool | setPowerChannelState (uint8_t value) |
bool | waitForCommand (uint8_t code, unsigned retries=10) |
void | onMain (void) |
Public Attributes | |
Hardware::LUCL::Protocol | m_proto |
Message * | m_adcs [c_adcs_max] |
Time::Counter< double > | m_wdog |
IMC::Temperature | m_temp |
IMC::PowerChannelState | m_power_state |
Arguments | m_args |
Counter< double > | m_act_timer |
bool | m_slave_alive |
unsigned | m_slave_id |
|
inline |
References Power::DOAMv1::Arguments::adc_elabels, Power::DOAMv1::Arguments::adc_factors, Power::DOAMv1::Arguments::adc_messages, Power::DOAMv1::Arguments::pwr_name, Power::DOAMv1::Arguments::ref_volt, Power::DOAMv1::Arguments::slave_entity, Power::DOAMv1::Arguments::slave_system, Power::DOAMv1::Arguments::uart_dev, and Power::DOAMv1::Arguments::wdog_tout.
|
inline |
|
inline |
References Power::DOAMv1::Arguments::slave_entity.
|
inline |
|
inline |
|
inline |
References Power::DOAMv1::Arguments::pwr_name.
|
inline |
|
inline |
References Power::DOAMv1::STROBE_MODE_CAM.
|
inline |
References Power::DOAMv1::CMD_STATE.
|
inline |
References Power::DOAMv1::STROBE_MODE_MCU.
|
inline |
References Power::DOAMv1::Arguments::adc_elabels.
|
inline |
References Power::DOAMv1::CMD_STATE.
|
inline |
|
inline |
|
inline |
References Power::DOAMv1::Arguments::uart_dev.
|
inline |
References Power::DOAMv1::STROBE_MODE_MCU, and Power::DOAMv1::Arguments::wdog_tout.
|
inline |
References Power::DOAMv1::STROBE_MODE_MCU.
|
inline |
|
inline |
|
inline |
References Power::DOAMv1::Arguments::adc_factors, and Power::DOAMv1::Arguments::ref_volt.
|
inline |
References Power::DOAMv1::CMD_PWR_SET.
|
inline |
References Power::DOAMv1::CMD_STROBE_SEL, and Power::DOAMv1::STROBE_MODE_MCU.
|
inline |
Counter<double> Power::DOAMv1::Task::m_act_timer |
Activation timer.
Message* Power::DOAMv1::Task::m_adcs[c_adcs_max] |
ADC Messages.
IMC::PowerChannelState Power::DOAMv1::Task::m_power_state |
Power channel state.
Hardware::LUCL::Protocol Power::DOAMv1::Task::m_proto |
Device protocol handler.
bool Power::DOAMv1::Task::m_slave_alive |
True if slave CPU is alive.
unsigned Power::DOAMv1::Task::m_slave_id |
System id of the slave DUNE instance.
IMC::Temperature Power::DOAMv1::Task::m_temp |
Temperature.
Time::Counter<double> Power::DOAMv1::Task::m_wdog |
Watchdog.