Skip to content

Commit db9e433

Browse files
committed
🐛 Add default rotation sequence in (CRP, MRP) => Euler angles
1 parent f41b06f commit db9e433

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/conversions/crp_to_angle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ EulerAngles{Float64}:
3232
R(Z) : 0.0 rad ( 0.0°)
3333
```
3434
"""
35-
function crp_to_angle(c::CRP, rot_seq::Symbol)
35+
function crp_to_angle(c::CRP, rot_seq::Symbol = :ZYX)
3636
dcm = crp_to_dcm(c)
3737
return dcm_to_angle(dcm, rot_seq)
3838
end

src/conversions/mrp_to_angle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export mrp_to_angle
1111
1212
Convert MRP `m` to Euler Angles with rotation sequence `rot_seq`.
1313
"""
14-
function mrp_to_angle(m::MRP, rot_seq::Symbol)
14+
function mrp_to_angle(m::MRP, rot_seq::Symbol = :ZYX)
1515
dcm = mrp_to_dcm(m)
1616
return dcm_to_angle(dcm, rot_seq)
1717
end

0 commit comments

Comments
 (0)