Skip to content

Commit

Permalink
FlightDisplay: remove gimbal yaw lock call
Browse files Browse the repository at this point in the history
We don't need this separate yaw lock call as the flags are already sent
as part of sendGimbalManagerPitchYaw which uses follow mode.

This caused problems because it leads to the situation where two
consequtive GIMBAL_MANAGER_DO_PITCH_YAW commands are sent, first for the
flags, second for the pitch and yaw values. The second one is dropped
with a warning because the "same command" is still pending.

Signed-off-by: Julian Oes <julian@oes.ch>
  • Loading branch information
julianoes committed Jan 15, 2024
1 parent f73cfe2 commit 4228b3f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/FlightDisplay/FlyViewVideoToolStrip.qml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ Item {
iconSource: "/HA_Icons/CAMERA_90.png"
onTriggered: {
if (_activeVehicle) {
_activeVehicle.gimbalController.toggleGimbalYawLock(true, false) // we need yaw lock for this
_activeVehicle.gimbalController.sendGimbalManagerPitchYaw(-90, 0) // point gimbal down
}
}
Expand Down

0 comments on commit 4228b3f

Please sign in to comment.