Bucket

class Bucket(hardwareMap: HardwareMap) : AbstractSubsystem

Bucket thingy on the lift. There is no direct access to the servo position for a reason.

Parameters

Constructors

Link copied to clipboard
fun Bucket(hardwareMap: HardwareMap)

Initializes the servo and sets it to Positions.REST.

Types

Link copied to clipboard
enum Positions : Enum<Bucket.Positions>

Set positions for the bucket.

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

Runs once before the loop starts.

Properties

Link copied to clipboard
var position: Bucket.Positions

The position the bucket is at

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.