Ejemplo n.º 1
0
 public SensoredGearbox(float unitsPerRevolution, SmartMotorController talon, SmartMotorController.FeedbackDevice feedbackDevice)
 {
     _talon = talon;
     _unitsPerRevolution     = unitsPerRevolution;
     _rotationsPerSensorUnit = 1f / _unitsPerRevolution;
     _talon.SetFeedbackDevice(feedbackDevice);
 }
Ejemplo n.º 2
0
        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);
        }