mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Fix usage reporting indices (#2009)
According to NI, 0 is unspecified, and all the indices need to be index + 1, so the first index becomes 1.
This commit is contained in:
committed by
Peter Johnson
parent
f6b844ea30
commit
9dc30797e4
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2016-2019 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -12,7 +12,7 @@
|
||||
using namespace frc;
|
||||
|
||||
XboxController::XboxController(int port) : GenericHID(port) {
|
||||
HAL_Report(HALUsageReporting::kResourceType_XboxController, port);
|
||||
HAL_Report(HALUsageReporting::kResourceType_XboxController, port + 1);
|
||||
}
|
||||
|
||||
double XboxController::GetX(JoystickHand hand) const {
|
||||
|
||||
Reference in New Issue
Block a user