Skip to content

Commit

Permalink
fix setting of tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Mar 31, 2024
1 parent fc715b5 commit ffc9c36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/autopilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ function simulate(integrator, stopped=true)
if viewer.stop
sleep(dt)
else
if i == 1
integrator = KiteModels.init_sim!(kps4, stiffness_factor=0.04)
end
if i > 100
dp = KiteControllers.get_depower(ssc)
if dp < 0.22 dp = 0.22 end
Expand Down Expand Up @@ -296,6 +299,8 @@ if @isdefined __PRECOMPILE__
MAX_TIME = 30
play(false)
else
viewer.menu_rel_tol.i_selected[]=2
viewer.menu_rel_tol.i_selected[]=1
play(true)
end
stop_()
Expand Down

0 comments on commit ffc9c36

Please sign in to comment.