Skip to content

Commit 77ee2f9

Browse files
committed
Assume not initialized before linearize
1 parent b7a3270 commit 77ee2f9

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-
@views last_theta .= y[theta_idxs]
694+
last_theta .= 0.0
695695
end
696696
if !isnothing(delta_idxs)
697697
@views last_delta::Vector{T} = body_aero.cache[3][y[delta_idxs]]
698-
@views last_delta .= y[delta_idxs]
698+
last_delta .= 0.0
699699
end
700700

701701
# Function to compute forces for given control inputs

0 commit comments

Comments
 (0)