Skip to content

Commit

Permalink
Passing unmodified CoreMotion Euler angles out.
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarenerd committed Jun 17, 2016
1 parent 4c717ac commit cfa5d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MadgwickAHRS/CoreMotionMadgwickTestDriver.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ - (void)start
yaw = NormalizeAngle(RadiansToDegrees(yaw));

// Obtain CoreMotion roll, pitch and yaw for comparison logging below.
float coreMotionRoll = NormalizeAngle(RadiansToDegrees([[motion attitude] roll]));
float coreMotionRoll = RadiansToDegrees([[motion attitude] roll]);
float coreMotionPitch = RadiansToDegrees([[motion attitude] pitch]);
float coreMotionYaw = NormalizeAngle(RadiansToDegrees([[motion attitude] yaw]));
float coreMotionYaw = RadiansToDegrees([[motion attitude] yaw]);

// Notify the delegate.
if ([[self delegate] respondsToSelector:@selector(coreMotionMadgwickTestDriver:
Expand Down

0 comments on commit cfa5d59

Please sign in to comment.