mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
APM_Control: lower the tuning trigger threshold
this allows for slower stick movements during tuning This is based on analysing the log from kir850 on rcgroups
This commit is contained in:
parent
6dce2e89c5
commit
47854ac4b7
@ -220,7 +220,7 @@ void AP_AutoTune::update(AP_Logger::PID_Info &pinfo, float scaler, float angle_e
|
|||||||
}
|
}
|
||||||
|
|
||||||
// thresholds for when we consider an event to start and end
|
// thresholds for when we consider an event to start and end
|
||||||
const float rate_threshold1 = 0.6 * MIN(att_limit_deg / current.tau.get(), current.rmax_pos);
|
const float rate_threshold1 = 0.4 * MIN(att_limit_deg / current.tau.get(), current.rmax_pos);
|
||||||
const float rate_threshold2 = 0.25 * rate_threshold1;
|
const float rate_threshold2 = 0.25 * rate_threshold1;
|
||||||
bool in_att_demand = fabsf(angle_err_deg) >= 0.3 * att_limit_deg;
|
bool in_att_demand = fabsf(angle_err_deg) >= 0.3 * att_limit_deg;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user