mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
refactoring and smoother transition to return, thanks Karatebrot
This commit is contained in:
parent
0766d93f72
commit
1cd28a5eea
6 changed files with 38 additions and 45 deletions
|
@ -95,6 +95,7 @@
|
|||
#include "flight/failsafe.h"
|
||||
#include "flight/imu.h"
|
||||
#include "flight/mixer.h"
|
||||
#include "flight/gps_rescue.h"
|
||||
#include "flight/pid.h"
|
||||
#include "flight/pid_init.h"
|
||||
#include "flight/servos.h"
|
||||
|
@ -766,6 +767,7 @@ void init(void)
|
|||
#ifdef USE_GPS
|
||||
if (featureIsEnabled(FEATURE_GPS)) {
|
||||
gpsInit();
|
||||
gpsRescueInit();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -828,6 +830,7 @@ void init(void)
|
|||
#ifdef USE_BARO
|
||||
baroStartCalibration();
|
||||
#endif
|
||||
positionInit();
|
||||
|
||||
#if defined(USE_VTX_COMMON) || defined(USE_VTX_CONTROL)
|
||||
vtxTableInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue