CF/BF - Support MSP/OSD Slave current sensor.

10.3.x-maintenance
Hydra 2017-04-25 00:08:39 +01:00 committed by mikeller
parent 400ccf8752
commit 25ed1743d6
2 changed files with 7 additions and 4 deletions

View File

@ -2261,6 +2261,9 @@
"powerAmperageId80": { "powerAmperageId80": {
"message": "Virtual" "message": "Virtual"
}, },
"powerAmperageId90": {
"message": "MSP"
},
"powerMahValue": { "powerMahValue": {
"message": "$1 mAh" "message": "$1 mAh"
}, },

View File

@ -192,10 +192,6 @@ TABS.power.initialize = function (callback) {
'None', 'None',
'Onboard ADC', 'Onboard ADC',
]; ];
if (haveFc) {
batteryMeterTypes.push('ESC Sensor');
}
if (haveFc) { if (haveFc) {
batteryMeterTypes.push('ESC Sensor'); batteryMeterTypes.push('ESC Sensor');
@ -216,6 +212,10 @@ TABS.power.initialize = function (callback) {
if (haveFc) { if (haveFc) {
currentMeterTypes.push('Virtual'); currentMeterTypes.push('Virtual');
currentMeterTypes.push('ESC Sensor'); currentMeterTypes.push('ESC Sensor');
if (semver.gte(CONFIG.apiVersion, "1.36.0")) {
currentMeterTypes.push('MSP Sensor/OSD Slave');
}
} }
var currentMeterType_e = $('select.currentmetersource'); var currentMeterType_e = $('select.currentmetersource');