Package frclib.motor
Class FrcPWMTalonSRX
java.lang.Object
trclib.motor.TrcMotor
frclib.motor.FrcPWMMotorController<edu.wpi.first.wpilibj.motorcontrol.PWMTalonSRX>
frclib.motor.FrcPWMTalonSRX
- All Implemented Interfaces:
TrcMotorController,TrcExclusiveSubsystem,TrcOdometrySensor
public class FrcPWMTalonSRX
extends FrcPWMMotorController<edu.wpi.first.wpilibj.motorcontrol.PWMTalonSRX>
-
Nested Class Summary
Nested classes/interfaces inherited from class trclib.motor.TrcMotor
TrcMotor.ExternalSensors, TrcMotor.FollowerMotor, TrcMotor.PowerCompensationNested classes/interfaces inherited from interface trclib.robotcore.TrcExclusiveSubsystem
TrcExclusiveSubsystem.OwnershipParamsNested classes/interfaces inherited from interface trclib.sensor.TrcOdometrySensor
TrcOdometrySensor.Odometry -
Field Summary
Fields inherited from class frclib.motor.FrcPWMMotorController
motorFields inherited from class trclib.motor.TrcMotor
instanceName, motorGetPositionElapsedTimer, motorSetCurrentElapsedTimer, motorSetPositionElapsedTimer, motorSetPowerElapsedTimer, motorSetVelocityElapsedTimer, tracer -
Constructor Summary
ConstructorsConstructorDescriptionFrcPWMTalonSRX(String instanceName, int pwmChannel) Constructor: Create an instance of the object.FrcPWMTalonSRX(String instanceName, int pwmChannel, TrcMotor.ExternalSensors sensors) Constructor: Create an instance of the object. -
Method Summary
Methods inherited from class frclib.motor.FrcPWMMotorController
disableMotorFwdLimitSwitch, disableMotorRevLimitSwitch, enableMotorFwdLimitSwitch, enableMotorRevLimitSwitch, getBusVoltage, getMotorCurrent, getMotorCurrentPidCoefficients, getMotorPosition, getMotorPositionPidCoefficients, getMotorPower, getMotorVelocity, getMotorVelocityPidCoefficients, isMotorFwdLimitSwitchActive, isMotorFwdLimitSwitchEnabled, isMotorInverted, isMotorPositionSensorInverted, isMotorRevLimitSwitchActive, isMotorRevLimitSwitchEnabled, resetFactoryDefault, resetMotorPosition, setBrakeModeEnabled, setCloseLoopRampRate, setCurrentLimit, setMotorCurrent, setMotorCurrentPidCoefficients, setMotorFwdLimitSwitchInverted, setMotorFwdSoftPositionLimit, setMotorInverted, setMotorPosition, setMotorPositionPidCoefficients, setMotorPositionSensorInverted, setMotorPower, setMotorRevLimitSwitchInverted, setMotorRevSoftPositionLimit, setMotorVelocity, setMotorVelocityPidCoefficients, setOpenLoopRampRate, setStatorCurrentLimitMethods inherited from class trclib.motor.TrcMotor
addFollower, cancel, clearOdometryMotorsList, convertPositionToScaledUnits, convertPositionToSensorUnits, disableLowerLimitSwitch, disableMotionProfile, disableUpperLimitSwitch, enableLowerLimitSwitch, enableMotionProfile, enableUpperLimitSwitch, follow, follow, getCurrent, getCurrentOnTarget, getCurrentPidCoefficients, getCurrentPidController, getEncoderRawPosition, getFollower, getName, getNumOdometryMotors, getOdometry, getPidTarget, getPosition, getPositionOnTarget, getPositionPidCoefficients, getPositionPidController, getPower, getVelocity, getVelocityOnTarget, getVelocityPidCoefficients, getVelocityPidController, isCalibrating, isLowerLimitSwitchActive, isLowerLimitSwitchEnabled, isOdometryEnabled, isPositionSensorInverted, isUpperLimitSwitchActive, isUpperLimitSwitchEnabled, isVoltageCompensationEnabled, presetPositionDown, presetPositionUp, presetVelocityDown, presetVelocityUp, printElapsedTime, printPidControlTaskPerformance, resetOdometry, resetPosition, resetPosition, resetPositionOnLowerLimitSwitch, resetPositionOnLowerLimitSwitch, resetPositionOnLowerLimitSwitch, resetPositionOnLowerLimitSwitch, setBeep, setBeep, setCurrent, setCurrent, setCurrent, setCurrent, setCurrentPidParameters, setCurrentPidParameters, setCurrentPidParameters, setCurrentPidPowerComp, setCurrentPidTolerance, setElapsedTimerEnabled, setLimitSwitchesSwapped, setLowerLimitSwitchInverted, setOdometryEnabled, setPerformanceMonitorEnabled, setPidPower, setPidPower, setPidStallDetectionEnabled, setPidStallDetectionEnabled, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPosition, setPositionPidParameters, setPositionPidParameters, setPositionPidParameters, setPositionPidPowerComp, setPositionPidTolerance, setPositionSensorInverted, setPositionSensorScaleAndOffset, setPositionSensorScaleAndOffset, setPower, setPower, setPower, setPower, setPresetPosition, setPresets, setPresetVelocity, setSoftPositionLimits, setSoftwarePidEnabled, setStallProtection, setTraceLevel, setUpperLimitSwitchInverted, setVelocity, setVelocity, setVelocity, setVelocity, setVelocityParameters, setVelocityPidParameters, setVelocityPidParameters, setVelocityPidPowerComp, setVelocityPidTolerance, setVoltageCompensationEnabled, stop, toString, zeroCalibrate, zeroCalibrate, zeroCalibrate, zeroCalibrate, zeroCalibrate, zeroCalibrateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface trclib.robotcore.TrcExclusiveSubsystem
acquireExclusiveAccess, acquireOwnership, cancelExclusiveAccess, getCurrentOwner, hasOwnership, releaseExclusiveAccess, releaseOwnership, validateOwnershipMethods inherited from interface trclib.sensor.TrcOdometrySensor
getOdometries, getOdometry
-
Constructor Details
-
FrcPWMTalonSRX
Constructor: Create an instance of the object.- Parameters:
instanceName- specifies the instance name.pwmChannel- specifies the PWM channel number of the motor.sensors- specifies external sensors, can be null if none.
-
FrcPWMTalonSRX
Constructor: Create an instance of the object.- Parameters:
instanceName- specifies the instance name.pwmChannel- specifies the PWM channel number of the motor.
-