mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-19 14:25:13 +03:00
Add support for the new VTX settings API
When a controllable VTX is configured, a new section appears in the configuration tab which allows the user to set the band, channel power and "low power on disarm" option.
This commit is contained in:
parent
ba45e316e3
commit
6da922919f
8 changed files with 229 additions and 2 deletions
23
js/vtx.js
Normal file
23
js/vtx.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
var VTXDEV_UNKNOWN = 0xFF;
|
||||
|
||||
var VTX_BANDS = [
|
||||
{code: 1, name: 'Boscam A'},
|
||||
{code: 2, name: 'Boscam B'},
|
||||
{code: 3, name: 'Boscam E'},
|
||||
{code: 4, name: 'Fatshark'},
|
||||
{code: 5, name: 'Raceband'},
|
||||
];
|
||||
|
||||
var VTX_BAND_MIN = 1;
|
||||
var VTX_BAND_MAX = 5;
|
||||
|
||||
var VTX_CHANNEL_MIN = 1;
|
||||
var VTX_CHANNEL_MAX = 8;
|
||||
|
||||
var VTX_POWER_MIN = 0;
|
||||
var VTX_POWER_MAX = 4;
|
||||
|
||||
var VTX_LOW_POWER_DISARM_MIN = 0;
|
||||
var VTX_LOW_POWER_DISARM_MAX = 2;
|
||||
|
||||
var VTX_MAX_FREQUENCY_MHZ = 5999;
|
Loading…
Add table
Add a link
Reference in a new issue