Skip to content

Commit

Permalink
Correct ios rotation rate
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon committed Apr 17, 2020
1 parent 62bb46c commit 9c6913b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/expo-sensors/ios/EXSensors/EXSensorsManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ - (void)activateDeviceMotionUpdates
};
// Rate of rotation of the hosting device in space expressed in degrees per second.
result[@"rotationRate"] = @{
@"alpha": @([strongSelf radiansToDegrees:data.rotationRate.z]),
@"alpha": @([strongSelf radiansToDegrees:data.rotationRate.x]),
@"beta": @([strongSelf radiansToDegrees:data.rotationRate.y]),
@"gamma": @([strongSelf radiansToDegrees:data.rotationRate.x])
@"gamma": @([strongSelf radiansToDegrees:data.rotationRate.z])
};
}

Expand Down

0 comments on commit 9c6913b

Please sign in to comment.