MotorToPosition

class MotorToPosition(val motor: DcMotorEx, val target: Double, val controller: PIDFController, val subsystems: Set<Subsystem>) : Command

Deprecated

Removed in favor of controllables

Replace with

RunToPosition

This implements a PID controller to drive a motor to a specified target position.

Parameters

motor

the motor to control

target

the target position

controller

the controller to implement

subsystems

the list of subsystems this command interacts with (should be whatever subsystem holds this command)

Constructors

Link copied to clipboard
constructor(motor: DcMotorEx, target: Double, controller: PIDFController, subsystem: Subsystem)
constructor(motor: DcMotorEx, target: Double, controller: PIDFController, subsystems: Set<Subsystem>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean
Link copied to clipboard
val motor: DcMotorEx
Link copied to clipboard
open override val subsystems: Set<Subsystem>
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun and(vararg commands: Command): ParallelGroup
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun invoke()
Link copied to clipboard
Link copied to clipboard
fun raceWith(vararg commands: Command): ParallelRaceGroup
Link copied to clipboard
open override fun start()
Link copied to clipboard
open fun stop(interrupted: Boolean)
Link copied to clipboard
fun then(vararg commands: Command): SequentialGroup
Link copied to clipboard
Link copied to clipboard
open override fun update()
Link copied to clipboard