mirror of https://github.com/ArduPilot/ardupilot
ArduPlane: remove use of Vector2 as function
This commit is contained in:
parent
dad5b4e903
commit
1206df6f0c
|
@ -2279,7 +2279,7 @@ void QuadPlane::vtol_position_controller(void)
|
|||
float target_speed = target_speed_xy.length();
|
||||
if (distance < 1) {
|
||||
// prevent numerical error before switching to POSITION2
|
||||
target_speed_xy(0.1, 0.1);
|
||||
target_speed_xy = {0.1, 0.1};
|
||||
}
|
||||
if (target_speed < final_speed) {
|
||||
// until we enter the loiter we always aim for at least 2m/s
|
||||
|
|
Loading…
Reference in New Issue