MSP_SET_RAW_GPS does not generate a response
Posted: Thu Jun 21, 2012 12:15 am
Due to an added break statement, MSP_SET_RAW_GPS does not generate a response while including unreachable code in its switch branch:
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?
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?