Add minimum RSSI dBm OSD statistic

10.7.0-preview
Miguel Angel Mulero Martinez 2019-06-28 08:44:50 +02:00
parent 26a0a50d2a
commit 95d1a7abfe
2 changed files with 10 additions and 2 deletions

View File

@ -4324,6 +4324,9 @@
"osdDescStatTotalFlightDistance": {
"message": "Total distance traveled"
},
"osdDescStatMinRssiDbm": {
"message": "Minimum RSSI dBm value"
},
"osdDescribeFontVersion1": {
"message": "Font version: 1 (Betaflight 4.0 or older)"

View File

@ -1208,7 +1208,11 @@ OSD.constants = {
TOTAL_FLIGHT_DIST: {
name: 'TOTAL_FLIGHT_DIST',
desc: 'osdDescStatTotalFlightDistance'
}
},
MIN_RSSI_DBM: {
name: 'MIN_RSSI_DBM',
desc: 'osdDescStatMinRssiDbm'
},
},
ALL_WARNINGS: {
ARMING_DISABLED: {
@ -1534,7 +1538,8 @@ OSD.chooseFields = function () {
OSD.constants.STATISTIC_FIELDS = OSD.constants.STATISTIC_FIELDS.concat([
F.TOTAL_FLIGHTS,
F.TOTAL_FLIGHT_TIME,
F.TOTAL_FLIGHT_DIST
F.TOTAL_FLIGHT_DIST,
F.MIN_RSSI_DBM
]);
}
}