DUNE: Uniform Navigational Environment
2016.05.0
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onUpdateParameters (void) |
void | onResourceRelease (void) |
void | onResourceInitialization (void) |
void | queueState (StateMachineStates state) |
bool | hasQueuedStates (void) const |
StateMachineStates | getCurrentState (void) const |
StateMachineStates | dequeueState (void) |
void | onRequestActivation (void) |
bool | tryConnect (void) |
bool | isConnected (void) |
void | failActivation (const std::string &message) |
void | onRequestDeactivation (void) |
bool | disconnect (void) |
void | onDeactivation (void) |
void | controlPulseDetection (IMC::PulseDetectionControl::OperationEnum op) |
void | onActivation (void) |
void | requestLogName (void) |
void | consume (const IMC::PowerChannelState *msg) |
void | consume (const IMC::EstimatedState *msg) |
void | consume (const IMC::LoggingControl *msg) |
std::string | computeRecordingPath (const std::string &log_name) |
void | openLog (const std::string &name) |
bool | logIsOpen (void) |
void | closeLog (void) |
void | setFramingMode (void) |
void | initConfig (void) |
void | controlPower (IMC::PowerChannelControl::OperationEnum op) |
void | turnPowerOn (void) |
void | turnPowerOff (void) |
bool | isPowered (void) |
void | updateStateMachine (void) |
void | onMain (void) |
Public Attributes | |
Parser | m_parser |
Counter< double > | m_wdog |
StateMachineStates | m_sm_state |
std::queue< StateMachineStates > | m_sm_state_queue |
bool | m_powered |
CommandLink * | m_cmd |
std::string | m_log_path |
Arguments | m_args |
|
inline |
References Sensors::Klein3500::Arguments::addr, Sensors::Klein3500::Arguments::channel_hf, Sensors::Klein3500::Arguments::channel_lf, m_args, Sensors::Klein3500::Arguments::pings_per_file, Sensors::Klein3500::Arguments::port, Sensors::Klein3500::Arguments::power_channel, Sensors::Klein3500::Arguments::range, Sensors::Klein3500::Arguments::record_file_prefix, Sensors::Klein3500::Arguments::record_path_prefix, and Sensors::Klein3500::Arguments::trigger_slaves.
|
inline |
References isConnected(), m_cmd, m_log_path, and Sensors::Klein3500::CommandLink::setRecordingMode().
Referenced by consume(), and updateStateMachine().
|
inline |
References m_args, and Sensors::Klein3500::Arguments::record_path_prefix.
Referenced by openLog().
|
inline |
References m_args, m_powered, and Sensors::Klein3500::Arguments::power_channel.
|
inline |
References isConnected(), m_cmd, and Sensors::Klein3500::CommandLink::sendNavigationData().
|
inline |
|
inline |
References m_args, and Sensors::Klein3500::Arguments::power_channel.
Referenced by failActivation(), turnPowerOff(), and turnPowerOn().
|
inline |
References m_args, and Sensors::Klein3500::Arguments::trigger_slaves.
Referenced by onActivation(), and onDeactivation().
|
inline |
References hasQueuedStates(), m_sm_state, and m_sm_state_queue.
Referenced by updateStateMachine().
|
inline |
References m_args, m_cmd, Sensors::Klein3500::Arguments::record_path_prefix, Sensors::Klein3500::CommandLink::setRecordingFilePath(), Sensors::Klein3500::CommandLink::setRecordingMode(), Sensors::Klein3500::CommandLink::setRecordingNewFile(), Sensors::Klein3500::CommandLink::setStandBy(), and Sensors::Klein3500::CommandLink::unmountNFS().
Referenced by onResourceRelease(), and updateStateMachine().
|
inline |
References controlPower().
Referenced by updateStateMachine().
|
inline |
References m_sm_state.
Referenced by consume().
|
inline |
Test if state queue has pending state transitions.
References m_sm_state_queue.
Referenced by dequeueState(), and onMain().
|
inline |
Initialize sidescan configuration.
References m_args, m_cmd, Sensors::Klein3500::Arguments::pings_per_file, Sensors::Klein3500::Arguments::range, Sensors::Klein3500::Arguments::record_file_prefix, Sensors::Klein3500::CommandLink::setFileFormat(), Sensors::Klein3500::CommandLink::setFilePrefix(), setFramingMode(), Sensors::Klein3500::CommandLink::setPingsPerFile(), Sensors::Klein3500::CommandLink::setRange(), Sensors::Klein3500::CommandLink::setRecordingMode(), and Sensors::Klein3500::CommandLink::setStandBy().
Referenced by tryConnect().
|
inline |
Test if a connection exists to the sidescan.
References m_cmd.
Referenced by closeLog(), consume(), onResourceRelease(), and onUpdateParameters().
|
inline |
Test if power channel is on.
References m_powered.
Referenced by updateStateMachine().
|
inline |
References m_log_path.
Referenced by updateStateMachine().
|
inline |
|
inline |
References controlPulseDetection().
|
inline |
References hasQueuedStates(), and updateStateMachine().
|
inline |
References queueState(), and Sensors::Klein3500::SM_ACT_BEGIN.
|
inline |
References queueState(), and Sensors::Klein3500::SM_DEACT_BEGIN.
|
inline |
|
inline |
References disconnect(), and isConnected().
|
inline |
References Sensors::Klein3500::Arguments::addr, Sensors::Klein3500::Arguments::channel_hf, Sensors::Klein3500::Arguments::channel_lf, isConnected(), m_args, m_cmd, m_powered, Sensors::Klein3500::Arguments::pings_per_file, Sensors::Klein3500::Arguments::port, Sensors::Klein3500::Arguments::power_channel, Sensors::Klein3500::Arguments::range, Sensors::Klein3500::Arguments::record_file_prefix, Sensors::Klein3500::CommandLink::setFilePrefix(), setFramingMode(), Sensors::Klein3500::CommandLink::setPingsPerFile(), and Sensors::Klein3500::CommandLink::setRange().
|
inline |
|
inline |
Push a new state to the state queue.
[in] | state | state machine state. |
References m_sm_state_queue.
Referenced by onRequestActivation(), onRequestDeactivation(), and updateStateMachine().
|
inline |
Referenced by updateStateMachine().
|
inline |
|
inline |
Try to connect to the sidescan.
References Sensors::Klein3500::Arguments::addr, initConfig(), m_args, m_cmd, and Sensors::Klein3500::Arguments::port.
Referenced by updateStateMachine().
|
inline |
References controlPower().
Referenced by updateStateMachine().
|
inline |
References controlPower().
Referenced by updateStateMachine().
|
inline |
References closeLog(), dequeueState(), disconnect(), failActivation(), isPowered(), logIsOpen(), m_wdog, DUNE::Time::Counter< T >::overflow(), queueState(), requestLogName(), DUNE::Time::Counter< T >::setTop(), Sensors::Klein3500::SM_ACT_BEGIN, Sensors::Klein3500::SM_ACT_DONE, Sensors::Klein3500::SM_ACT_LOG_REQUEST, Sensors::Klein3500::SM_ACT_LOG_WAIT, Sensors::Klein3500::SM_ACT_POWER_ON, Sensors::Klein3500::SM_ACT_POWER_WAIT, Sensors::Klein3500::SM_ACT_SAMPLE, Sensors::Klein3500::SM_ACT_SS_WAIT, Sensors::Klein3500::SM_DEACT_BEGIN, Sensors::Klein3500::SM_DEACT_DISCONNECT, Sensors::Klein3500::SM_DEACT_DONE, Sensors::Klein3500::SM_DEACT_POWER_OFF, Sensors::Klein3500::SM_DEACT_POWER_WAIT, Sensors::Klein3500::SM_IDLE, tryConnect(), turnPowerOff(), and turnPowerOn().
Referenced by onMain().
Arguments Sensors::Klein3500::Task::m_args |
Configuration parameters.
Referenced by computeRecordingPath(), consume(), controlPower(), controlPulseDetection(), disconnect(), initConfig(), onUpdateParameters(), setFramingMode(), Task(), and tryConnect().
CommandLink* Sensors::Klein3500::Task::m_cmd |
Command link.
Referenced by closeLog(), consume(), disconnect(), initConfig(), isConnected(), onActivation(), onUpdateParameters(), openLog(), setFramingMode(), and tryConnect().
std::string Sensors::Klein3500::Task::m_log_path |
Current log path.
Referenced by closeLog(), logIsOpen(), and openLog().
bool Sensors::Klein3500::Task::m_powered |
True if device is powered on.
Referenced by consume(), isPowered(), and onUpdateParameters().
StateMachineStates Sensors::Klein3500::Task::m_sm_state |
Current state machine state.
Referenced by dequeueState(), and getCurrentState().
std::queue<StateMachineStates> Sensors::Klein3500::Task::m_sm_state_queue |
State machine state queue.
Referenced by dequeueState(), hasQueuedStates(), and queueState().
Counter<double> Sensors::Klein3500::Task::m_wdog |
Watchdog timer.
Referenced by onActivation(), and updateStateMachine().