WPI_TalonSRX
- class phoenix5.WPI_TalonSRX(deviceNumber: SupportsInt | SupportsIndex)
Bases:
TalonSRX,WPI_BaseMotorControllerCTRE Talon SRX Motor Controller when used on CAN Bus.
Constructor for a WPI_TalonSRX
- Parameters:
deviceNumber – Device ID of TalonSRX
- configSelectedFeedbackSensor(*args, **kwargs)
Overloaded function.
configSelectedFeedbackSensor(self: phoenix5._ctre.WPI_TalonSRX, feedbackDevice: phoenix5._ctre.FeedbackDevice, pidIdx: typing.SupportsInt | typing.SupportsIndex = 0, timeoutMs: typing.SupportsInt | typing.SupportsIndex = 0) -> phoenix5._ctre.ErrorCode
configSelectedFeedbackSensor(self: phoenix5._ctre.WPI_TalonSRX, feedbackDevice: phoenix5._ctre.RemoteFeedbackDevice, pidIdx: typing.SupportsInt | typing.SupportsIndex = 0, timeoutMs: typing.SupportsInt | typing.SupportsIndex = 0) -> phoenix5._ctre.ErrorCode
- set(*args, **kwargs)
Overloaded function.
set(self: phoenix5._ctre.WPI_TalonSRX, value: typing.SupportsFloat | typing.SupportsIndex) -> None
set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.ControlMode, value: typing.SupportsFloat | typing.SupportsIndex) -> None
set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.ControlMode, demand0: typing.SupportsFloat | typing.SupportsIndex, demand1Type: phoenix5._ctre.DemandType, demand1: typing.SupportsFloat | typing.SupportsIndex) -> None
set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.TalonSRXControlMode, value: typing.SupportsFloat | typing.SupportsIndex) -> None
set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.TalonSRXControlMode, demand0: typing.SupportsFloat | typing.SupportsIndex, demand1Type: phoenix5._ctre.DemandType, demand1: typing.SupportsFloat | typing.SupportsIndex) -> None
- setInverted(*args, **kwargs)
Overloaded function.
setInverted(self: phoenix5._ctre.WPI_TalonSRX, invertType: phoenix5._ctre.InvertType) -> None
setInverted(self: phoenix5._ctre.WPI_TalonSRX, bInvert: bool) -> None
- setVoltage(output: wpimath.units.volts) None