Skip to content

Commit

Permalink
Joystick:cc: Fix gimbal rate behaviour after commit e38fd4d
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidsastresas committed Jan 21, 2025
1 parent 1537cf7 commit a76296c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Joystick/Joystick.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1053,18 +1053,26 @@ void Joystick::_executeButtonAction(const QString &action, bool buttonDown)
} else if (action == _buttonActionGimbalUp) {
if (buttonDown) {
emit gimbalPitchStart(1);
} else {
emit gimbalPitchStop();
}
} else if (action == _buttonActionGimbalDown) {
if (buttonDown) {
emit gimbalPitchStart(-1);
} else {
emit gimbalPitchStop();
}
} else if (action == _buttonActionGimbalLeft) {
if (buttonDown) {
emit gimbalYawStart(-1);
} else {
emit gimbalYawStop();
}
} else if (action == _buttonActionGimbalRight) {
if (buttonDown) {
emit gimbalYawStart(1);
} else {
emit gimbalYawStop();
}
} else if (action == _buttonActionGimbalCenter) {
if (buttonDown) {
Expand Down

0 comments on commit a76296c

Please sign in to comment.