Browse Source
this improves 4 things in the POSITION1 controller based on logs from 4.2.0beta2. The changes are designed to increase the tolerance to an incorrect value for Q_TRANS_DECEL, reducing landing overshoot 1) we fix the initialisation of the acceleration. The init_xy_controller() function assumes zero accel, so we need to call set_accel_desired_xy_cmss() just after that init to get the correct accel. Thanks to Leonard for this fix 2) if we decel more than expected due to too low Q_TRANS_DECEL we need to reduce the target speed, rather than putting the nose down 3) lower the default Q_P_JERK_XY to a value more appropriate for most quadplanes (Leonard suggested a value of 2) 4) fixed the pitch envelope from Q_BACKTRANS_MS to start after the airbrake phase is completegps-1.3.1
Andrew Tridgell
3 years ago
2 changed files with 33 additions and 6 deletions
Loading…
Reference in new issue