WrappedMotor

class WrappedMotor(motor: MotorController, val encoder: Encoder, val getDutyCycle: DoubleSupplier? = null, val appliedOutput: DoubleSupplier? = null, val busVoltage: DoubleSupplier? = null, val outputCurrent: DoubleSupplier? = null) : MotorController

Our own wrapper grouping the motor controller and encoder for a motor

Constructors

Link copied to clipboard
constructor(motor: MotorController, encoder: Encoder, getDutyCycle: DoubleSupplier? = null, appliedOutput: DoubleSupplier? = null, busVoltage: DoubleSupplier? = null, outputCurrent: DoubleSupplier? = null)

Functions

Link copied to clipboard
open override fun disable()
Link copied to clipboard
open override fun get(): Double
Link copied to clipboard
open override fun getInverted(): Boolean
Link copied to clipboard
open override fun set(output: Double)
Link copied to clipboard
open override fun setInverted(p0: Boolean)
Link copied to clipboard
open override fun setVoltage(volts: Double)
Link copied to clipboard
open override fun stopMotor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The last set voltage for this motor (through setVoltage or set)

Link copied to clipboard
Link copied to clipboard

Position in meters or whatever unit you set

Link copied to clipboard

Velocity in meters per second or whatever unit you set