Storage

class Storage(servo: Servo) : ServoAttachment

Storage is a ServoAttachment that controls a servo used to release artifacts from storage.

Parameters

servo

The servo used for storage control

Constructors

Link copied to clipboard
constructor(servo: Servo)

Properties

Link copied to clipboard
val direction: Servo.Direction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: StateFlow<AttachmentState>

Functions

Link copied to clipboard
fun close(): Action

Prevents artifacts from being released from the storage.

Link copied to clipboard
fun goTo(target: ServoPosition): Action
fun goTo(target: Double): Action
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun release(): Action

Releases artifacts from the storage.

Link copied to clipboard
Link copied to clipboard
open fun stop()
Link copied to clipboard
context(telemetry: Telemetry)
open override fun update()