-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port new VTX API and settings from Betaflight #3401
Conversation
4d7db4a
to
c873dcf
Compare
- VTX with support for FC control are now totally managed from the FC. The FC will store the VTX configuration and override any changes made manually (e.g. with a button). Users can disable VTX control to manage channels manually. - OSD VTX item now shows the power level too. - Added new parameters for VTX configuration: vtx_band, vtx_channel, vtx_freq, vtx_halfduplex, vtx_low_power_disarm, vtx_pit_mode_freq and vtx_power. - Added support for automatically switching the VTX power when arming (fixes #3112). Note that there are a several changes from the BF code. We do support an additional setting for the low power during disarm option and the MSP messages contain more data to allow users to configure the VTX channel/power from the configurator. Our MSP messages also work when the VTX is offline (the settings are stored in the FC and applied later once the VTX is powered up). Thanks to Matek (http://www.mateksys.com) for providing an FCHUB-VTX to test the Tramp protocol. Thanks to AKK (https://www.akktek.com) for providing an X2-ultimate to test SmartAudio.
uint8_t band=0, channel=0; | ||
vtxCommonGetBandAndChannel(&band,&channel); | ||
uint8_t deviceType = 0; | ||
vtxCommonGetDeviceType(vtxDevice); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't actually do anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Thanks! It worked by chance because the configurator only checks for deviceType != 0xff and this was writing a zero. I’ll PR a fix tomorrow.
sbufWriteU8(dst, pitmode); | ||
|
||
// Betaflight doesn't send these fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is outdated: betaflight/betaflight#6200 😝
FC. The FC will store the VTX configuration and override any changes
made manually (e.g. with a button). Users can disable VTX control
to manage channels manually.
vtx_freq, vtx_halfduplex, vtx_low_power_disarm, vtx_pit_mode_freq
and vtx_power.
arming (fixes Feature request: Auto vtx power low on disarm #3112).
Note that there are a several changes from the BF code. We do support
an additional setting for the low power during disarm option and
the MSP messages contain more data to allow users to configure the
VTX channel/power from the configurator. Our MSP messages also work
when the VTX is offline (the settings are stored in the FC and applied
later once the VTX is powered up).
Thanks to Matek (http://www.mateksys.com) for providing an FCHUB-VTX
to test the Tramp protocol.
Thanks to AKK (https://www.akktek.com) for providing an X2-ultimate
to test SmartAudio.
Configurator PR iNavFlight/inav-configurator#481