You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a WallEye object that can pull pose location and timestamp from Network Tables.
40
+
* Creates a WallEye object that can pull pose location and timestamp data from Network Tables.
41
41
*
42
42
*
43
-
* @param tableName a string that specifies the table name of the WallEye instance (Look at web interface)
43
+
* @param tableName a string that specifies the table name of the WallEye instance (is set in the web interface)
44
44
* @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
46
-
* @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)
45
+
* @param gyro a DoubleSupplier that supplies the gyro yaw for the robot (WILL CHANGE)
46
+
* @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)
@@ -74,7 +75,7 @@ public WallEye(String tableName, int numCameras, DoubleSupplier gyro, DigitalInp
74
75
}
75
76
76
77
/**
77
-
* A method that checks the DIO ports for a input and upon input will grab gyro and timestamp
78
+
* A method that checks the DIO ports for an input and upon input will grab gyro and timestamp
78
79
*/
79
80
privatevoidgrabGyro() {
80
81
for (DigitalInputdio: dios)
@@ -104,8 +105,7 @@ public int getNumCameras() {
104
105
105
106
/**
106
107
* Pulls most recent poses from Network Tables.
107
-
* Array is structed as index 0, 1, 2 are position; 3, 4, 5 are rotation; 6 is a timestamp; 7 is n number of tags; 7 + n are tag ids; 7+n+1 is ambiguity
108
-
*
108
+
*
109
109
* @return Returns an array of WallEyeResult, with each nth result being the nth camera as shown on the web interface
110
110
* @see WallEyeResult
111
111
*/
@@ -123,6 +123,7 @@ public WallEyeResult[] getResults() {
123
123
tags[i] = (int) temp[j + 8];
124
124
125
125
//(long)temp[6]
126
+
// Array is structed as index 0, 1, 2 are position; 3, 4, 5 are rotation; 6 is a timestamp; 7 is n number of tags; 7 + n are tag ids; 7+n+1 is ambiguity
0 commit comments