Skip to content

Commit

Permalink
returning SUPERVISOR_TUMBLE_CHECK_ENABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
matejkarasek committed Sep 9, 2024
1 parent ed55d64 commit 2c74eb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/src/supervisor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/platform/interface/platform_defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c74eb9

Please sign in to comment.