From bcee75a27029fed7543350c2e1c9fe9996883762 Mon Sep 17 00:00:00 2001 From: Werner Backes Date: Fri, 20 Jul 2012 11:56:40 +0200 Subject: [PATCH] Added comment to explain the gpsDataUpdated flag --- flight/Modules/GPS/NMEA.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flight/Modules/GPS/NMEA.c b/flight/Modules/GPS/NMEA.c index 6a25b1fed..150949e8e 100644 --- a/flight/Modules/GPS/NMEA.c +++ b/flight/Modules/GPS/NMEA.c @@ -421,6 +421,10 @@ bool NMEA_update_position(char *nmea_sentence, GPSPositionData *GpsData) DEBUG_MSG("%s %d ", params[0]); #endif // Send the message to the parser and get it update the GpsData + // Information from various different NMEA messages are temporarily + // cumulated in the GpsData structure. An actual GPSPosition update + // is triggered by GGA messages only. This message type sets the + // gpsDataUpdated flag to request this. bool gpsDataUpdated = false; if (!parser->handler(GpsData, &gpsDataUpdated, params, nbParams)) {