mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 01:23:34 +08:00
disable spinup tilt sequence if spinup tilt parameter is set to 0
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
7e4a53f292
commit
4e3f65e376
@@ -226,7 +226,7 @@ void Tiltrotor::update_mc_state()
|
|||||||
// reset this timestamp while disarmed
|
// reset this timestamp while disarmed
|
||||||
if (!_v_control_mode->flag_armed) {
|
if (!_v_control_mode->flag_armed) {
|
||||||
_last_timestamp_disarmed = hrt_absolute_time();
|
_last_timestamp_disarmed = hrt_absolute_time();
|
||||||
_tilt_motors_for_startup = true;
|
_tilt_motors_for_startup = _params_tiltrotor.tilt_spinup > 0.01f; // spinup phase only required if spinup tilt > 0
|
||||||
|
|
||||||
} else if (_tilt_motors_for_startup) {
|
} else if (_tilt_motors_for_startup) {
|
||||||
// leave motors tilted forward after arming to allow them to spin up easier
|
// leave motors tilted forward after arming to allow them to spin up easier
|
||||||
|
|||||||
Reference in New Issue
Block a user