Package org.hyperonline.hyperlib.vision
Class SkewVisionConnector
- java.lang.Object
-
- org.hyperonline.hyperlib.vision.AbstractVisionConnector<SkewVisionResult>
-
- org.hyperonline.hyperlib.vision.SkewVisionConnector
-
- All Implemented Interfaces:
VisionConnector
public class SkewVisionConnector extends AbstractVisionConnector<SkewVisionResult>
NetworkTables Connector for a AbstractTargetProcessor of SkewVisionResult
-
-
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 SkewVisionConnector(java.lang.String subTableName, edu.wpi.first.networktables.NetworkTableInstance inst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SkewVisionResult
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 lastResultvoid
publish()
publish VisionResult values to corresponding NetworkTable Entries should be overriden and supered by any children of type T extends VisionResultprotected SkewVisionResult
retrieve()
retrieve a SkewVisionResult from NetworkTable Entriesedu.wpi.first.wpilibj.PIDSource
skewPID()
-
Methods inherited from class org.hyperonline.hyperlib.vision.AbstractVisionConnector
getLastResult, subscribe, unsubscribe, updateResult, xPID, yPID
-
-
-
-
Method Detail
-
skewPID
public edu.wpi.first.wpilibj.PIDSource skewPID()
- Returns:
- A PID source tracking the skew of the target
-
retrieve
protected SkewVisionResult retrieve()
retrieve a SkewVisionResult from NetworkTable Entries- Overrides:
retrieve
in classAbstractVisionConnector<SkewVisionResult>
- Returns:
- {SkewVisionResult}
-
publish
public void publish()
publish VisionResult values to corresponding NetworkTable Entries should be overriden and supered by any children of type T extends VisionResult- Specified by:
publish
in interfaceVisionConnector
- Overrides:
publish
in classAbstractVisionConnector<SkewVisionResult>
-
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<SkewVisionResult>
- 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 SkewVisionResult getDefaultValue()
- Specified by:
getDefaultValue
in classAbstractVisionConnector<SkewVisionResult>
- Returns:
- {T}
-
-