mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +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
19
src/js/utils/VtxDeviceStatus/TrampDeviceStatus.js
Normal file
19
src/js/utils/VtxDeviceStatus/TrampDeviceStatus.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
|
||||
class VtxDeviceStatusTramp extends VtxDeviceStatus {
|
||||
constructor(dataView)
|
||||
{
|
||||
super(dataView);
|
||||
|
||||
dataView.readU8(); // custom device status size
|
||||
|
||||
// Read other Tramp VTX device parameters here
|
||||
}
|
||||
|
||||
static get staticDeviceStatusType()
|
||||
{
|
||||
return VtxDeviceTypes.VTXDEV_TRAMP;
|
||||
}
|
||||
}
|
||||
|
||||
vtxDeviceStatusFactory.registerVtxDeviceStatusClass(VtxDeviceStatusTramp);
|
Loading…
Add table
Add a link
Reference in a new issue