![]() |
DUNE: Uniform Navigational Environment
2024.09.0
|
Public Member Functions | |
Driver (Tasks::Task *task, IMC::Distance &alt_dvl, IMC::Distance &alt_flt) | |
void | setBeamFilter (Navigation::BeamFilter *beam_filter) |
void | setIOHandle (IO::Handle *io, bool is_serial) |
void | sendCommand (const std::string cmd, const std::string param_name="", const std::string param_value="") |
bool | waitResponse (const std::string &cmd) |
bool | readData () |
void | parseTCP (std::string &data) |
uint8_t | getLastStatus () |
bool | getBottomLock () |
void | parseTCPReport (const nlohmann::json &msg) |
void | parseTCPDeadReckoning (nlohmann::json &msg) |
void | parseTCPConfig (const nlohmann::json &msg) |
void | parseSerial (std::string &data) |
void | checkFragment (std::vector< std::string > &list) |
void | getConfig (void) |
void | setAcoustics (const bool enable) |
void | setSoundSpeed (double sound_speed) |
void | setRange (const std::string spec) |
void | setRotation (const double angle) |
Configuration & | getLastConfig () |
|
inline |
|
inline |
|
inline |
|
inline |
Get device configuration.
References sendCommand().
Referenced by setAcoustics(), setRange(), setRotation(), and setSoundSpeed().
|
inline |
|
inline |
|
inline |
Parser to interpret incoming data through serial connection.
[in] | data | JSON data string. |
Referenced by readData().
|
inline |
Parser for incoming TPC data.
[in] | data | JSON data string |
References parseTCPConfig(), parseTCPDeadReckoning(), and parseTCPReport().
Referenced by readData().
|
inline |
Parse configuration response.
[in] | msg | parsed JSON data. |
References Sensors::WaterLinkedDVL::Configuration::acoustic_enabled, Sensors::WaterLinkedDVL::Configuration::dark_mode_enabled, Sensors::WaterLinkedDVL::Configuration::mounting_rotation_offset, Sensors::WaterLinkedDVL::Configuration::range_mode, and Sensors::WaterLinkedDVL::Configuration::speed_of_sound.
Referenced by parseTCP().
|
inline |
Parse Dead Reckoning report.
Referenced by parseTCP().
|
inline |
|
inline |
Read data from sensor.
References checkFragment(), parseSerial(), and parseTCP().
Referenced by waitResponse().
|
inline |
Send command to device.
[in] | cmd | command type. |
[in] | param_name | parameter name, only used for "set_config" command. If empty only cmd is used. |
[in] | param_value | parameter value, only used for "set_config" command. If empty only cmd is used. |
References waitResponse().
Referenced by getConfig(), setAcoustics(), setRange(), setRotation(), and setSoundSpeed().
|
inline |
Enable or disable device acoustics.
[in] | enable | true to enable, false to disable. |
References Sensors::WaterLinkedDVL::Configuration::acoustic_enabled, getConfig(), and sendCommand().
|
inline |
|
inline |
|
inline |
Set range mode.
Modes table: Mode Min alt (m) Max alt (m) 0 0.05 0.6 1 0.3 3.0 2 1.5 14 3 7.7 36 4 15 max
[in] | spec | Range specifier option: auto - The DVL will search for bottom lock in it's full operational area (Default) =a - The DVL is locked to range mode a where a is a number from 0-4 a<=b - The DVL will search for bottom lock within range mode a and b |
References getConfig(), Sensors::WaterLinkedDVL::Configuration::range_mode, and sendCommand().
|
inline |
Set device rotation angle.
[in] | angle | mounting rotation angle in degrees. |
References getConfig(), Sensors::WaterLinkedDVL::Configuration::mounting_rotation_offset, and sendCommand().
|
inline |
Enable or disable device acoustics.
[in] | enable | true to enable, false to disable. |
References getConfig(), sendCommand(), and Sensors::WaterLinkedDVL::Configuration::speed_of_sound.
|
inline |
Wait command response.
References readData().
Referenced by sendCommand().