Package org.hyperonline.hyperlib.vision
Class BasicVisionConnector
- java.lang.Object
-
- org.hyperonline.hyperlib.vision.AbstractVisionConnector<VisionResult>
-
- org.hyperonline.hyperlib.vision.BasicVisionConnector
-
- All Implemented Interfaces:
VisionConnector
public class BasicVisionConnector extends AbstractVisionConnector<VisionResult>
NetworkTables Connector for a AbstractTargetProcessor of VisionResult
-
-
Field Summary
-
Fields inherited from class org.hyperonline.hyperlib.vision.AbstractVisionConnector
m_foundTarget, m_lastResult, m_lastResultTimestamp, m_table, m_xAbs, m_xError, m_yAbs, m_yError
-
-
Constructor Summary
Constructors Constructor Description BasicVisionConnector(java.lang.String subTableName, edu.wpi.first.networktables.NetworkTableInstance inst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VisionResult
getDefaultValue()
protected void
next(edu.wpi.first.networktables.NetworkTable table, java.lang.String key, edu.wpi.first.networktables.NetworkTableEntry entry, edu.wpi.first.networktables.NetworkTableValue value, int flags)
evaluate and process the results in NetworkTables to my lastResult-
Methods inherited from class org.hyperonline.hyperlib.vision.AbstractVisionConnector
getLastResult, publish, retrieve, subscribe, unsubscribe, updateResult, xPID, yPID
-
-
-
-
Method Detail
-
next
protected void next(edu.wpi.first.networktables.NetworkTable table, java.lang.String key, edu.wpi.first.networktables.NetworkTableEntry entry, edu.wpi.first.networktables.NetworkTableValue value, int flags)
evaluate and process the results in NetworkTables to my lastResult- Specified by:
next
in classAbstractVisionConnector<VisionResult>
- Parameters:
table
- NetworkTable to get values fromkey
- Key of the entry that triggered the Listenerentry
- Entry that was updatedvalue
- the new Valueflags
- Listener flags (created, updated, removed, etc)
-
getDefaultValue
public VisionResult getDefaultValue()
- Specified by:
getDefaultValue
in classAbstractVisionConnector<VisionResult>
- Returns:
- {T}
-
-