Skip to content

Commit be1c7de

Browse files
committed
Fix linearize bug
1 parent 905cde3 commit be1c7de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solver.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,11 +691,11 @@ function linearize(solver::Solver, body_aero::BodyAerodynamics, y::Vector{T};
691691
init_va .= body_aero.va
692692
if !isnothing(theta_idxs)
693693
@views last_theta::Vector{T} = body_aero.cache[2][y[theta_idxs]]
694-
last_theta .= 0.0
694+
last_theta .= NaN
695695
end
696696
if !isnothing(delta_idxs)
697697
@views last_delta::Vector{T} = body_aero.cache[3][y[delta_idxs]]
698-
last_delta .= 0.0
698+
last_delta .= NaN
699699
end
700700

701701
# Function to compute forces for given control inputs

0 commit comments

Comments
 (0)