Skip to content

Commit 3ca982c

Browse files
committed
removed gyro doublesupplier
1 parent e605895 commit 3ca982c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/WallEye/WallEye.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ public class WallEye {
4242
*
4343
* @param tableName a string that specifies the table name of the WallEye instance (is set in the web interface)
4444
* @param numCameras a number that is equal to the number of cameras connected to the PI
45-
* @param gyro a DoubleSupplier that supplies the gyro yaw for the robot (WILL CHANGE)
4645
* @param dioPorts an array that holds all the IDs for the dio ports that the cameras are connected to *EACH CAMERA MUST HAVE A DIO PORT* (to not use DIO yaw reporting put in an empty array)
4746
*
4847
*/
49-
public WallEye(String tableName, int numCameras, DoubleSupplier gyro, DigitalInput[] dioPorts)
48+
public WallEye(String tableName, int numCameras, DigitalInput[] dioPorts)
5049
{
5150
gyroResults = new DIOGyroResult[numCameras][maxGyroResultSize];
5251
hasTurnedOff = new boolean[numCameras];
5352
if (dioPorts.length > 0)
5453
dioLoop.startPeriodic(periodicLoop);
55-
this.gyro = gyro;
56-
54+
55+
// this.gyro = gyro;
56+
5757
for(int i = 0; i < dioPorts.length; ++i) {
5858
dios.add(dioPorts[i]);
5959
dioHashMap.put(dioPorts[i].getChannel(), i);
@@ -81,7 +81,7 @@ private void grabGyro() {
8181
for (DigitalInput dio: dios)
8282
if (dio.get()) {
8383
if (!hasTurnedOff[dioHashMap.get(dio.getChannel())]) {
84-
gyroResults[dioHashMap.get(dio.getChannel())][currentGyroIndex] = new DIOGyroResult(gyro.getAsDouble(), RobotController.getFPGATime());
84+
gyroResults[dioHashMap.get(dio.getChannel())][currentGyroIndex] = new DIOGyroResult(0.0 /*gyro.getAsDouble()*/, RobotController.getFPGATime());
8585
currentGyroIndex++;
8686
currentGyroIndex %= maxGyroResultSize;
8787
hasTurnedOff[dioHashMap.get(dio.getChannel())] = true;

0 commit comments

Comments
 (0)