mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
no more playing nice with official msp
This commit is contained in:
parent
430d366c8f
commit
a9f73b6384
1 changed files with 5 additions and 9 deletions
|
@ -479,17 +479,13 @@ function process_data(code, message_buffer, message_length) {
|
|||
break;
|
||||
// Additional baseflight commands that are not compatible with MultiWii
|
||||
case MSP_codes.MSP_UID:
|
||||
if (data.byteLength > 0) {
|
||||
CONFIG.uid[0] = data.getUint32(0, 1);
|
||||
CONFIG.uid[1] = data.getUint32(4, 1);
|
||||
CONFIG.uid[2] = data.getUint32(8, 1);
|
||||
}
|
||||
break;
|
||||
case MSP_codes.MSP_ACC_TRIM:
|
||||
if (data.byteLength > 0) {
|
||||
CONFIG.accelerometerTrims[0] = data.getInt16(0, 1); // pitch
|
||||
CONFIG.accelerometerTrims[1] = data.getInt16(2, 1); // roll
|
||||
}
|
||||
break;
|
||||
case MSP_codes.MSP_SET_ACC_TRIM:
|
||||
console.log('Accelerometer trimms saved.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue