[wpilib] Update Usage Reporting ResourceType from NI Libraries (#5842)

Disable PS4 controller reporting until added by NI
This commit is contained in:
sciencewhiz
2023-10-27 20:21:46 -07:00
committed by GitHub
parent cdf981abba
commit abe1cec90c
3 changed files with 13 additions and 5 deletions

View File

@@ -4,8 +4,6 @@
package edu.wpi.first.wpilibj;
import edu.wpi.first.hal.FRCNetComm.tResourceType;
import edu.wpi.first.hal.HAL;
import edu.wpi.first.wpilibj.event.BooleanEvent;
import edu.wpi.first.wpilibj.event.EventLoop;
@@ -24,7 +22,9 @@ public class PS4Controller extends GenericHID {
*/
public PS4Controller(int port) {
super(port);
HAL.report(tResourceType.kResourceType_PS4Controller, port + 1);
// re-enable when PS4Controller is added to Usage Reporting
// HAL.report(tResourceType.kResourceType_PS4Controller, port + 1); /
}
/** Represents a digital button on a PS4Controller. */