Code: Select all
case MSP_SET_RAW_GPS:
f.GPS_FIX = read8();
GPS_numSat = read8();
GPS_coord[LAT] = read32();
GPS_coord[LON] = read32();
GPS_altitude = read16();
GPS_speed = read16();
GPS_update |= 2; break; // New data signalisation to GPS functions
headSerialReply(0);
break;
As a sidenote, is there any documentation what GPS_update should contain? Until recently, it was only used as a boolean flag, now it seems to be some kind of bitmask?