Skip to content

Commit

Permalink
improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Oct 23, 2024
1 parent 960cb91 commit ccb9d06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified docs/src/step_response_kcu2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions examples/plot_step_response_kcu2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set = se("system2.yaml")

t_end = 10.0 # simulation time
dt = 1.0 / set.sample_freq # sampling time
step_size = 0.7
kcu = KCU(set)

times = Float64[]
Expand All @@ -23,9 +24,9 @@ for step in 1:Int(round(t_end/dt))
push!(depower_set, rel_depower_offset)
push!(steering_set, 0.0)
else
set_depower_steering(kcu, rel_depower_offset+0.24, 0.5)
set_depower_steering(kcu, rel_depower_offset+0.24, step_size)
push!(depower_set, rel_depower_offset+0.24)
push!(steering_set, 0.5)
push!(steering_set, step_size)
end
push!(times, time)
KitePodModels.on_timer(kcu)
Expand Down

0 comments on commit ccb9d06

Please sign in to comment.