mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Better separation between GPS and NAV
This commit is contained in:
parent
69ff72e2e9
commit
cfc87d1891
17 changed files with 243 additions and 218 deletions
|
@ -553,7 +553,7 @@ void processRx(timeUs_t currentTimeUs)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_GPS
|
||||
#ifdef USE_NAV
|
||||
if (sensors(SENSOR_GPS)) {
|
||||
updateGpsWaypointsAndMode();
|
||||
}
|
||||
|
@ -649,7 +649,7 @@ static void subTaskMainSubprocesses(timeUs_t currentTimeUs)
|
|||
|
||||
processRcCommand();
|
||||
|
||||
#ifdef USE_GPS
|
||||
#ifdef USE_NAV
|
||||
if (sensors(SENSOR_GPS)) {
|
||||
if ((FLIGHT_MODE(GPS_HOME_MODE) || FLIGHT_MODE(GPS_HOLD_MODE)) && STATE(GPS_FIX_HOME)) {
|
||||
updateGpsStateForHomeAndHoldMode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue