Skip to content

Commit

Permalink
pbio/imu: Reduce default gyro threshold to 2deg/s.
Browse files Browse the repository at this point in the history
Now that it is a bit less sensitive to outliers, we can reduce this value. See pybricks/support#1105
  • Loading branch information
laurensvalk committed Oct 29, 2024
1 parent 037543d commit accb117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pbio/src/imu.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static void pbio_imu_apply_pbdrv_settings(pbio_imu_persistent_settings_t *settin
*/
void pbio_imu_set_default_settings(pbio_imu_persistent_settings_t *settings) {
settings->flags = 0;
settings->gyro_stationary_threshold = 3.0f;
settings->gyro_stationary_threshold = 2.0f;
settings->accel_stationary_threshold = 2500.0f;
settings->gravity_pos.x = settings->gravity_pos.y = settings->gravity_pos.z = standard_gravity;
settings->gravity_neg.x = settings->gravity_neg.y = settings->gravity_neg.z = -standard_gravity;
Expand Down

0 comments on commit accb117

Please sign in to comment.