Skip to content

Commit

Permalink
Disable sat info on arm
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Dec 24, 2023
1 parent fb74f3c commit 9e0b5b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/fc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ void tryArm(void)
lastArmingDisabledReason = 0;

#ifdef USE_GPS
GPS_reset_home_position();
//beep to indicate arming
if (featureIsEnabled(FEATURE_GPS)) {
GPS_reset_home_position();
if (STATE(GPS_FIX) && gpsSol.numSat >= gpsRescueConfig()->minSats) {
beeper(BEEPER_ARMING_GPS_FIX);
} else {
Expand Down
6 changes: 6 additions & 0 deletions src/main/io/gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -2565,6 +2565,12 @@ void GPS_reset_home_position(void)
// PS: to test for gyro cal, check for !ARMED, since we cannot be here while disarmed other than via gyro cal
}
}

// disable Sat Info requests on arming
if (ARMING_FLAG(ARMED)) {
setSatInfoMessageRate(0);
}

GPS_calculateDistanceFlown(true); // Initialize
}

Expand Down

0 comments on commit 9e0b5b7

Please sign in to comment.