LiftPower

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

Subsystem to manage the lift mechanism if the motor encoder breaks.

Parameters

Constructors

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

Initialize the motor and disable the encoder.

Types

Link copied to clipboard
object Companion

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 power: Double

Power of the motor. Scaled to a max of powerCoefficient.

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.