diff --git a/js/msp.js b/js/msp.js index 2429500c..219a6b39 100644 --- a/js/msp.js +++ b/js/msp.js @@ -447,12 +447,10 @@ MSP.process_data = function(code, message_buffer, message_length) { break; // Additional private MSP for baseflight configurator case MSP_codes.MSP_RCMAP: - var channelLetters = ['A', 'E', 'R', 'T', '1', '2', '3', '4']; - RC_MAP = []; // empty the array as new data is coming in for (var i = 0; i < data.byteLength; i++) { - RC_MAP.push(channelLetters[data.getUint8(i)]); + RC_MAP.push(data.getUint8(i)); } break; case MSP_codes.MSP_SET_RCMAP: diff --git a/tabs/configuration.js b/tabs/configuration.js index e4243b4e..36aee9aa 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -47,6 +47,27 @@ TABS.configuration.initialize = function (callback) { // translate to user-selected language localize(); + // index references + var featureNames = [ + 'PPM', + 'VBAT', + 'INFLIGHT_ACC_CAL', + 'SERIALRX', + 'MOTOR_STOP', + 'SERVO_TILT', + 'SOFTSERIAL', + 'LED_RING', + 'GPS', + 'FAILSAFE', + 'SONAR', + 'TELEMETRY', + 'POWERMETER', + 'VARIO', + '3D' + ]; + + var RCMAPlLetters = ['A', 'E', 'R', 'T', '1', '2', '3', '4']; + console.log('all ready'); if (callback) callback(); diff --git a/tabs/initial_setup.html b/tabs/initial_setup.html index 14c2f023..faf40d0d 100644 --- a/tabs/initial_setup.html +++ b/tabs/initial_setup.html @@ -43,12 +43,12 @@ - - + + - +