Skip to content

Commit

Permalink
Update src/dlc2kinematics/utils/auxiliaryfunctions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeylau authored Dec 13, 2023
1 parent 1b98e64 commit e8b3169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dlc2kinematics/utils/auxiliaryfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def doubleangle_calc(pos):
y = rel[1]
z = rel[2]
# yaw, pitch relative to the vertical plane (x-z plane)
yaw = np.arctan(x / z) * 180 / np.pi
yaw = np.rad2deg(np.arctan2(x, z))
padj = np.sqrt((x ** 2) + (z ** 2))
pitch = np.arctan(padj / y) * 180.0 / np.pi

Expand Down

0 comments on commit e8b3169

Please sign in to comment.