Browse Source

GimbalController.cc: send NAN instead of 0 when rates are not used

QGC4.4
davidsastresas 11 months ago committed by Julian Oes
parent
commit
29003c4f97
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 12
      src/Gimbal/GimbalController.cc

12
src/Gimbal/GimbalController.cc

@ -477,8 +477,8 @@ void GimbalController::sendPitchBodyYaw(float pitch, float yaw, bool showError) @@ -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 @@ -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) @@ -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<float>(qQNaN()),
static_cast<float>(qQNaN()),
NAN,
NAN,
flags,
0,
_activeGimbal->deviceId()->rawValue().toUInt());

Loading…
Cancel
Save