Go to the documentation of this file.
19 Message_NMEA_GGA::content_t::content_t()
26 orthometric_altitude(),
27 corrected_orthometric_altitude(),
36 out <<
"[NMEA GGA datum]\n";
38 " Longitude: %.09f deg Latitude: %.09f deg Height: %.03f m\n",
43 " Geoidal distance: %.03f m Orthometric alt.: %.03f m Corrected "
44 "ort. alt.: %.03f m\n",
54 const char* fix_names[] = {
"0:Invalid",
63 "9:mmGPS + RTK Fixed",
64 "10: mmGPS + RTK Float"};
69 out <<
"(UNKNOWN!)\n";
71 out <<
" HDOP (Horizontal Dilution of Precision): ";
80 o <<
"lon_deg lat_deg hgt_m undulation_m hour min sec num_sats fix_quality "
87 "%.09f %.09f %.04f %.04f %02u %02u %02.03f %2u %u %f",
97 : UTCTime(), latitude_degrees(0), longitude_degrees(0), validity_char(
'V')
103 out <<
"[NMEA GLL datum]\n";
105 " Longitude: %.09f deg Latitude: %.09f deg Validity: '%c'\n",
115 o <<
"lon_deg lat_deg hour min sec validity";
130 : true_track(), magnetic_track(), ground_speed_knots(), ground_speed_kmh()
138 " True track: %.03f deg Magnetic track: %.03f deg\n",
147 o <<
"true_track mag_track gnd_speed_knots gnd_speed_kmh";
163 longitude_degrees(0),
165 direction_degrees(0),
170 positioning_mode(
'N')
185 years_century = (dec_parts.
year / 100) * 100;
210 " Longitude: %.09f deg Latitude: %.09f deg Valid?: '%c'\n",
222 o <<
"lon_deg lat_deg hour min sec speed_knots direction_deg year month "
229 "%.09f %.09f %02u %02u %02.03f %.05f %.03f %02u %02u %02u",
239 : UTCTime(), date_day(), date_month(), date_year()
256 o <<
"year month day hour minute second";
int8_t validity_char
This will be: 'A'=OK or 'V'=void.
void dumpToStream(std::ostream &out) const override
Dumps the contents of the observation in a human-readable form to a given output stream.
mrpt::system::TTimeStamp getDateAsTimestamp() const
Build an MRPT timestamp with the year/month/day of this observation.
content_t fields
Message content, accesible by individual fields.
double longitude_degrees
The measured longitude, in degrees (East:+ , West:-)
unsigned __int16 uint16_t
double speed_knots
Measured speed (in knots)
bool getAllFieldValues(std::ostream &o) const override
Dumps a line with the sequence of all field values (without a line feed at the end).
mrpt::system::TTimeStamp getDateAsTimestamp() const
Build an MRPT timestamp with the year/month/day of this observation.
double ground_speed_knots
void dumpToStream(std::ostream &out) const override
Dumps the contents of the observation in a human-readable form to a given output stream.
mrpt::system::TTimeStamp buildTimestampFromParts(const mrpt::system::TTimeParts &p)
Builds a timestamp from the parts (Parts are in UTC)
content_t fields
Message content, accesible by individual fields.
content_t fields
Message content, accesible by individual fields.
content_t fields
Message content, accesible by individual fields.
double second
Minute (0-59)
mrpt::system::TTimeStamp getDateTimeAsTimestamp() const
Build an MRPT UTC timestamp with the year/month/day + hour/minute/sec of this observation.
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
float HDOP
The HDOP (Horizontal Dilution of Precision) as returned by the sensor.
bool getAllFieldValues(std::ostream &o) const override
Dumps a line with the sequence of all field values (without a line feed at the end).
uint16_t date_year
2000-...
bool getAllFieldDescriptions(std::ostream &o) const override
Dumps a header for getAllFieldValues()
void dumpToStream(std::ostream &out) const override
Dumps the contents of the observation in a human-readable form to a given output stream.
int8_t validity_char
This will be: 'A'=OK or 'V'=void.
The parts of a date/time (it's like the standard 'tm' but with fractions of seconds).
double magnetic_dir
Magnetic variation direction (East:+, West:-)
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
double latitude_degrees
The measured latitude, in degrees (North:+ , South:-)
void timestampToParts(TTimeStamp t, TTimeParts &p, bool localTime=false)
Gets the individual parts of a date/time (days, hours, minutes, seconds) - UTC time or local time.
mrpt::system::TTimeStamp getAsTimestamp(const mrpt::system::TTimeStamp &date) const
Build an MRPT timestamp with the hour/minute/sec of this structure and the date from the given timest...
double direction_degrees
Measured speed direction (in degrees)
double latitude_degrees
The measured latitude, in degrees (North:+ , South:-)
double longitude_degrees
The measured longitude, in degrees (East:+ , West:-)
uint32_t satellitesUsed
The number of satelites used to compute this estimation.
char positioning_mode
'A': Autonomous, 'D': Differential, 'N': Not valid, 'E': Estimated, 'M': Manual
double longitude_degrees
The measured longitude, in degrees (East:+ , West:-)
content_t fields
Message content, accesible by individual fields.
std::string format(const char *fmt,...) MRPT_printf_format_check(1
A std::string version of C sprintf.
double latitude_degrees
The measured latitude, in degrees (North:+ , South:-)
double corrected_orthometric_altitude
The corrected (only for TopCon mmGPS) orthometric altitude, in meters mmGPS(A+B).
bool getAllFieldValues(std::ostream &o) const override
Dumps a line with the sequence of all field values (without a line feed at the end).
double altitude_meters
The measured altitude, in meters (A).
UTC_time UTCTime
The GPS sensor measured timestamp (in UTC time)
bool thereis_HDOP
This states whether to take into account the value in the HDOP field.
bool getAllFieldDescriptions(std::ostream &o) const override
Dumps a header for getAllFieldValues()
double true_track
Degrees.
double orthometric_altitude
The measured orthometric altitude, in meters (A)+(B).
UTC_time UTCTime
The GPS sensor measured timestamp (in UTC time)
double geoidal_distance
Undulation: Difference between the measured altitude and the geoid, in meters (B).
bool getAllFieldDescriptions(std::ostream &o) const override
Dumps a header for getAllFieldValues()
uint8_t date_day
Date: day (1-31), month (1-12), two-digits year (00-99)
bool getAllFieldDescriptions(std::ostream &o) const override
Dumps a header for getAllFieldValues()
GNSS (GPS) data structures, mainly for use within mrpt::obs::CObservationGPS.
uint8_t minute
Hour (0-23)
bool getAllFieldValues(std::ostream &o) const override
Dumps a line with the sequence of all field values (without a line feed at the end).
UTC_time UTCTime
The GPS sensor measured timestamp (in UTC time)
void dumpToStream(std::ostream &out) const override
Dumps the contents of the observation in a human-readable form to a given output stream.
uint8_t fix_quality
NMEA standard values: 0 = invalid, 1 = GPS fix (SPS), 2 = DGPS fix, 3 = PPS fix, 4 = Real Time Kinema...
UTC_time UTCTime
The GPS sensor measured timestamp (in UTC time)
bool getAllFieldDescriptions(std::ostream &o) const override
Dumps a header for getAllFieldValues()
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
void dumpToStream(std::ostream &out) const override
Dumps the contents of the observation in a human-readable form to a given output stream.
bool getAllFieldValues(std::ostream &o) const override
Dumps a line with the sequence of all field values (without a line feed at the end).
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |