Change VTX_CHANNEL preview and added missing elements to OSD Tab

* Change VTX_CHANNEL preview
* Add DEBUG
* ADD GPS Lon/Lat
10.3.x-maintenance
Rodrigo Pérez 2017-05-08 10:03:16 -03:00
parent 7390870738
commit ec1e1a87cb
1 changed files with 31 additions and 6 deletions

View File

@ -277,7 +277,7 @@ OSD.constants = {
name: 'VTX_CHANNEL',
default_position: 1,
positionable: true,
preview: 'R:2'
preview: 'R:2:1'
},
VOLTAGE_WARNING: {
name: 'VOLTAGE_WARNING',
@ -368,6 +368,24 @@ OSD.constants = {
positionable: true,
preview: FONT.symbol(SYM.GPS_SAT) + '14'
},
GPS_LON: {
name: 'GPS_LON',
default_position: -1,
positionable: true,
preview: '-00.0'
},
GPS_LAT: {
name: 'GPS_LAT',
default_position: -1,
positionable: true,
preview: '-00.0'
},
DEBUG: {
name: 'DEBUG',
default_position: -1,
positionable: true,
preview: 'GDB 0 0 0 0'
},
PID_ROLL: {
name: 'PID_ROLL',
default_position: 0x800 | (10 << 5) | 2, // 0x0800 | (y << 5) | x
@ -467,15 +485,22 @@ OSD.chooseFields = function () {
F.BATTERY_WARNING,
F.AVG_CELL_VOLTAGE
]);
if (semver.gte(CONFIG.apiVersion, "1.35.0")) {
if (semver.gte(CONFIG.apiVersion, "1.34.0")) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.PITCH_ANGLE,
F.ROLL_ANGLE
F.GPS_LON,
F.GPS_LAT,
F.DEBUG
]);
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
if (semver.gte(CONFIG.apiVersion, "1.35.0")) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.MAIN_BATT_USAGE
F.PITCH_ANGLE,
F.ROLL_ANGLE
]);
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
F.MAIN_BATT_USAGE
]);
}
}
}
}