diff --git a/Project.toml b/Project.toml index e733aff9..0b1cc088 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/examples/steering_test.jl b/examples/steering_test.jl index 7a6f8dc5..c2e109e8 100644 --- a/examples/steering_test.jl +++ b/examples/steering_test.jl @@ -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 diff --git a/src/KPS4.jl b/src/KPS4.jl index 3e06e6e9..a54198e4 100644 --- a/src/KPS4.jl +++ b/src/KPS4.jl @@ -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)