File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 99using WinchControllers, KiteUtils, PRIMA, ControlPlots
1010
1111TUNED:: Bool = false
12+ load_settings (" system.yaml" )
1213
1314function calc_force (v_wind, v_ro)
1415 (v_wind - v_ro)^ 2 * 4000.0 / 16.0
2627
2728function simulate (wcs:: WCSettings ; return_lg:: Bool = false )
2829 if TUNED
29- set = load_settings (" system.yaml" )
30- else
3130 set = load_settings (" system_tuned.yaml" )
31+ else
32+ set = load_settings (" system.yaml" )
3233 end
3334
3435 # define the simulation parameters
@@ -175,11 +176,14 @@ function update_settings(wcs::WCSettings)
175176 KiteUtils. writefile (lines, " data/wc_settings_tuned.yaml" )
176177end
177178
179+ println (KiteUtils. wc_settings ())
178180wcs = autotune (wcsSpeedControl)
181+ # set = load_settings("system_tuned.yaml")
179182if ! isnothing (wcs)
180183 copy_settings ()
181184 update_settings (wcs)
182185 println ()
186+ println (KiteUtils. wc_settings ())
183187 wcs = autotune (wcsLowerForceLimit)
184188 if ! isnothing (wcs)
185189 update_settings (wcs)
You can’t perform that action at this time.
0 commit comments