-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c38444
commit e23128d
Showing
2 changed files
with
78 additions
and
74 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
src/main/java/frc/robot/subsystems/vision/PhotonVisionIOInputs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package frc.robot.subsystems.vision; | ||
|
||
import org.littletonrobotics.junction.AutoLog; | ||
|
||
@AutoLog | ||
public class PhotonVisionIOInputs { | ||
protected boolean camConnected = false; | ||
protected double camLatency = 0.0; | ||
protected boolean tagsFound = false; | ||
protected int[] tagIds = new int[] {}; | ||
protected int numTagsFound = 0; | ||
|
||
public boolean isCamConnected() { | ||
return camConnected; | ||
} | ||
|
||
public void setCamConnected(boolean camConnected) { | ||
this.camConnected = camConnected; | ||
} | ||
|
||
public double getCamLatency() { | ||
return camLatency; | ||
} | ||
|
||
public void setCamLatency(double camLatency) { | ||
this.camLatency = camLatency; | ||
} | ||
|
||
public int[] getTagIds() { | ||
return tagIds; | ||
} | ||
|
||
public void setTagIds(int[] tagIds) { | ||
this.tagIds = tagIds; | ||
} | ||
|
||
public int getNumTagsFound() { | ||
return numTagsFound; | ||
} | ||
|
||
public void setNumTagsFound(int numTagsFound) { | ||
this.numTagsFound = numTagsFound; | ||
} | ||
|
||
public boolean isTagsFound() { | ||
return tagsFound; | ||
} | ||
|
||
public void setTagsFound(boolean tagsFound) { | ||
this.tagsFound = tagsFound; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters