mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Removed vtx_settings_config in favor of vtx_common. Removed implicit EEPROM writes for vtx_ changes.
Updated MSP_VTX_CONFIG Updated MSP_SET_VTX_CONFIG Updated MSP_VTX_CONFIG (again) Implemented VTX update schedule Removed unneeded initialization blocks from io/vtx implementations Prevent VTX settings from being applied in CLI. Sync Band/Chan/Freq on init Correct issues in SA CMS Moved vtxCommonInit and vtxCommonProcess to io/vtx
This commit is contained in:
parent
c497b44b83
commit
d9caabefa1
22 changed files with 419 additions and 548 deletions
|
@ -100,6 +100,7 @@
|
|||
#include "io/osd.h"
|
||||
#include "io/osd_slave.h"
|
||||
#include "io/displayport_msp.h"
|
||||
#include "io/vtx.h"
|
||||
#include "io/vtx_rtc6705.h"
|
||||
#include "io/vtx_control.h"
|
||||
#include "io/vtx_smartaudio.h"
|
||||
|
@ -388,10 +389,10 @@ void init(void)
|
|||
featureClear(FEATURE_3D);
|
||||
idlePulse = 0; // brushed motors
|
||||
}
|
||||
/* Motors needs to be initialized soon as posible because hardware initialization
|
||||
/* Motors needs to be initialized soon as posible because hardware initialization
|
||||
* may send spurious pulses to esc's causing their early initialization. Also ppm
|
||||
* receiver may share timer with motors so motors MUST be initialized here. */
|
||||
motorDevInit(&motorConfig()->dev, idlePulse, getMotorCount());
|
||||
motorDevInit(&motorConfig()->dev, idlePulse, getMotorCount());
|
||||
systemState |= SYSTEM_STATE_MOTORS_READY;
|
||||
|
||||
if (0) {}
|
||||
|
@ -665,7 +666,10 @@ void init(void)
|
|||
#ifdef VTX_CONTROL
|
||||
vtxControlInit();
|
||||
|
||||
#if defined(VTX_COMMON)
|
||||
vtxCommonInit();
|
||||
vtxInit();
|
||||
#endif
|
||||
|
||||
#ifdef VTX_SMARTAUDIO
|
||||
vtxSmartAudioInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue