Class JetsonNTIO
java.lang.Object
frc.robot.subsystems.vision.JetsonNTIO
- All Implemented Interfaces:
JetsonIO
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublishFieldMap(String name, String hash, String json) Publishes the robot's AprilTag field map under/SpectrumVision/FieldMap/, for the Jetson to load and to report back the hash of what it loaded.voidAt 1 Hz: the value changes every millisecond, so NetworkTables would send every call, and the Jetson only needs it fresher than 5 s.voidsetExcludedTags(long[] tagIds) Publishes the tags every camera's multi-tag solve should ignore (/photonvision/excludedTags, sections 11b and 12).voidSets Rewind's recording name and whether it records.voidupdateInputs(JetsonInputs inputs) Fillsinputswith the Jetson's latest values.
-
Constructor Details
-
JetsonNTIO
public JetsonNTIO()
-
-
Method Details
-
updateInputs
Description copied from interface:JetsonIOFillsinputswith the Jetson's latest values.- Specified by:
updateInputsin interfaceJetsonIO- Parameters:
inputs- the inputs to overwrite
-
setRewind
Description copied from interface:JetsonIOSets Rewind's recording name and whether it records. The label is published first: the Jetson reads it when a recording starts (issue #10, section 4). -
publishRobotClock
public void publishRobotClock()At 1 Hz: the value changes every millisecond, so NetworkTables would send every call, and the Jetson only needs it fresher than 5 s.- Specified by:
publishRobotClockin interfaceJetsonIO
-
setExcludedTags
public void setExcludedTags(long[] tagIds) Description copied from interface:JetsonIOPublishes the tags every camera's multi-tag solve should ignore (/photonvision/excludedTags, sections 11b and 12).- Specified by:
setExcludedTagsin interfaceJetsonIO- Parameters:
tagIds- tag ids to exclude
-
publishFieldMap
Description copied from interface:JetsonIOPublishes the robot's AprilTag field map under/SpectrumVision/FieldMap/, for the Jetson to load and to report back the hash of what it loaded.- Specified by:
publishFieldMapin interfaceJetsonIO- Parameters:
name- the WPILib field's name, or"custom"hash- the canonical hash (FieldMapHash)json- the layout as WPILib AprilTagFieldLayout JSON
-