wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.05k stars 612 forks source link

Joystick button presses not being logged #5726

Closed blu28 closed 8 months ago

blu28 commented 11 months ago

Describe the bug In the datalog output, button presses are being logged as: 226.332608,DS:joystick1/buttons, rather than as specific button press indications.

To Reproduce Steps to reproduce the behavior:

  1. Start logging.
  2. Press a button.
  3. Convert log with DataLogTool to CSV list format.

Expected behavior The log would show what button was pressed.

Desktop (please complete the following information):

If you want to see the code: https://github.com/ToughTechs151/ChargedUp2023/tree/mil_august

Additional context This may be related to #4467

rzblue commented 10 months ago

I can't reproduce this in either wpilib 2023.4.3 (library and Data Log tool) or 2024.1.1-beta-1 (library and Data Log tool) in simulation with the following code in robotinit:

DataLogManager.start();
DriverStation.startDataLog(DataLogManager.getLog(), true);

I also can't reproduce it with your code running in simulation (wpilib 2023.4.2, Data Log tool 2023.4.3)

Just to confirm, the issue occurs when using a 2023 season version of Data Log Tool? Could you upload a copy of a log file that has this behavior? (replace wpilog extension with log to bypass the file type restriction) This could help isolate whether it's a logging issue or an export issue

Starlight220 commented 8 months ago

OP hasn't responded, closing as can't repro.