Skip to content

Commit

Permalink
dispatch on kcu_model
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Aug 9, 2024
1 parent 14fb440 commit a4907d8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/KitePodModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ actual rel_depower value.
Returns `nothing` in case of error.
"""
function calc_alpha_depower(kcu::KCU, rel_depower)
if kcu.set.kcu_model == "KCU1"
return calc_alpha_depower1(kcu, rel_depower)
elseif kcu.set.kcu_model == "KCU2"
return calc_alpha_depower2(kcu, rel_depower)
else
println("ERROR: unknown KCU model: $(kcu.set.kcu_model)")
return nothing
end
end
function calc_alpha_depower1(kcu::KCU, rel_depower)
a = kcu.set.power2steer_dist
b_0 = kcu.set.h_bridle + 0.5 * kcu.set.height_k
b = b_0 + 0.5 * calc_delta_l(kcu, rel_depower) # factor 0.5 due to the pulleys
Expand All @@ -101,6 +111,9 @@ function calc_alpha_depower(kcu::KCU, rel_depower)
end
end

function calc_alpha_depower2(kcu::KCU, rel_depower)
end

"""
set_depower_steering(kcu::KCU, depower, steering)
Expand Down

0 comments on commit a4907d8

Please sign in to comment.