-
|
When adjusting imu.heading values through imu.settings(), I'm asking this because I'm not familiar with how the hub internally computes heading. Should I just focus on angular_velocity_threshold and headings_correction? Thanke you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The imu measures 6 values: Acceleration in x,y and z direction and angular acceleration around x,y and z axis. Acceleration includes gravitational acceleration and is used to obtain roll and pitch angles. Angular acceleration is used to get the change in heading.
The imu calculates the heading
|
Beta Was this translation helpful? Give feedback.
The imu measures 6 values: Acceleration in x,y and z direction and angular acceleration around x,y and z axis. Acceleration includes gravitational acceleration and is used to obtain roll and pitch angles. Angular acceleration is used to get the change in heading.
acceleration_correctionimproves roll and pitch, it does not improve your heading.angular_velocity_scaleimproves heading in x,y and z direction.headings_correctionis the same in one dimension if your hub has a given roll and pitch angle which does not change.The imu calculates the heading$h$ as a function of time $t$ from the angular acceleration $a$ using
$$\quad\displaystyle h(t) = \iint a(t) dt dt.$$
For an initial hea…