From e6f488ccc11e2eb753c85e494304f29e09331754 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 4 Mar 2022 08:53:38 +0900 Subject: [PATCH] AP_Follow: zreo velocities if not provided --- libraries/AP_Follow/AP_Follow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Follow/AP_Follow.cpp b/libraries/AP_Follow/AP_Follow.cpp index 4e996c49aa..a71d8eefa3 100644 --- a/libraries/AP_Follow/AP_Follow.cpp +++ b/libraries/AP_Follow/AP_Follow.cpp @@ -349,6 +349,8 @@ void AP_Follow::handle_msg(const mavlink_message_t &msg) _target_velocity_ned.x = packet.vel[0]; // velocity north _target_velocity_ned.y = packet.vel[1]; // velocity east _target_velocity_ned.z = packet.vel[2]; // velocity down + } else { + _target_velocity_ned.zero(); } // get a local timestamp with correction for transport jitter