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