allwpilib icon indicating copy to clipboard operation
allwpilib copied to clipboard

Sim Gui default POV keyboard settings not always working.

Open blu28 opened this issue 1 year ago • 0 comments

Describe the bug When I set a controller to use a keyboard simulation, the POV buttons mostly do not work until they have been reset, even to the default value.

To Reproduce Steps to reproduce the behavior:

  1. Add code that uses ".povUp.onTrue" or ".povDown.onTrue" to your robot.
  2. Run in the desktop simulator.
  3. Drag and drop Keyboard 0 to Joystick 0.
  4. Run Robot in teleop mode.
  5. Press 8 or 2 (defaults for keyboard 0 for povUp and povDown).
  6. Nothing happens.
  7. Bring up Keyboard 0 settings.
  8. Click on the "8" next to POV 0, 0 degrees, type 8.
  9. Now the 8 key works, but the 2 key does not.
  10. Click on the "2" next to POV 0, 180 degrees, type 2.
  11. Now both keys work.
  12. End the simulation.
  13. Start the simulation, go to teleop.
  14. Now the 8 key works, but the 2 key does not.
  15. Repeat setting the 2 key to be 2.
  16. Now 2 key works.

Expected behavior All of the default values of the keyboards should work at once.

Desktop (please complete the following information):

  • OS: Windows 10 WPILib Information: Project Version: 2024.1.1-beta-3 VS Code Version: 1.84.0 WPILib Extension Version: 2024.1.1-beta-3 C++ Extension Version: 1.17.5 Java Extension Version: 1.23.0 Java Debug Extension Version: 0.52.0 Java Dependencies Extension Version 0.23.0 Java Version: 17 Java Location: C:\Users\Public\wpilib\2024\jdk Vendor Libraries: REVLib (2024.0.0) WPILib-New-Commands (1.0.0

blu28 avatar Dec 10 '23 18:12 blu28