class ElevatorExtake : LinearMotion, Extake
Extake comprised of an elevator that extends and retracts a rotatable bin.
companion object Companion : Factory<ElevatorExtake> |
ElevatorExtake(elevatorMotor: DcMotor, elevatorRange: IntRange? = null, elevatorPowerMultiplier: Double = 1.0, binMotor: Servo)
Extake comprised of an elevator that extends and retracts a rotatable bin. |
val binMotor: Servo
The bin servo, used for tilting the bin. |
|
val binPosition: Double
The current bin position. |
val currentPosition: Int
The current position of the linear motion system. |
|
val motor: DcMotor
The motor controlled by the linear motion system. |
|
val powerMultiplier: Double
Constant to multiply powers by. |
|
val range: IntRange?
The range of movement that this system supports. |
fun moveBin(position: Double): Unit
Moves the bin motor at a given power. |
|
fun stopAll(): Unit
Stops all moving parts. |
|
fun stopBin(): Unit
Stops the bin motor. |
fun canMove(power: Double? = null, at: Int? = null): Boolean
Checks whether the linear motion system is allowed to move at a given power. |
|
fun move(power: Double): Unit
Moves the linear motion system at a given power. |
|
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. |
|
fun moveRaw(power: Double): Unit
Move the linear motion system at a power, bypassing powerMultiplier. |
|
fun stop(): Unit
Stops the linear motion system. |
fun standard(hardwareMap: HardwareMap): ElevatorExtake |