WPI_TalonSRX

class phoenix5.WPI_TalonSRX(deviceNumber: int)

Bases: TalonSRX, WPI_BaseMotorController

CTRE 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.

  1. configSelectedFeedbackSensor(self: phoenix5._ctre.WPI_TalonSRX, feedbackDevice: phoenix5._ctre.FeedbackDevice, pidIdx: int = 0, timeoutMs: int = 0) -> phoenix5._ctre.ErrorCode

  2. configSelectedFeedbackSensor(self: phoenix5._ctre.WPI_TalonSRX, feedbackDevice: phoenix5._ctre.RemoteFeedbackDevice, pidIdx: int = 0, timeoutMs: int = 0) -> phoenix5._ctre.ErrorCode

set(*args, **kwargs)

Overloaded function.

  1. set(self: phoenix5._ctre.WPI_TalonSRX, value: float) -> None

  2. set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.ControlMode, value: float) -> None

  3. set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.ControlMode, demand0: float, demand1Type: phoenix5._ctre.DemandType, demand1: float) -> None

  4. set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.TalonSRXControlMode, value: float) -> None

  5. set(self: phoenix5._ctre.WPI_TalonSRX, mode: phoenix5._ctre.TalonSRXControlMode, demand0: float, demand1Type: phoenix5._ctre.DemandType, demand1: float) -> None

setInverted(*args, **kwargs)

Overloaded function.

  1. setInverted(self: phoenix5._ctre.WPI_TalonSRX, invertType: phoenix5._ctre.InvertType) -> None

  2. setInverted(self: phoenix5._ctre.WPI_TalonSRX, bInvert: bool) -> None

setVoltage(output: wpimath.units.volts) None