Skip to content

Commit

Permalink
pbio/sys/storage_settings: Reduce default gyro threshold.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Sep 19, 2024
1 parent f298a37 commit bcddbf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
light. See ([support#1716]) and ([pybricks-micropython#261]).
- Allow gyro calibration only while all motors are coasting ([support#1840]) to
prevent recalibration during very steady moves.
- Reduced default angular velocity stationary threshold from an undocumented
5 deg/s to 3 deg/s to reduce unwanted calibration while moving ([support#1105]).

### Fixed
- Fixed not able to connect to new Technic Move hub with `LWP3Device()`.
Expand All @@ -52,6 +54,7 @@
[pybricks-micropython#253]: https://github.com/pybricks/pybricks-micropython/pull/253
[pybricks-micropython#254]: https://github.com/pybricks/pybricks-micropython/pull/254
[pybricks-micropython#261]: https://github.com/pybricks/pybricks-micropython/pull/261
[support#1105]: https://github.com/pybricks/support/issues/1105
[support#1429]: https://github.com/pybricks/support/issues/1429
[support#1460]: https://github.com/pybricks/support/issues/1460
[support#1615]: https://github.com/pybricks/support/issues/1615
Expand Down
4 changes: 2 additions & 2 deletions lib/pbio/sys/storage_settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ void pbsys_storage_settings_set_defaults(pbsys_storage_settings_t *settings) {
settings->flags |= PBSYS_STORAGE_SETTINGS_FLAGS_BLUETOOTH_ENABLED;
#endif
#if PBIO_CONFIG_IMU
settings->gyro_stationary_threshold = 5;
settings->accel_stationary_threshold = 2500;
settings->gyro_stationary_threshold = 3.0f;
settings->accel_stationary_threshold = 2500.0f;
settings->heading_correction = 360.0f;
#endif // PBIO_CONFIG_IMU
}
Expand Down

0 comments on commit bcddbf6

Please sign in to comment.