1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-14 11:59:51 +03:00

move index to ascii conversion for rcmap out of msp protocol, define feature index array (will get a proper text polish in the future)

updating mixer select with missing names
This commit is contained in:
cTn 2014-09-17 11:23:31 +02:00
parent 4894f7493a
commit fee5219a73
3 changed files with 25 additions and 6 deletions

View file

@ -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: