Skip to content

Commit 498dbc0

Browse files
committed
Raw.
1 parent c366072 commit 498dbc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MadgwickAHRS/CoreMotionMadgwickTestDriver.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ - (void)start
105105
[_madgwickSensorFusion updateWithGyroscopeX:(float)[motion rotationRate].x
106106
gyroscopeY:(float)[motion rotationRate].y
107107
gyroscopeZ:(float)[motion rotationRate].z
108-
accelerometerX:(float)[motion gravity].x
109-
accelerometerY:(float)[motion gravity].y
110-
accelerometerZ:(float)[motion gravity].z
108+
accelerometerX:(float)[motion gravity].x * -1.0f
109+
accelerometerY:(float)[motion gravity].y * -1.0f
110+
accelerometerZ:(float)[motion gravity].z * -1.0f
111111
magnetometerX:(float)[motion magneticField].field.x
112112
magnetometerY:(float)[motion magneticField].field.y
113113
magnetometerZ:(float)[motion magneticField].field.z];

0 commit comments

Comments
 (0)