You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticconstexprfloat PERIOD_SAFETY_FACTOR = 4.0f; // multiplier for period lower bound [s]
340
340
341
+
/*
342
+
* tuning
343
+
*/
344
+
341
345
float period_{20.0f}; // nominal (desired) period -- user defined [s]
342
346
float damping_{0.7071f}; // nominal (desired) damping ratio -- user defined
343
347
float p_gain_{0.4442}; // proportional gain (computed from period_ and damping_) [rad/s]
344
348
float time_const_{14.142f}; // time constant (computed from period_ and damping_) [s]
345
349
float adapted_period_{20.0f}; // auto-adapted period (if stability bounds enabled) [s]
346
350
351
+
/*
352
+
* user defined guidance settings
353
+
*/
354
+
355
+
// guidance options
347
356
bool en_period_lb_{true}; // enables automatic lower bound constraints on controller period
348
357
bool en_period_ub_{true}; // enables automatic upper bound constraints on controller period (remains disabled if lower bound is disabled)
349
358
bool ramp_in_adapted_period_{true}; // linearly ramps in upper bounded period adaptations from the nominal user setting according to track proximity
350
-
351
359
bool en_min_ground_speed_{true}; // the airspeed reference is incremented to sustain a user defined minimum forward ground speed
352
360
bool en_track_keeping_{false}; // the airspeed reference is incremented to return to the track and sustain zero ground velocity until excess wind subsides
353
361
bool en_wind_excess_regulation_{true}; // the airspeed reference is incremented to regulate the excess wind, but not overcome it ...
354
362
// ^disabling this parameter disables all other excess wind handling options, using only the nominal airspeed for reference
355
-
float min_gsp_cmd_{0.0f}; // user defined miminum forward ground speed [m/s]
float min_ground_speed_ref_{0.0f}; // resultant minimum forward ground speed reference considering all active guidance logic [m/s]
370
+
371
+
// guidance parameters
372
+
float airspeed_buffer_{1.5f}; // size of the region above the feasibility boundary (into feasible space) where a continuous transition from feasible to infeasible is imposed [m/s]
float airspeed_buffer_{1.5f}; // size of the region above the feasibility boundary (into feasible space) where a continuous transition from feasible to infeasible is imposed [m/s]
364
387
365
-
float track_error_bound_{135.0f}; // the current ground speed dependent track error bound [m]
388
+
// track proximity
389
+
float track_error_bound_{212.13f}; // the current ground speed dependent track error bound [m]
366
390
float track_proximity_{0.0f}; // value in [0,1] indicating proximity to track, 0 = at track error boundary or beyond, 1 = on track
0 commit comments