mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01: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
@@ -45,12 +45,12 @@ public abstract class RobotBase implements AutoCloseable {
|
||||
|
||||
@Override
|
||||
public void reportVideoServer(int id) {
|
||||
HAL.report(tResourceType.kResourceType_PCVideoServer, id);
|
||||
HAL.report(tResourceType.kResourceType_PCVideoServer, id + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reportUsbCamera(int id) {
|
||||
HAL.report(tResourceType.kResourceType_UsbCamera, id);
|
||||
HAL.report(tResourceType.kResourceType_UsbCamera, id + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -60,7 +60,7 @@ public abstract class RobotBase implements AutoCloseable {
|
||||
|
||||
@Override
|
||||
public void reportAxisCamera(int id) {
|
||||
HAL.report(tResourceType.kResourceType_AxisCamera, id);
|
||||
HAL.report(tResourceType.kResourceType_AxisCamera, id + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user