From 29003c4f978187861674f6f281c8477493b689ec Mon Sep 17 00:00:00 2001 From: davidsastresas Date: Thu, 28 Mar 2024 06:32:17 +0100 Subject: [PATCH] GimbalController.cc: send NAN instead of 0 when rates are not used --- src/Gimbal/GimbalController.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Gimbal/GimbalController.cc b/src/Gimbal/GimbalController.cc index 954098a..471bed3 100644 --- a/src/Gimbal/GimbalController.cc +++ b/src/Gimbal/GimbalController.cc @@ -477,8 +477,8 @@ void GimbalController::sendPitchBodyYaw(float pitch, float yaw, bool showError) showError, pitch, yaw, - 0, - 0, + NAN, + NAN, flags, 0, _activeGimbal->deviceId()->rawValue().toUInt()); @@ -510,8 +510,8 @@ void GimbalController::sendPitchAbsoluteYaw(float pitch, float yaw, bool showErr showError, pitch, yaw, - 0, - 0, + NAN, + NAN, flags, 0, _activeGimbal->deviceId()->rawValue().toUInt()); @@ -558,8 +558,8 @@ void GimbalController::sendPitchYawFlags(uint32_t flags) true, _activeGimbal->absolutePitch()->rawValue().toFloat(), yaw_in_vehicle_frame ? _activeGimbal->bodyYaw()->rawValue().toFloat() : _activeGimbal->absoluteYaw()->rawValue().toFloat(), - static_cast(qQNaN()), - static_cast(qQNaN()), + NAN, + NAN, flags, 0, _activeGimbal->deviceId()->rawValue().toUInt());