- Fixed IMU calibration function bugs
- Fixed IMU data processing bugs - Fixed madgwick init bug - Inverted magn axis relative to IMU (180 degree rotation) in madgwick - Acc bias currently set to 0 and 1 for gravity - Gyro values now rad/s instead of deg/s as madgwick requires
This commit is contained in:
1 parent
1409bad40b
commit
570f0c12f9
19 files changed
+45215
-45317
No files matched your search
@@ -1,4 +1,12 @@
|
||||
#include "trinity_helperlib.h"
|
||||
|
||||
void convert_rad_to_deg (float data[]) {
|
||||
float factor = 0.01745329252f;
|
||||
|
||||
for (int i = 0; i <= sizeof(data)/sizeof(data[0]); i++) {
|
||||
data[i] *= factor;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user