Announcement

Collapse
No announcement yet.

How to reset REV IMu

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to reset REV IMu

    Hello, how do you reset the angles in the IMU of REV Expansion Hub?

    It doesn't have any reset functions, and I can't just simply equate it to 0
    i.e;
    Code:
    Orientation angles = imu.getAngularOrientation();
    angles.firstAngle = 0;
    and equating
    HTML Code:
    angles
    again doesn't seems to get it

  • #2
    ... and equating Angles again to imu.getAngularOrientation() doesn't seems to reset it either...

    Comment


    • #3
      there is no reset angle AFAIK. we set offset = current angle when we want to reset and then to read angle afterword, always subtract this offset from reading you get from IMU.

      Comment


      • #4

        Orientation angles = imu.getAngularOrientation(); In this case angles is your local variable which will be set to value returned from imu.getAngularOrientation(); so changing value of angles variable is not going to change imu reading.

        Comment

        Working...
        X