Copter: fix do-mount-control yaw scaling

This commit is contained in:
Randy Mackay 2022-09-05 12:44:16 +09:00 committed by Andrew Tridgell
parent 7244cd361d
commit 38665a7935
1 changed files with 1 additions and 3 deletions

View File

@ -737,9 +737,7 @@ MAV_RESULT GCS_MAVLINK_Copter::handle_command_mount(const mavlink_command_long_t
// if vehicle has a camera mount but it doesn't do pan control then yaw the entire vehicle instead
if ((copter.camera_mount.get_mount_type() != copter.camera_mount.MountType::Mount_Type_None) &&
!copter.camera_mount.has_pan_control()) {
copter.flightmode->auto_yaw.set_yaw_angle_rate(
(float)packet.param3 * 0.01f,
0.0f);
copter.flightmode->auto_yaw.set_yaw_angle_rate((float)packet.param3, 0.0f);
}
break;
default: