ManualIntakeCommand

class ManualIntakeCommand(intakeControl: DoubleSupplier, transferControl: DoubleSupplier) : Command

A command that allows manual control of the intake and transfer motors.

Parameters

intakeControl

a supplier that returns the desired speed of the intake motor

transferControl

a supplier that returns the desired speed of the transfer motor

Constructors

Link copied to clipboard
constructor(intakeControl: DoubleSupplier, transferControl: DoubleSupplier)

Functions

Link copied to clipboard
open override fun execute()

Set the speed of the intake and transfer motors to the desired speed Runs every 20ms

Link copied to clipboard
open override fun isFinished(): Boolean

This command is never finished on its own. It will be finished when the command is interrupted or canceled.