1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 12:55:13 +03:00

Add the GSM SMS telemetry option (#781)

This commit is contained in:
Michel Pastor 2019-05-25 17:30:50 +02:00 committed by GitHub
parent be7e3698a1
commit 4cf10eedf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View file

@ -891,6 +891,9 @@
"portsFunction_TELEMETRY_IBUS": { "portsFunction_TELEMETRY_IBUS": {
"message": "IBUS" "message": "IBUS"
}, },
"portsFunction_GSM_SMS": {
"message": "GSM SMS"
},
"portsFunction_TELEMETRY_MSP": { "portsFunction_TELEMETRY_MSP": {
"message": "MSP" "message": "MSP"
}, },

View file

@ -50,6 +50,7 @@ var mspHelper = (function (gui) {
'RANGEFINDER': 16, 'RANGEFINDER': 16,
'VTX_FFPV': 17, 'VTX_FFPV': 17,
'ESC': 18, 'ESC': 18,
'GSM_SMS': 19,
}; };
// Required for MSP_DEBUGMSG because console.log() doesn't allow omitting // Required for MSP_DEBUGMSG because console.log() doesn't allow omitting

View file

@ -42,6 +42,14 @@ TABS.ports.initialize = function (callback) {
); );
} }
if (semver.gte(CONFIG.flightControllerVersion, "2.2.0")) {
functionRules.push({
name: 'GSM_SMS',
groups: ['telemetry'],
maxPorts: 1 }
);
}
// support configure RunCam Device // support configure RunCam Device
functionRules.push({ functionRules.push({
name: 'RUNCAM_DEVICE_CONTROL', name: 'RUNCAM_DEVICE_CONTROL',