Capper

class Capper(hardwareMap: HardwareMap) : AbstractSubsystem

Subsystem to manage the capper mechanism.

Parameters

Constructors

Link copied to clipboard
fun Capper(hardwareMap: HardwareMap)

Initialize the servos in the capper mechanism, set the direction, and set the position to Positions.REST.

Types

Link copied to clipboard
data class CapperServoBounds(cap: Double, collect: Double, rest: Double)
Link copied to clipboard
object Companion
Link copied to clipboard
enum Positions : Enum<Capper.Positions>

Possible positions for the capper mechanism.

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
fun nextPosition()

Move the capper mechanism to the next position.

Link copied to clipboard
open fun preLoop()

Runs once before the loop starts.

Link copied to clipboard
fun prevPosition()

Move the capper mechanism to the previous position.

Properties

Link copied to clipboard
var position: Capper.Positions

Position of the capper mechanism.

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.