1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 20:35:19 +03:00
inav-configurator/js/vtx.js
Alberto García Hierro 6da922919f 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.
2018-06-20 15:56:24 +01:00

23 lines
No EOL
460 B
JavaScript

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;