Browse Source

Vehicle: Remove centi-degrees conversion in MOUNT_CONTROL

Fixes: #11215
QGC4.4
Nick Exton 12 months ago committed by Julian Oes
parent
commit
ec08766761
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 6
      src/Vehicle/Vehicle.cc

6
src/Vehicle/Vehicle.cc

@ -4292,12 +4292,6 @@ void Vehicle::_altitudeAboveTerrainReceived(bool success, QList<double> heights) @@ -4292,12 +4292,6 @@ void Vehicle::_altitudeAboveTerrainReceived(bool success, QList<double> heights)
void Vehicle::gimbalControlValue(double pitch, double yaw)
{
if (apmFirmware()) {
// ArduPilot firmware treats this values as centi-degrees
pitch *= 100;
yaw *= 100;
}
//qDebug() << "Gimbal:" << pitch << yaw;
sendMavCommand(
_defaultComponentId,

Loading…
Cancel
Save