mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 09:43:57 -04:00
Plane: improve fast/slow tilt in ground tests
when disarmed use the slow tilts so users can judge the rates it will use in flight
This commit is contained in:
parent
aab20317a0
commit
76870f8e01
@ -18,7 +18,14 @@ float QuadPlane::tilt_max_change(bool up)
|
||||
rate = tilt.max_rate_down_dps;
|
||||
}
|
||||
if (tilt.tilt_type != TILT_TYPE_BINARY && !up) {
|
||||
if (plane.control_mode == MANUAL || (!in_vtol_mode() && !assisted_flight)) {
|
||||
bool fast_tilt = false;
|
||||
if (plane.control_mode == MANUAL) {
|
||||
fast_tilt = true;
|
||||
}
|
||||
if (hal.util->get_soft_armed() && !in_vtol_mode() && !assisted_flight) {
|
||||
fast_tilt = true;
|
||||
}
|
||||
if (fast_tilt) {
|
||||
// allow a minimum of 90 DPS in manual or if we are not
|
||||
// stabilising, to give fast control
|
||||
rate = MAX(rate, 90);
|
||||
|
Loading…
Reference in New Issue
Block a user