MultipleMotorsHoldPosition

class MultipleMotorsHoldPosition(val motorsAndControllers: Map<DcMotorEx, PIDFController>, val subsystems: Set<Subsystem>) : Command

Deprecated

Removed in favor of controllables

Replace with

RunToPosition

This command holds a multiple motor's positions until another command is scheduled that uses the same subsystem.

Parameters

motorsAndControllers

a map of all motors and their corresponding controllers

subsystems

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

Constructors

Link copied to clipboard
constructor(motorsAndControllers: Map<DcMotorEx, PIDFController>, subsystem: Subsystem)
constructor(motorsAndControllers: Map<DcMotorEx, PIDFController>, subsystems: Set<Subsystem>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val isDone: Boolean = false
Link copied to clipboard
Link copied to clipboard
open override val subsystems: Set<Subsystem>

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