1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Added comment to explain the gpsDataUpdated flag

This commit is contained in:
Werner Backes 2012-07-20 11:56:40 +02:00
parent 6db2c949a3
commit bcee75a270

View File

@ -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)) {