mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Plane: fixed use of VTOL control for missions
horizontal speed was not being setup when doing waypoint missions in VTOL mode
This commit is contained in:
parent
cd46c5006a
commit
cce2532901
@ -2486,6 +2486,10 @@ void QuadPlane::setup_target_position(void)
|
||||
// setup vertical speed and acceleration
|
||||
pos_control->set_max_speed_z(-pilot_velocity_z_max, pilot_velocity_z_max);
|
||||
pos_control->set_max_accel_z(pilot_accel_z);
|
||||
|
||||
// setup horizontal speed and acceleration
|
||||
pos_control->set_max_speed_xy(wp_nav->get_default_speed_xy());
|
||||
pos_control->set_max_accel_xy(wp_nav->get_wp_acceleration());
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user