Skip to content

Commit

Permalink
use upwind_dir when calculating the heading
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Oct 5, 2024
1 parent 0f727d9 commit d30e4b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/KiteModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ end
Determine the heading angle of the kite in radian.
"""
function calc_heading(s::AKM)
function calc_heading(s::AKM; upwind_dir_=upwind_dir(s))
orientation = orient_euler(s)
elevation = calc_elevation(s)
azimuth = calc_azimuth(s)
KiteUtils.calc_heading(orientation, elevation, azimuth)
KiteUtils.calc_heading(orientation, elevation, azimuth; upwind_dir=upwind_dir_)
end

"""
Expand Down

0 comments on commit d30e4b9

Please sign in to comment.