Lift

class Lift(hardwareMap: HardwareMap, bucket: Bucket, intake: Intake) : AbstractSubsystem

Subsystem to manage the lift mechanism.

Parameters

Constructors

Link copied to clipboard
fun Lift(hardwareMap: HardwareMap, bucket: Bucket, intake: Intake)

Initialize the motor, set the direction, mode, etc.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class LiftBounds(min: Double, max: Double)
Link copied to clipboard
data class LiftSetPoints(low: Double, mid: Double, high: Double)
Link copied to clipboard
enum Points : Enum<Lift.Points>

Represents the possible positions of the lift.

Functions

Link copied to clipboard
open fun cleanup()

Runs once at the end.

Link copied to clipboard
open override 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 height: Double

The height of the lift in inches.

Link copied to clipboard
var isDown: Boolean = true

Whether the lift is at the bottom and not making corrections.

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.

Link copied to clipboard
var target: Lift.Points? = null

The target position of the lift.