DUNE: Uniform Navigational Environment
2.6.0-rc4
|
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, m_adcs, m_args, m_power_state, 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 |
References m_adcs.
|
inline |
References DUNE::Time::Counter< T >::getRemaining(), m_act_timer, m_args, m_slave_alive, DUNE::Time::Counter< T >::overflow(), and Power::DOAMv1::Arguments::slave_entity.
Referenced by onMain().
|
inline |
References m_slave_alive, and m_slave_id.
|
inline |
References m_power_state.
|
inline |
References m_args, Power::DOAMv1::Arguments::pwr_name, and setPowerChannelState().
|
inline |
References setPowerChannelState().
|
inline |
References setStrobeMode(), and Power::DOAMv1::STROBE_MODE_CAM.
|
inline |
References Power::DOAMv1::CMD_STATE, m_temp, m_wdog, and sendMessages().
Referenced by waitForCommand().
|
inline |
References setStrobeMode(), and Power::DOAMv1::STROBE_MODE_MCU.
|
inline |
References Power::DOAMv1::Arguments::adc_elabels, m_adcs, and m_args.
|
inline |
References checkActivation(), Power::DOAMv1::CMD_STATE, m_proto, m_wdog, and waitForCommand().
|
inline |
References m_act_timer, m_slave_alive, setPowerChannelState(), and DUNE::Time::Counter< T >::setTop().
|
inline |
References setPowerChannelState().
|
inline |
References m_args, m_proto, and Power::DOAMv1::Arguments::uart_dev.
|
inline |
|
inline |
References m_proto, setStrobeMode(), and Power::DOAMv1::STROBE_MODE_MCU.
|
inline |
|
inline |
Referenced by waitForCommand().
|
inline |
References Power::DOAMv1::Arguments::adc_factors, m_adcs, m_args, and Power::DOAMv1::Arguments::ref_volt.
Referenced by onCommand().
|
inline |
References Power::DOAMv1::CMD_PWR_SET, m_power_state, m_proto, and waitForCommand().
Referenced by consume(), onRequestActivation(), onRequestDeactivation(), and onResourceInitialization().
|
inline |
References Power::DOAMv1::CMD_STROBE_SEL, m_proto, Power::DOAMv1::STROBE_MODE_MCU, and waitForCommand().
Referenced by onActivation(), onDeactivation(), onResourceInitialization(), and onResourceRelease().
|
inline |
References m_proto, onCommand(), and onVersion().
Referenced by onMain(), setPowerChannelState(), and setStrobeMode().
Counter<double> Power::DOAMv1::Task::m_act_timer |
Activation timer.
Referenced by checkActivation(), and onRequestActivation().
Message* Power::DOAMv1::Task::m_adcs[c_adcs_max] |
ADC Messages.
Referenced by onEntityReservation(), onUpdateParameters(), sendMessages(), Task(), and ~Task().
Arguments Power::DOAMv1::Task::m_args |
Task arguments.
Referenced by checkActivation(), consume(), onEntityReservation(), onResourceAcquisition(), onResourceInitialization(), onUpdateParameters(), sendMessages(), and Task().
IMC::PowerChannelState Power::DOAMv1::Task::m_power_state |
Power channel state.
Referenced by consume(), onUpdateParameters(), setPowerChannelState(), and Task().
Hardware::LUCL::Protocol Power::DOAMv1::Task::m_proto |
Device protocol handler.
Referenced by onMain(), onResourceAcquisition(), onResourceInitialization(), onResourceRelease(), setPowerChannelState(), setStrobeMode(), and waitForCommand().
bool Power::DOAMv1::Task::m_slave_alive |
True if slave CPU is alive.
Referenced by checkActivation(), consume(), and onRequestActivation().
unsigned Power::DOAMv1::Task::m_slave_id |
System id of the slave DUNE instance.
Referenced by consume(), and onUpdateParameters().
IMC::Temperature Power::DOAMv1::Task::m_temp |
Temperature.
Referenced by onCommand().
Time::Counter<double> Power::DOAMv1::Task::m_wdog |
Watchdog.
Referenced by onCommand(), onMain(), and onResourceInitialization().