001package com.ctre.phoenix.motorcontrol.can;
002
003import com.ctre.phoenix.motorcontrol.FeedbackDevice;
004
005/**
006 * Util class to help with TalonSRX's PID configs
007 */
008public class BaseTalonPIDSetConfigUtil {
009        private static BaseTalonPIDSetConfiguration _default = new BaseTalonPIDSetConfiguration(FeedbackDevice.QuadEncoder);
010        /* Default feedback sensor is product specific. In order to ensure user always gets what they expect when selecting feedback sensor,
011                (Sum/Diff)(0/1)TermDifferent will always return true */
012        
013        static boolean selectedFeedbackSensorDifferent (BaseTalonPIDSetConfiguration settings) { return true; } //{ return (!(settings.selectedFeedbackSensor == _default.selectedFeedbackSensor)); }
014        static boolean selectedFeedbackCoefficientDifferent (BaseTalonPIDSetConfiguration settings) { return (!(settings.selectedFeedbackCoefficient == _default.selectedFeedbackCoefficient)); }
015}