Skip to content

[Feature] Adjust default imu stationary thresholds #1105

Open

Description

@laurensvalk

I made some tests with the two Prime Hubs I have available.

I think the accelaration threashold can be completely left out. This is the one that is most sensible to vibrations and shock. Trampling on the ground or tapping the table will trigger it, even if you set relatively high values. I don't think it is neccesary to check this value at all. Theoreticalle the gyro can be calibrated anyway no matter what force values the robot it is experiencing as it is only the rotation that matters.

For the gyro I think a setting of about 5 will be ok. With this setting it is impossible to trigger steady when holding thy robot in the hand or when the robot is driving around on the table. With a setting of 10 it is possible the robot will sometimes go to steady state when doing a very calm straight drive.

Originally posted by @Kermit647 in #1080 (reply in thread)

Activity

  1. added
    topic: control
    topic: imu
    on Jun 8, 2023
  2. laurensvalk commented on Jun 8, 2023

    @laurensvalk
    MemberAuthor

    It would certainly be good to adjust them. I was at a busy event recently and couldn't get the calibration to pass in some conditions.

  3. added
    documentation
    software: pybricks-micropython
    on Jul 6, 2023
  4. laurensvalk commented on Jul 6, 2023

    @laurensvalk
    MemberAuthor

    For the gyro I think a setting of about 5 will be ok.

    Done!

    I think the accelaration threashold can be completely left out.

    I have now set this to 2500 deg/s^2, which should make it less susceptible to vibrations.

    It will still register a knock on the table, which is more or less intended when it comes to stationary detection.

    What do you think?

  5. laurensvalk commented on Sep 19, 2024

    @laurensvalk
    MemberAuthor

    @scatwang and @DrTom: This is where we introduced the relaxed thresholds.

    I think you have found in #1840 and #1687 that the current defaults are not sensitive enough. So 1.5 deg/s was too strict and 5 deg/s was too lax. I suppose that means we could consider 3 deg/s.

    Maybe it was mainly the acceleration threshold that was too sensitive in noisy FLL/WRO environments, so maybe we should leave that at this high 2500 value.

  6. laurensvalk commented on Sep 19, 2024

    @laurensvalk
    MemberAuthor

    We'll also want to update both in the documentation. pybricks/pybricks-micropython@8809277 was also not documented.

  7. laurensvalk commented on Sep 24, 2024

    @laurensvalk
    MemberAuthor

    The fix is available for testing using these instructions to try the latest version

    Please re-open if you experience any further issues or inconsistencies. Thank you!

  8. laurensvalk commented on Oct 29, 2024

    @laurensvalk
    MemberAuthor

    We'll also want to update both in the documentation. pybricks/pybricks-micropython@8809277 was also not documented.

    This was closed by GitHub action but the documentation hasn't been updated yet, so re-opening.

  9. added theissue type on Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationsoftware: pybricks-micropythontopic: controltopic: imu

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions