Barcode

class Barcode(hardwareMap: HardwareMap) : AbstractSubsystem

Subsystem to manage the camera / barcode reading.

See also

org.firstinspires.ftc.teamcode.robot.subsystems.barcode

Parameters

Constructors

Link copied to clipboard
fun Barcode(hardwareMap: HardwareMap)

Initializes the camera with an EOCV pipeline for barcode reading.

Types

Link copied to clipboard
enum BarcodePosition : Enum<Barcode.BarcodePosition>

Represents the position of the TSE on the barcode.

Functions

Link copied to clipboard
open fun cleanup()

Runs once at the end.

Link copied to clipboard
open fun loop()

Runs on each loop.

Link copied to clipboard
open override fun preLoop()

Runs once before the loop starts.

Properties

Link copied to clipboard
val analysis: List<Int>

Raw analysis of the two read barcode positions.

Link copied to clipboard
var isStreaming: Boolean? = null

Whether the camera is streaming to the pipeline.

Link copied to clipboard
val position: Barcode.BarcodePosition

Detected position of the TSE on the barcode.

Link copied to clipboard
open override val subsystems: SubsystemMap

Storage for added subsystems.

Link copied to clipboard
open override val tag: String

Tag for logging purposes.