Skip to content

Commit 3571f74

Browse files
committed
Now 83.71%
1 parent d67e18a commit 3571f74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/autotune.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ function autotune(controller::WinchControllerState)
122122
# Define the parameters for the autotuning
123123
x0 = [wcs.p_speed, wcs.i_speed, wcs.t_blend] # initial guess for the speed controller gain
124124
x, info = bobyqa(simulate_sc, x0;
125-
xl = 0.25 .* x0,
126-
xu = 2.0 .* x0,
125+
xl = 0.75 .* x0,
126+
xu = 1.5 .* x0,
127127
rhobeg = minimum(x0)/4,
128128
npt=10,
129129
maxfun = 500
130130
)
131131
elseif controller == wcsLowerForceLimit
132132
println("Autotuning lower force limit controller...")
133133
# Define the parameters for the autotuning
134-
x0 = [maximum([1e-4, minimum(wcs.pf_low)/4]), wcs.if_low] # initial guess for the speed controller gain
134+
x0 = [maximum([1e-4, wcs.pf_low]), wcs.if_low] # initial guess for the speed controller gain
135135

136136
x, info = bobyqa(simulate_lfc, x0;
137137
xl = 0.25 .* x0,

0 commit comments

Comments
 (0)