Support GPS Provider and SBAS mod in MSP_MISC.

This commit is contained in:
Dominic Clifton 2014-12-20 02:22:51 +00:00
parent a48a848890
commit df61d9a7eb
1 changed files with 5 additions and 5 deletions

View File

@ -910,9 +910,9 @@ static bool processOutCommand(uint8_t cmdMSP)
serialize16(currentProfile->failsafeConfig.failsafe_throttle);
serialize8(0); // gps_type
serialize8(0); // gps_baudrate
serialize8(0); // gps_ubx_sbas
serialize8(masterConfig.gpsConfig.provider); // gps_type
serialize8(0); // TODO gps_baudrate (an index, cleanflight uses a uint32_t
serialize8(masterConfig.gpsConfig.sbasMode); // gps_ubx_sbas
serialize8(masterConfig.batteryConfig.multiwiiCurrentMeterOutput);
serialize8(masterConfig.rxConfig.rssi_channel);
serialize8(0);
@ -1202,9 +1202,9 @@ static bool processInCommand(void)
currentProfile->failsafeConfig.failsafe_throttle = read16();
read8(); // gps_type
masterConfig.gpsConfig.provider = read8(); // gps_type
read8(); // gps_baudrate
read8(); // gps_ubx_sbas
masterConfig.gpsConfig.sbasMode = read8(); // gps_ubx_sbas
masterConfig.batteryConfig.multiwiiCurrentMeterOutput = read8();
masterConfig.rxConfig.rssi_channel = read8();
read8();