Class TargetWithHeightConnector

    • Constructor Detail

      • TargetWithHeightConnector

        public TargetWithHeightConnector​(java.lang.String subTableName,
                                         edu.wpi.first.networktables.NetworkTableInstance inst)
        Parameters:
        subTableName - name of the subtable to use in the connector
        inst - instance of NetworkTables
    • Method Detail

      • heightPID

        public edu.wpi.first.wpilibj.PIDSource heightPID()
        Get a PID source that returns the height of the target.
        Returns:
        A PID source returning the height of the target.
      • 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 class AbstractVisionConnector<TargetWithHeightResult>
        Parameters:
        table - NetworkTable to get values from
        key - Key of the entry that triggered the Listener
        entry - Entry that was updated
        value - the new Value
        flags - Listener flags (created, updated, removed, etc)