DUNE: Uniform Navigational Environment
2020.01.0
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onResourceAcquisition (void) |
bool | openSocket (void) |
void | onResourceRelease (void) |
void | onResourceInitialization (void) |
void | consume (const IMC::DevDataText *msg) |
void | consume (const IMC::IoEvent *msg) |
void | clearMessages (void) |
bool | waitInitReply (const std::string &stn) |
bool | readTime (const std::string &str, float &dst) |
bool | readLatitude (const std::string &str, const std::string &h, double &dst) |
double | readLongitude (const std::string &str, const std::string &h, double &dst) |
template<typename T > | |
bool | readDecimal (const std::string &str, T &dst) |
template<typename T > | |
bool | readNumber (const std::string &str, T &dst) |
void | processSentence (const std::string &line) |
void | interpretSentence (std::vector< std::string > &parts) |
bool | hasNMEAMessageCode (const std::string &str, const std::string &code) |
void | interpretZDA (const std::vector< std::string > &parts) |
void | interpretGGA (const std::vector< std::string > &parts) |
void | interpretPUBX00 (const std::vector< std::string > &parts) |
void | interpretVTG (const std::vector< std::string > &parts) |
void | interpretHDT (const std::vector< std::string > &parts) |
void | interpretHDM (const std::vector< std::string > &parts) |
void | interpretROT (const std::vector< std::string > &parts) |
void | interpretPSATHPR (const std::vector< std::string > &parts) |
void | onMain (void) |
Public Attributes | |
IO::Handle * | m_handle |
IMC::GpsFix | m_fix |
IMC::EulerAngles | m_euler |
IMC::AngularVelocity | m_agvel |
Arguments | m_args |
Time::Counter< float > | m_wdog |
bool | m_has_agvel |
bool | m_has_euler |
std::string | m_init_line |
Reader * | m_reader |
char | m_bufer_entity [64] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Interpret GGA sentence (GPS fix data).
[in] | parts | vector of strings from sentence. |
|
inline |
Interpret HDM sentence (Magnetic heading of the vessel derived from the true heading calculated).
[in] | parts | vector of strings from sentence. |
|
inline |
Interpret VTG sentence (true heading).
[in] | parts | vector of strings from sentence. |
|
inline |
Interpret PSATHPR sentence (Proprietary NMEA message that provides the heading, pitch, roll, and time in a single message).
[in] | parts | vector of strings from sentence. |
|
inline |
Interpret PUBX00 sentence (navstar position).
[in] | parts | vector of strings from sentence. |
|
inline |
Interpret ROT sentence (rate of turn).
[in] | parts | vector of strings from sentence. |
|
inline |
Interpret given sentence.
[in] | parts | vector of strings from sentence. |
References Sensors::GPS::Arguments::stn_order.
|
inline |
Interpret VTG sentence (course over ground).
[in] | parts | vector of strings from sentence. |
|
inline |
Interpret ZDA sentence (UTC date and time).
[in] | parts | vector of strings from sentence. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References Sensors::GPS::Arguments::uart_dev.
|
inline |
|
inline |
Read decimal from input string.
[in] | str | input string. |
[out] | dst | decimal. |
|
inline |
Read latitude from string.
[in] | str | input string. |
[in] | h | either North (N) or South (S). |
[out] | dst | latitude. |
|
inline |
Read longitude from string.
[in] | str | input string. |
[in] | h | either West (W) or East (E). |
[out] | dst | longitude. |
|
inline |
Read number from input string.
[in] | str | input string. |
[out] | dst | number. |
|
inline |
Read time from string.
[in] | str | string. |
[out] | dst | time. |
|
inline |
Wait reply to initialization command.
[in] | stn | string to compare. |
IMC::AngularVelocity Sensors::GPS::Task::m_agvel |
Angular velocity message.
char Sensors::GPS::Task::m_bufer_entity[64] |
Buffer forEntityState.
IMC::EulerAngles Sensors::GPS::Task::m_euler |
Euler angles message.
IMC::GpsFix Sensors::GPS::Task::m_fix |
GPS Fix message.
IO::Handle* Sensors::GPS::Task::m_handle |
Serial port handle.
bool Sensors::GPS::Task::m_has_agvel |
True if we have angular velocity.
bool Sensors::GPS::Task::m_has_euler |
True if we have euler angles.
std::string Sensors::GPS::Task::m_init_line |
Last initialization line read.
Time::Counter<float> Sensors::GPS::Task::m_wdog |
Input watchdog.