Skip to content

Commit 3a379a7

Browse files
committed
Revert "Merge pull request #8012 from iNavFlight/dzikuvx-require-acc-calibration-only-when-needed"
This reverts commit 9ad6aeb, reversing changes made to a1afa96.
1 parent 9ad6aeb commit 3a379a7

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/main/fc/fc_core.c

+1-20
Original file line numberDiff line numberDiff line change
@@ -265,26 +265,7 @@ static void updateArmingStatus(void)
265265
#endif
266266

267267
/* CHECK: */
268-
if (
269-
sensors(SENSOR_ACC) &&
270-
!STATE(ACCELEROMETER_CALIBRATED) &&
271-
// Require ACC calibration only if any of the setting might require it
272-
(
273-
isModeActivationConditionPresent(BOXNAVPOSHOLD) ||
274-
isModeActivationConditionPresent(BOXNAVRTH) ||
275-
isModeActivationConditionPresent(BOXNAVWP) ||
276-
isModeActivationConditionPresent(BOXANGLE) ||
277-
isModeActivationConditionPresent(BOXHORIZON) ||
278-
isModeActivationConditionPresent(BOXNAVALTHOLD) ||
279-
isModeActivationConditionPresent(BOXHEADINGHOLD) ||
280-
isModeActivationConditionPresent(BOXNAVLAUNCH) ||
281-
isModeActivationConditionPresent(BOXTURNASSIST) ||
282-
isModeActivationConditionPresent(BOXNAVCOURSEHOLD) ||
283-
isModeActivationConditionPresent(BOXSOARING) ||
284-
failsafeConfig()->failsafe_procedure != FAILSAFE_PROCEDURE_DROP_IT
285-
286-
)
287-
) {
268+
if (sensors(SENSOR_ACC) && !STATE(ACCELEROMETER_CALIBRATED)) {
288269
ENABLE_ARMING_FLAG(ARMING_DISABLED_ACCELEROMETER_NOT_CALIBRATED);
289270
}
290271
else {

0 commit comments

Comments
 (0)