Skip to content

Commit 8272171

Browse files
committed
Set R to have a negative state priority
1 parent 6ca4d10 commit 8272171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/orientation.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The primary difference between `NumRotationMatrix` and `RotationMatrix` is that
3939
4040
Never call this function directly from a component constructor, instead call `f = Frame(); R = ori(f)` and add `f` to the subsystems.
4141
"""
42-
function NumRotationMatrix(; R = collect(1.0I(3)), w = zeros(3), name=:R, varw = false, state_priority=nothing)
42+
function NumRotationMatrix(; R = collect(1.0I(3)), w = zeros(3), name=:R, varw = false, state_priority=-1)
4343
# The reason for not calling this directly is that all R vaiables have to have the same name since they are treated as connector variables (otherwise a connection error is thrown). A component with more than one rotation matrix will thus have two different R variables that overwrite each other
4444
R = at_variables_t(:R, 1:3, 1:3; default = R, state_priority) #[description="Orientation rotation matrix ∈ SO(3)"]
4545
# @variables w(t)[1:3]=w [description="angular velocity"]

0 commit comments

Comments
 (0)