diff --git a/src/modules/src/supervisor.c b/src/modules/src/supervisor.c index 80089dfb8..d9e6ae3e7 100644 --- a/src/modules/src/supervisor.c +++ b/src/modules/src/supervisor.c @@ -297,7 +297,7 @@ static void postTransitionActions(SupervisorMem_t* this, const supervisorState_t } } -uint8_t tumbleCheckEnabled = 1; +uint8_t tumbleCheckEnabled = SUPERVISOR_TUMBLE_CHECK_ENABLE; static supervisorConditionBits_t updateAndPopulateConditions(SupervisorMem_t* this, const sensorData_t *sensors, const setpoint_t* setpoint, const uint32_t currentTick) { supervisorConditionBits_t conditions = 0; diff --git a/src/platform/interface/platform_defaults.h b/src/platform/interface/platform_defaults.h index 72d2e58c4..3accbfaa6 100644 --- a/src/platform/interface/platform_defaults.h +++ b/src/platform/interface/platform_defaults.h @@ -124,6 +124,10 @@ #endif // Tumble detection settings +#ifndef SUPERVISOR_TUMBLE_CHECK_ENABLE + #define SUPERVISOR_TUMBLE_CHECK_ENABLE true +#endif + // 60 degrees tilt (when stationary) #ifndef SUPERVISOR_TUMBLE_CHECK_ACCEPTED_TILT_ACCZ #define SUPERVISOR_TUMBLE_CHECK_ACCEPTED_TILT_ACCZ 0.5f