TeamCode / org.firstinspires.ftc.teamcode.movement / ElevatorIntake

ElevatorIntake

class ElevatorIntake : LinearMotion, Intake

Intake comprised of an elevator that extends and retracts a rotatable bin and roller.

Types

Companion

companion object Companion : Factory<ElevatorIntake>

Constructors

<init>

ElevatorIntake(extenderMotor: DcMotor, extenderRange: IntRange? = null, extenderPowerMultiplier: Double = 1.0, binMotor: DcMotor, rollerMotor: DcMotor)

Intake comprised of an elevator that extends and retracts a rotatable bin and roller.

Properties

binMotor

val binMotor: DcMotor

The bin motor, used for tilting the bin.

rollerMotor

val rollerMotor: DcMotor

The roller motor.

Inherited Properties

currentPosition

val currentPosition: Int

The current position of the linear motion system.

motor

val motor: DcMotor

The motor controlled by the linear motion system.

powerMultiplier

val powerMultiplier: Double

Constant to multiply powers by.

range

val range: IntRange?

The range of movement that this system supports.

Functions

moveBin

fun moveBin(power: Double): Unit

Moves the bin motor at a given power.

moveRoller

fun moveRoller(power: Double): Unit

Moves the roller motor at a given power.

stopAll

fun stopAll(): Unit

Stops all moving parts.

stopBin

fun stopBin(): Unit

Stops the bin motor.

stopRoller

fun stopRoller(): Unit

Stops the roller motor.

Inherited Functions

canMove

fun canMove(power: Double? = null, at: Int? = null): Boolean

Checks whether the linear motion system is allowed to move at a given power.

move

fun move(power: Double): Unit

Moves the linear motion system at a given power.

moveIfAble

fun moveIfAble(power: Double): Boolean

Moves the linear motion system at a given power if it is allowed to; stops it if it is not.

moveRaw

fun moveRaw(power: Double): Unit

Move the linear motion system at a power, bypassing powerMultiplier.

stop

fun stop(): Unit

Stops the linear motion system.

Companion Object Functions

standard

fun standard(hardwareMap: HardwareMap): ElevatorIntake