1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 21:05:30 +03:00

Add Galileo and Home Point once to GPS

This commit is contained in:
Miguel Angel Mulero Martinez 2019-11-06 19:25:56 +01:00
parent e69c904730
commit ce044622a2
6 changed files with 69 additions and 7 deletions

View file

@ -423,6 +423,11 @@ MspHelper.prototype.process_data = function(dataHandler) {
if (semver.gte(CONFIG.apiVersion, "1.34.0")) {
GPS_CONFIG.auto_config = data.readU8();
GPS_CONFIG.auto_baud = data.readU8();
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
GPS_CONFIG.home_point_once = data.readU8() !== 0;
GPS_CONFIG.ublox_use_galileo = data.readU8() !== 0;
}
}
break;
case MSPCodes.MSP_GPS_RESCUE:
@ -1693,6 +1698,11 @@ MspHelper.prototype.crunch = function(code) {
if (semver.gte(CONFIG.apiVersion, "1.34.0")) {
buffer.push8(GPS_CONFIG.auto_config)
.push8(GPS_CONFIG.auto_baud);
if (semver.gte(CONFIG.apiVersion, "1.43.0")) {
buffer.push8(GPS_CONFIG.home_point_once ? 1 : 0)
.push8(GPS_CONFIG.ublox_use_galileo ? 1 : 0);
}
}
break;
case MSPCodes.MSP_SET_GPS_RESCUE: