Skip to content

Commit

Permalink
rotmat: fixed rotation init
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed May 6, 2022
1 parent 0f72670 commit 1f08426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rotmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
'''
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):
Expand Down Expand Up @@ -423,7 +423,7 @@ def __init__(self, name, roll, pitch, yaw):
self.pitch = pitch
self.yaw = yaw
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()

# the rotations used in APM
Expand Down

0 comments on commit 1f08426

Please sign in to comment.