Skip to content

Commit

Permalink
Joystick: fix visualization
Browse files Browse the repository at this point in the history
It turns out this signal was not called anywhere.
  • Loading branch information
julianoes authored and DonLakeFlyer committed Dec 2, 2021
1 parent 1b920d0 commit 9eda817
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Joystick/Joystick.cc
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ void Joystick::_handleAxis()
buttonPressedBits |= buttonBit;
}
}
emit axisValues(roll, pitch, yaw, throttle);

uint16_t shortButtons = static_cast<uint16_t>(buttonPressedBits & 0xFFFF);
_activeVehicle->sendJoystickDataThreadSafe(roll, pitch, yaw, throttle, shortButtons);
}
Expand Down

0 comments on commit 9eda817

Please sign in to comment.