001package com.ctre.phoenix;
002
003import com.ctre.phoenix.motorcontrol.can.VictorSPXConfiguration;
004
005/**
006 * Util class to help custom configs
007 */
008public class CustomParamConfigUtil {
009        private static CustomParamConfiguration _default = new VictorSPXConfiguration();
010        
011        /**
012         * @param settings Settings to compare against
013         * @return Whether CustomParam0 is different
014         */
015        public static boolean customParam0Different (CustomParamConfiguration settings) { return (!(settings.customParam0 == _default.customParam0)) || !settings.enableOptimizations; }
016        /**
017         * @param settings Settings to compare against
018         * @return Whether CustomParam1 is different
019         */
020        public static boolean customParam1Different (CustomParamConfiguration settings) { return (!(settings.customParam1 == _default.customParam1)) || !settings.enableOptimizations; }
021}