Skip to content

Commit

Permalink
use cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Nov 15, 2024
1 parent 77b3dab commit 0bebe97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/autopilot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ function print_stats()
av_power = 0.0
peak_power = 0.0
n = 0
last_full_cycle = maximum(sl.var_01)-1
last_full_cycle = maximum(sl.cycle)-1
for i in eachindex(sl.force)
if sl.var_01[i] in 2:last_full_cycle
if sl.cycle[i] in 2:last_full_cycle
av_power += sl.force[i]*sl.v_reelout[i]
n+=1
end
Expand Down

0 comments on commit 0bebe97

Please sign in to comment.