NextHuskyLens

class NextHuskyLens(initializer: () -> HuskyLens)

A NextFTC wrapper around the HuskyLens vision sensor that resolves the device lazily from the hardware map, so you never have to fetch it yourself.

Wraps the common read and setup methods directly; anything else on the underlying sensor is reachable through camera.

Author

28shettr

Parameters

initializer

supplies the underlying HuskyLens when first accessed.

Constructors

Link copied to clipboard
constructor(initializer: () -> HuskyLens)
constructor(name: String)

Properties

Link copied to clipboard

The underlying HuskyLens, for anything not wrapped here.

Functions

Link copied to clipboard

Returns all currently seen arrows, capped at 6.

Returns seen arrows with the given id, capped at 6.

Link copied to clipboard

Returns all currently seen blocks, capped at 6.

Returns seen blocks with the given id, capped at 6.

Link copied to clipboard
fun knock(): Boolean

Verifies the device is responding over I2C.

Link copied to clipboard

Selects the recognition algorithm; call once on startup.