|
|
@ -4292,12 +4292,6 @@ void Vehicle::_altitudeAboveTerrainReceived(bool success, QList<double> heights) |
|
|
|
|
|
|
|
|
|
|
|
void Vehicle::gimbalControlValue(double pitch, double yaw) |
|
|
|
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;
|
|
|
|
//qDebug() << "Gimbal:" << pitch << yaw;
|
|
|
|
sendMavCommand( |
|
|
|
sendMavCommand( |
|
|
|
_defaultComponentId, |
|
|
|
_defaultComponentId, |
|
|
|