Skip to content
Snippets Groups Projects
Commit 1f084260 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

rotmat: fixed rotation init

parent 0f726702
Branches
Tags
No related merge requests found
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
''' '''
from __future__ import print_function from __future__ import print_function
from math import sin, cos, sqrt, asin, atan2, pi, acos from math import sin, cos, sqrt, asin, atan2, pi, acos, radians
class Vector3(object): class Vector3(object):
...@@ -423,7 +423,7 @@ class Rotation(object): ...@@ -423,7 +423,7 @@ class Rotation(object):
self.pitch = pitch self.pitch = pitch
self.yaw = yaw self.yaw = yaw
self.r = Matrix3() self.r = Matrix3()
self.r.from_euler(self.roll, self.pitch, self.yaw) self.r.from_euler(radians(self.roll), radians(self.pitch), radians(self.yaw))
self.rt = self.r.transposed() self.rt = self.r.transposed()
# the rotations used in APM # the rotations used in APM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment