DUNE: Uniform Navigational Environment
2016.05.0
|
Public Types | |
enum | InputTriggerBehaviour { ITB_OFF, ITB_RISING_EDGE, ITB_FALLING_EDGE, ITB_BOTH_EDGES, ITB_LOW_LEVEL, ITB_HIGH_LEVEL } |
Public Member Functions | |
Driver (Tasks::Task *task, const std::string &uart, unsigned baud) | |
~Driver (void) | |
bool | restartPinging (void) |
bool | startPinging (void) |
bool | stopPinging (void) |
bool | setDataFormat (unsigned value) |
bool | setDepthCells (uint8_t number) |
bool | setHeadingAlignment (double angle) |
bool | setTurnKey (bool value) |
bool | setMaximumTrackingDepth (unsigned value) |
bool | setBottomTrackPingsPerEnsemble (unsigned value) |
bool | setSoundSpeed (unsigned value) |
bool | setEarthCoordinates (void) |
bool | setManualSensorSource (void) |
bool | setInputTriggerEnable (InputTriggerBehaviour behaviour, uint16_t delay, uint16_t timeout=65535) |
void | setTimeout (double timeout) |
size_t | getTimeoutCount (void) const |
size_t | readData (uint8_t *bfr, size_t bfr_size) |
|
inline |
Constructor.
[in] | task | parent task. |
[in] | uart | serial port device. |
[in] | baud | serial port baud rate. |
|
inline |
Destructor.
|
inline |
Get the number of timeouts that ocurred thus far.
Referenced by Sensors::ExplorerDVL::Task::dispatchStats().
|
inline |
Read data.
[in] | bfr | buffer to hold data. |
[in] | bfr_size | size of data buffer. |
Referenced by Sensors::ExplorerDVL::Task::readSample().
|
inline |
References startPinging(), and stopPinging().
Referenced by Sensors::ExplorerDVL::Task::onMain().
|
inline |
Set the number of bottom-track pings to average together in each data ensemble.
[in] | number | of pings. |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Set data format number.
[in] | value | data format number. |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Set number of depth cells.
[in] | number | number of depth cells. |
|
inline |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Set heading alignment.
[in] | angle | alignment angle in degree. |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Referenced by Sensors::ExplorerDVL::Task::setInputTrigger().
|
inline |
Set the source of environmental sensor data to manual.
This is useful when the DVL doesn't have any installed optional sensors.
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Set maximum tracking depth.
[in] | value | maximum tracking depth in meter. |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Set speed of sound.
[in] | value | speed of sound in m/s. |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Set the number of seconds to wait for a reply.
[in] | timeout | number of seconds to wait for a reply. |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Enable/disable automatic pinging.
[in] | value | true to enable, false to disable automatic pinging. |
Referenced by Sensors::ExplorerDVL::Task::setup().
|
inline |
Start pinging and collecting data.
Referenced by Sensors::ExplorerDVL::Task::configureInputTrigger(), restartPinging(), and Sensors::ExplorerDVL::Task::setup().
|
inline |
Stop pinging and enter command mode.
Referenced by Sensors::ExplorerDVL::Task::configureInputTrigger(), restartPinging(), and Sensors::ExplorerDVL::Task::setup().