Why doesn't the EKF use the compass?
Posted: Tue Feb 02, 2021 5:24 am
Some Crazyflie users are using a motion capture system with a single marker. In this mode we get an accurate position measurement but no attitude (like GPS).
If we hover in one place, the yaw estimate drifts over time due to gyro error. The only way to avoid this is by moving the Crazyflie around, which makes the yaw observable by the EKF.
Shouldn't we be able to use the IMU compass to help with this? I know the compass is generally not well-aligned with the Earth's magnetic field, but is its error stable over time? If so, I believe it could help. It might require some other nontrivial effort, like adding an EKF state for the rotation from the motion capture coordinate system to the compass coordinate system.
Just wondering if this has been considered before. Couldn't find much in these forums or Github issues.
If we hover in one place, the yaw estimate drifts over time due to gyro error. The only way to avoid this is by moving the Crazyflie around, which makes the yaw observable by the EKF.
Shouldn't we be able to use the IMU compass to help with this? I know the compass is generally not well-aligned with the Earth's magnetic field, but is its error stable over time? If so, I believe it could help. It might require some other nontrivial effort, like adding an EKF state for the rotation from the motion capture coordinate system to the compass coordinate system.
Just wondering if this has been considered before. Couldn't find much in these forums or Github issues.