Skip to content

Commit

Permalink
Mump KiteUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Sep 16, 2024
1 parent 33194bd commit b012f0e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ DiffEqBase = "6.152.2"
DocStringExtensions = "0.8, 0.9"
Documenter = "1.0"
KitePodModels = "0.3.3"
KiteUtils = "0.7.8"
KiteUtils = "0.7.10"
LaTeXStrings = "1.3.1"
ModelingToolkit = "~9.35.0"
NLsolve = "4.5"
Expand Down
5 changes: 0 additions & 5 deletions examples/steering_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ if PLOT
close("all")
end

function wrap2pi(angle)
num2pi = floor(angle / 2π + 0.5)
angle - 2π * num2pi
end

function simulate(integrator, steps; plot=false)
OFFSET = 5
iter = 0
Expand Down
12 changes: 0 additions & 12 deletions src/KPS4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -294,18 +294,6 @@ The result is stored in the array s.forces.
nothing
end

"""
asin2(arg)
Calculate the asin of arg, but allow values slightly above one and below
minus one to avoid exceptions in case of rounding errors. Returns an
angle in radian.
"""
@inline function asin2(arg)
arg2 = min(max(arg, -one(arg)), one(arg))
asin(arg2)
end

"""
calc_aero_forces!(s::KPS4, pos, vel, rho, alpha_depower, rel_steering)
Expand Down

0 comments on commit b012f0e

Please sign in to comment.