Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Mar 30, 2024
1 parent 0fc7980 commit 760d7fb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions examples/autopilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ using Printf
import KiteViewers.GLMakie

set = deepcopy(se())

# the following values can be changed to match your interest
MAX_TIME::Float64 = 460
TIME_LAPSE_RATIO = 4
SHOW_KITE = true
set.segments = 6
# end of user parameter section #

kcu::KCU = KCU(set)
kps4::KPS4 = KPS4(kcu)

Expand All @@ -35,12 +42,6 @@ function init_globals()
KiteViewers.plot_file[]="last_sim_log"
end

# the following values can be changed to match your interest
MAX_TIME::Float64 = 460
TIME_LAPSE_RATIO = 4
SHOW_KITE = true
# end of user parameter section #

viewer::Viewer3D = Viewer3D(set, SHOW_KITE; menus=true)
viewer.menu.options[]=["plot_main", "plot_power", "plot_control", "plot_elev_az", "plot_side_view", "plot_timing", "print_stats", "load logfile", "save logfile"]
viewer.menu_rel_tol.options[]=["0.0005","0.0001","0.00005", "0.00001","0.000005","0.000001"]
Expand Down

0 comments on commit 760d7fb

Please sign in to comment.