public SensoredGearbox(float unitsPerRevolution, SmartMotorController talon, SmartMotorController.FeedbackDevice feedbackDevice) { _talon = talon; _unitsPerRevolution = unitsPerRevolution; _rotationsPerSensorUnit = 1f / _unitsPerRevolution; _talon.SetFeedbackDevice(feedbackDevice); }
public SensoredGearbox(float unitsPerRevolution, SmartMotorController talon, MotorControllers.IFollower slaveTalon1, MotorControllers.IFollower slaveTalon2, SmartMotorController.FeedbackDevice feedbackDevice) { _talon = talon; _unitsPerRevolution = unitsPerRevolution; _rotationsPerSensorUnit = 1f / _unitsPerRevolution; _talon.SetFeedbackDevice(feedbackDevice); slaveTalon1.Follow(talon); slaveTalon2.Follow(talon); }