Skip to content

Commit da9e422

Browse files
committed
Fix r2q conversion bug
1 parent cc79af4 commit da9e422

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spatialmath/base/quaternions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def r2q(
629629
else:
630630
e[0] = math.copysign(e[0], R[1, 0] - R[0, 1])
631631
e[1] = math.copysign(e[1], R[0, 2] + R[2, 0])
632-
e[2] = math.copysign(e[1], R[2, 1] + R[1, 2])
632+
e[2] = math.copysign(e[2], R[2, 1] + R[1, 2])
633633

634634
if order == "sxyz":
635635
return e

0 commit comments

Comments
 (0)