Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Mar 21, 2024
1 parent 46af09d commit 46cd694
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/depower_bench_video.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PLOT_PERFORMANCE = false
# end of user parameter section #

if ! @isdefined time_vec; const time_vec = zeros(div(STEPS, TIME_LAPSE_RATIO)); end
if ! @isdefined viewer; const viewer = Viewer3D(SHOW_KITE); end
viewer::Viewer3D = Viewer3D(SHOW_KITE)

# ffmpeg -r:v 20 -i "video%06d.png" -codec:v libx264 -preset veryslow -pix_fmt yuv420p -crf 10 -an "video.mp4"

Expand Down
2 changes: 1 addition & 1 deletion examples/joystick.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ TIME_LAPSE_RATIO = 1
SHOW_KITE = true
# end of user parameter section #

if ! @isdefined viewer; const viewer = Viewer3D(SHOW_KITE); end
if ! @isdefined time_vec_tot; const time_vec_tot = zeros(Int(MAX_TIME/dt)); end
if ! @isdefined time_vec_gc; const time_vec_gc = zeros(Int(MAX_TIME/dt)); end
viewer::Viewer3D = Viewer3D(SHOW_KITE)

steps=0

Expand Down
2 changes: 1 addition & 1 deletion examples/reelout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PLOT_PERFORMANCE = false
# end of user parameter section #

if ! @isdefined time_vec; const time_vec = zeros(div(STEPS, TIME_LAPSE_RATIO)); end
if ! @isdefined viewer; const viewer = Viewer3D(SHOW_KITE); end
viewer::Viewer3D = Viewer3D(SHOW_KITE)

# ffmpeg -r:v 20 -i "video%06d.png" -codec:v libx264 -preset veryslow -pix_fmt yuv420p -crf 10 -an "video.mp4"

Expand Down
2 changes: 1 addition & 1 deletion examples/steering_4p.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ STATISTIC = false
SHOW_KITE = true
# end of user parameter section #

if ! @isdefined viewer; const viewer = Viewer3D(SHOW_KITE); end
viewer::Viewer3D = Viewer3D(SHOW_KITE)

function update_system2(kps)
sys_state = SysState(kps)
Expand Down
2 changes: 1 addition & 1 deletion examples/steering_bench_video.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ PLOT_PERFORMANCE = false
# end of user parameter section #

if ! @isdefined time_vec; const time_vec = zeros(div(STEPS, TIME_LAPSE_RATIO)); end
if ! @isdefined viewer; const viewer = Viewer3D(SHOW_KITE); end
viewer::Viewer3D = Viewer3D(SHOW_KITE)

# ffmpeg -r:v 20 -i "video%06d.png" -codec:v libx264 -preset veryslow -pix_fmt yuv420p -crf 10 -an "video.mp4"
# plot(range(0.5,45,step=0.5), time_vec, ylabel="CPU time [%]", xlabel="Simulation time [s]", legend=false)
Expand Down

0 comments on commit 46cd694

Please sign in to comment.