Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Oct 26, 2024
1 parent 091ffa2 commit c1a2448
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/minipilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ viewer::Viewer3D = Viewer3D(SHOW_KITE)
PARKING::Bool = false

steps = 0
if ! @isdefined T; const T = zeros(Int64(MAX_TIME/dt)); end
if ! @isdefined DELTA_T; const DELTA_T = zeros(Int64(MAX_TIME/dt)); end
if ! @isdefined STEERING; const STEERING = zeros(Int64(MAX_TIME/dt)); end
if ! @isdefined DEPOWER_; const DEPOWER_ = zeros(Int64(MAX_TIME/dt)); end
T::Vector{Float64} = zeros(Int64(MAX_TIME/dt))
DELTA_T::Vector{Float64} = zeros(Int64(MAX_TIME/dt))
STEERING::Vector{Float64} = zeros(Int64(MAX_TIME/dt))
DEPOWER_::Vector{Float64} = zeros(Int64(MAX_TIME/dt))
LAST_I::Int64=0

function simulate(integrator, stopped=true)
Expand Down

0 comments on commit c1a2448

Please sign in to comment.