27#include <simgear/debug/logstream.hxx>
29#include <simgear/constants.h>
65 double altitude_ft =
mFdm.get_Altitude();
69 snprintf(nmea, 256,
"$PGRMZ,%.1f,M,3", altitude_ft * SG_FEET_TO_METER);
71 snprintf(nmea, 256,
"$PGRMZ,%.1f,F,3", altitude_ft);
81 if (tokens[0] ==
"PGRMZ")
90 const std::string& alt_units = tokens[2];
91 if ( alt_units !=
"F" && alt_units !=
"f" )
96 SG_LOG( SG_IO, SG_DEBUG,
" altitude = " <<
altitude );
unsigned int mGarminMessages
virtual bool gen_message()
virtual bool gen_message()
void add_with_checksum(char *sentence, unsigned int buf_size)
unsigned int mNmeaMessages
virtual bool parse_message()
static double atof(const string &str)