Open ansarid opened 5 years ago
yes, this is called gyro drift and is natural. You could pass the data through a high-pass filter to stop the number growing, but that doesn't fix gyro drift.
The MPU API has a built-in crossover filter for fusing in the magnetometer data to help stop drift. Enable this with the -m option to rc_test_dmp.
Also make sure the sensor is calibrated by running rc_calibrate_gyro and rc_calibrate_mag
When running
rc_test_dmp -t
after calibrating, the Z axis value will slowly increase over time.Running on a BeagleBone Blue and Debian 9.5 2018-10-07 4GB SD IoT