1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Implemented 'vtx_' settings and SetFreqByMHzMsp support

Implemented 'vtx_' settings for SmartAudio and Tramp

Added 'vtx_freq' setting for SmartAudio and Tramp

SmartAudio-CMS fixes and improvements

Added SetFreqByMHzMsp support for SmartAudio and Tramp
This commit is contained in:
ethomas999 2017-10-01 13:54:58 -04:00
parent 8d1a90b999
commit 8a27c9e194
21 changed files with 729 additions and 127 deletions

View file

@ -100,6 +100,16 @@ void vtxCommonSetPitMode(uint8_t onoff)
vtxDevice->vTable->setPitMode(onoff);
}
void vtxCommonSetFrequency(uint16_t freq)
{
if (!vtxDevice) {
return;
}
if (vtxDevice->vTable->setFrequency) {
vtxDevice->vTable->setFrequency(freq);
}
}
bool vtxCommonGetBandAndChannel(uint8_t *pBand, uint8_t *pChannel)
{
if (!vtxDevice)
@ -133,6 +143,18 @@ bool vtxCommonGetPitMode(uint8_t *pOnOff)
return false;
}
bool vtxCommonGetFrequency(uint16_t *pFreq)
{
if (!vtxDevice) {
return false;
}
if (vtxDevice->vTable->getFrequency) {
return vtxDevice->vTable->getFrequency(pFreq);
} else {
return false;
}
}
bool vtxCommonGetDeviceCapability(vtxDeviceCapability_t *pDeviceCapability)
{
if (!vtxDevice)