本文整理汇总了C++中NMEAParser::PFLAU方法的典型用法代码示例。如果您正苦于以下问题:C++ NMEAParser::PFLAU方法的具体用法?C++ NMEAParser::PFLAU怎么用?C++ NMEAParser::PFLAU使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NMEAParser
的用法示例。
在下文中一共展示了NMEAParser::PFLAU方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TestRoutine
void NMEAParser::TestRoutine(NMEA_INFO *GPS_INFO) {
// QUESTION TB: should be moved to test folder!?
#ifndef NDEBUG
#ifndef GNAV
static int i=90;
static TCHAR t1[] = TEXT("1,1,1,1");
static TCHAR t2[] = TEXT("1,300,500,220,2,DD927B,0,-4.5,30,-1.4,1");
static TCHAR t3[] = TEXT("0,0,1200,50,2,DD9146,270,-4.5,30,-1.4,1");
// static TCHAR b50[] = TEXT("0,.1,.0,0,0,1.06,0,-222");
// static TCHAR t4[] = TEXT("-3,500,1024,50");
// nmeaParser1.ParseNMEAString_Internal(TEXT("$PTAS1,201,200,02583,000*2A"), GPS_INFO);
// nmeaParser1.ParseNMEAString_Internal(TEXT("$GPRMC,082430.00,A,3744.09096,S,14426.16069,E,0.520294.90,301207,,,A*77"), GPS_INFO);
// nmeaParser1.ParseNMEAString_Internal(TEXT("$GPGGA,082430.00,3744.09096,S,1426.16069,E,1,08,1.37,157.6,M,-4.9,M,,*5B"), GPS_INFO);
QNH=1013.25;
double h;
double altraw= 5.0;
h = AltitudeToQNHAltitude(altraw);
QNH = FindQNH(altraw, 50.0);
h = AltitudeToQNHAltitude(altraw);
i++;
if (i>100) {
i=0;
}
if (i<50) {
GPS_INFO->FLARM_Available = true;
TCHAR ctemp[MAX_NMEA_LEN];
const TCHAR *params[MAX_NMEA_PARAMS];
size_t nr;
nr = nmeaParser1.ExtractParameters(t1, ctemp, params, MAX_NMEA_PARAMS);
nmeaParser1.PFLAU(t1, params, nr, GPS_INFO);
nr = nmeaParser1.ExtractParameters(t2, ctemp, params, MAX_NMEA_PARAMS);
nmeaParser1.PFLAA(t2, params, nr, GPS_INFO);
nr = nmeaParser1.ExtractParameters(t3, ctemp, params, MAX_NMEA_PARAMS);
nmeaParser1.PFLAA(t3, params, nr, GPS_INFO);
}
#endif
#endif
}