From ec5f09d5cb59e5fe7e7f602e85c50825cfb01f21 Mon Sep 17 00:00:00 2001 From: RomanBapst Date: Mon, 1 Jul 2024 07:34:44 +0200 Subject: [PATCH] ekf2: implement wind reset Signed-off-by: RomanBapst --- src/modules/ekf2/EKF2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/ekf2/EKF2.cpp b/src/modules/ekf2/EKF2.cpp index 526eee5140..123b5e37a4 100644 --- a/src/modules/ekf2/EKF2.cpp +++ b/src/modules/ekf2/EKF2.cpp @@ -536,7 +536,8 @@ void EKF2::Run() } if (vehicle_command.command == vehicle_command_s::VEHICLE_CMD_EXTERNAL_WIND_ESTIMATE) { - _ekf.resetWindToExternalObservation(vehicle_command.param1, vehicle_command.param3, vehicle_command.param2, vehicle_command.param4); + _ekf.resetWindToExternalObservation(vehicle_command.param1, vehicle_command.param3, vehicle_command.param2, + vehicle_command.param4); } } }