mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 04:45:20 +03:00
Show SmartAudio version on VTX tab; MSP reads vtx device status
This commit is contained in:
parent
d5d0146af7
commit
f872f1375f
12 changed files with 301 additions and 9 deletions
|
@ -144,6 +144,17 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
FC.MOTOR_OUTPUT_ORDER[i] = data.readU8();
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP2_GET_VTX_DEVICE_STATUS:
|
||||
FC.VTX_DEVICE_STATUS = null;
|
||||
const dataLength = data.byteLength;
|
||||
if (dataLength > 0) {
|
||||
const vtxDeviceStatusData = new Uint8Array(dataLength);
|
||||
for (let i = 0; i < dataLength; i++) {
|
||||
vtxDeviceStatusData[i] = data.readU8();
|
||||
}
|
||||
FC.VTX_DEVICE_STATUS = vtxDeviceStatusFactory.createVtxDeviceStatus(vtxDeviceStatusData);
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP_MOTOR_TELEMETRY:
|
||||
const telemMotorCount = data.readU8();
|
||||
for (let i = 0; i < telemMotorCount; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue