def __init__(self, deviceNumber: int): super().__init__(deviceNumber) hal.report(hal.UsageReporting.kResourceType_CTRE_future3, deviceNumber + 1) self.description = "Victor SPX %s" % (deviceNumber, ) MotorSafety.__init__(self) self.setExpiration(0.0) self.setSafetyEnabled(False) SendableBase.__init__(self) self.setName("Victor SPX ", deviceNumber) self.speed = 0.0
def __init__(self, deviceNumber): super().__init__(deviceNumber) hal.report(hal.UsageReporting.kResourceType_CTRE_future2, deviceNumber + 1) self.description = "Talon SRX %s" % (deviceNumber, ) MotorSafety.__init__(self) self.setExpiration(0.0) self.setSafetyEnabled(False) SendableBase.__init__(self) LiveWindow.add(self) self.setName("Talon SRX ", deviceNumber) self.speed = 0.0