Implemented 'vtx_' CLI settings for SmartAudio and Tramp
This takes the 'vtx_' settings that were created for the SPRacingNEO
boards and also implements them for
TBS-SmartAudio and IRC-Tramp video transmitters. At startup the
settings are applied to the transmitter. If the video setup is
modified via the CMS OSD menu or via MSP (Taranis/OpenTX smartport),
the settings are updated.
One nice thing the settings can provide is a way to configure a
frequency (via USB / CLI) while the video transmitter is not powered
up. Afer a save and power cycle, the system will startup at the
new frequency.
Also, this adds a 'vtx_freq' setting for TBS-SmartAudio and IRC-Tramp
video transmitters. If vtx_band=0 and vtx_freq!=0 then the
'vtx_freq' value (in MHz) will be configured on the transmitter at
startup. If both are zero then the settings will be
ignored. If vtx_band!=0 and a video transmitter is connected then
'vtx_freq' will be set to the current frequency value (in MHz) at
startup.
vtx_band = #
Allowed range: 0 - 5
0=user, 1=A, 2=B, 3=E, 4=F(Airwaves/Fatshark), 5=Raceband
vtx_channel = #
Allowed range: 1 - 8
vtx_power = #
Allowed range: 0 - 5
for SmartAudio: 0=25mW, 1=25mW, 2=200mW, 3=500mW, 4=800mW
for TrampHV: 0=25mW, 1=25mW, 2=100mW, 3=200mW, 4=400mW, 5=600mW
vtx_freq = ####
Allowed range: 0 - 5999
if vtx_band!=0 and VTX connected then shows freq in MHz
if vtx_band==0 then sets frequency in MHz
if vtx_band==0 and vtx_freq==0 then the settings will not be sent
out
to the VTX
For example, to configure the VTX to use band 'F' and channel '6' (5840
MHz), enter the CLI and input:
set vtx_band = 4
set vtx_channel = 6
save
The VTX configuration will not be changed until after the 'save' and
restart. If it is successful then entering
'set vtx_freq' will show the current frequency value in MHz.
Frequency table:
Channel
1 2
3 4
5 6
7 8