From 1206df6f0c052871786e61536cf13c64e030a1cf Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 4 Jun 2020 17:29:28 +1000 Subject: [PATCH] ArduPlane: remove use of Vector2 as function --- ArduPlane/quadplane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/quadplane.cpp b/ArduPlane/quadplane.cpp index 96712ca310..68db3864bc 100644 --- a/ArduPlane/quadplane.cpp +++ b/ArduPlane/quadplane.cpp @@ -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