Skip to content

Commit c028a04

Browse files
committed
add function menu2
1 parent 78f881b commit c028a04

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- add the packages `JLD2` and `Colors` to the system image
1212
#### Added
1313
- add examples `calc_spectrum.jl` and `plot_spectrum` to plot the eigenfrequencies of the system
14+
- function `menu2()` which displays a menu with scripts for model verification
1415

1516
### KiteModels v0.6.11 2024-11-09
1617
#### Fixed

src/KiteModels.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export init_sim!, reset_sim!, next_step!, init_pos_vel, init_pos, model!
6060
export pos_kite, calc_height, calc_elevation, calc_azimuth, calc_heading, calc_course, calc_orient_quat # getters
6161
export calc_azimuth_north, calc_azimuth_east
6262
export winch_force, lift_drag, cl_cd, lift_over_drag, unstretched_length, tether_length, v_wind_kite # getters
63-
export kite_ref_frame, orient_euler, spring_forces, upwind_dir, copy_model_settings
63+
export kite_ref_frame, orient_euler, spring_forces, upwind_dir, copy_model_settings, menu2
6464
import LinearAlgebra: norm
6565

6666
set_zero_subnormals(true) # required to avoid drastic slow down on Intel CPUs when numbers become very small
@@ -117,7 +117,11 @@ end
117117
include("KPS4.jl") # include code, specific for the four point kite model
118118
include("KPS4_3L.jl") # include code, specific for the four point 3 line kite model
119119
include("KPS3.jl") # include code, specific for the one point kite model
120-
include("init.jl") # functions to calculate the inital state vector, the inital masses and initial springs
120+
include("init.jl") # functions to calculate the initial state vector, the initial masses and initial springs
121+
122+
function menu2()
123+
Main.include("examples/menu2.jl")
124+
end
121125

122126
# Calculate the lift and drag coefficient as a function of the angle of attack alpha.
123127
function set_cl_cd!(s::AKM, alpha)

0 commit comments

Comments
 (0)