diff --git a/docs/img/imu-axes.png b/docs/img/imu-axes.png index 003f03a..276c75c 100644 Binary files a/docs/img/imu-axes.png and b/docs/img/imu-axes.png differ diff --git a/docs/usage.md b/docs/usage.md index 723f8dc..48f73c5 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -114,7 +114,7 @@ You can also work with parameters using `p` command in the console. Parameter na The IMU orientation (relative to the drone's axes) is defined using the parameters: `IMU_ROT_ROLL`, `IMU_ROT_PITCH`, and `IMU_ROT_YAW`. -The drone has *X* axis pointing forward, *Y* axis pointing left, and *Z* axis pointing up, and the supported IMU boards have *X* axis pointing to the pins side and *Z* axis pointing up from the component side: +The drone has *X* axis pointing forward, *Y* axis pointing left, and *Z* axis pointing up, and the supported IMU boards have *X* axis pointing to the mounting holes side and *Z* axis pointing up from the component side: @@ -122,10 +122,10 @@ Use the following table to set the parameters for common IMU orientations: |Orientation|Parameters|Orientation|Parameters| |:-:|-|-|-| -||`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 0 ||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 0| -||`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 1.571||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = -1.571| -||`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 3.142||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 3.142| -|
☑️ **Default**|
`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = -1.571||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 1.571| +||`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 0 ||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 0| +||`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = -1.571||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = -1.571| +||`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 3.142||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 3.142| +|
☑️ **Default**|
`IMU_ROT_ROLL` = 0
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 1.571||`IMU_ROT_ROLL` = 3.142
`IMU_ROT_PITCH` = 0
`IMU_ROT_YAW` = 1.571| ### Calibrate accelerometer diff --git a/flix/imu.ino b/flix/imu.ino index e2bc5d0..136412e 100644 --- a/flix/imu.ino +++ b/flix/imu.ino @@ -10,7 +10,7 @@ #include "util.h" MPU9250 imu(SPI); -Vector imuRotation(0, 0, -PI / 2); // imu orientation as Euler angles +Vector imuRotation(0, 0, PI / 2); // imu orientation as Euler angles Vector gyro; // gyroscope output, rad/s Vector gyroBias;