mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-14 20:10:11 +03:00
Opflow alignment support in MSP API
This commit is contained in:
parent
57241b86f8
commit
dc74f95efd
2 changed files with 8 additions and 1 deletions
|
@ -543,6 +543,9 @@ var mspHelper = (function (gui) {
|
|||
SENSOR_ALIGNMENT.align_gyro = data.getUint8(offset++);
|
||||
SENSOR_ALIGNMENT.align_acc = data.getUint8(offset++);
|
||||
SENSOR_ALIGNMENT.align_mag = data.getUint8(offset++);
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "2.0.0")) {
|
||||
SENSOR_ALIGNMENT.align_opflow = data.getUint8(offset++);
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP_SET_RAW_RC:
|
||||
break;
|
||||
|
@ -1652,6 +1655,9 @@ var mspHelper = (function (gui) {
|
|||
buffer.push(SENSOR_ALIGNMENT.align_gyro);
|
||||
buffer.push(SENSOR_ALIGNMENT.align_acc);
|
||||
buffer.push(SENSOR_ALIGNMENT.align_mag);
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "2.0.0")) {
|
||||
buffer.push(SENSOR_ALIGNMENT.align_opflow);
|
||||
}
|
||||
break;
|
||||
|
||||
case MSPCodes.MSP_SET_ADVANCED_CONFIG:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue