We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c366072 commit 498dbc0Copy full SHA for 498dbc0
MadgwickAHRS/CoreMotionMadgwickTestDriver.m
@@ -105,9 +105,9 @@ - (void)start
105
[_madgwickSensorFusion updateWithGyroscopeX:(float)[motion rotationRate].x
106
gyroscopeY:(float)[motion rotationRate].y
107
gyroscopeZ:(float)[motion rotationRate].z
108
- accelerometerX:(float)[motion gravity].x
109
- accelerometerY:(float)[motion gravity].y
110
- accelerometerZ:(float)[motion gravity].z
+ accelerometerX:(float)[motion gravity].x * -1.0f
+ accelerometerY:(float)[motion gravity].y * -1.0f
+ accelerometerZ:(float)[motion gravity].z * -1.0f
111
magnetometerX:(float)[motion magneticField].field.x
112
magnetometerY:(float)[motion magneticField].field.y
113
magnetometerZ:(float)[motion magneticField].field.z];
0 commit comments