001/* Copyright (C) Cross The Road Electronics 2024 */ 002package com.ctre.phoenix.sensors; 003 004import com.ctre.phoenix.CustomParamConfiguration; 005 006/** 007 * Configurables available to Pigeon2 008 * 009 * @deprecated This device's Phoenix 5 API is deprecated for removal in the 010 * 2025 season. Users should update to Phoenix 6 firmware and migrate to the 011 * Phoenix 6 API. A migration guide is available at 012 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html. 013 * <p> 014 * If the Phoenix 5 API must be used for this device, the device must have 22.X 015 * firmware. This firmware is available in Tuner X after selecting Phoenix 5 in 016 * the firmware year dropdown. 017 */ 018@Deprecated(since = "2024", forRemoval = true) 019public class Pigeon2Configuration extends CustomParamConfiguration { 020 021 public double MountPoseYaw = 0; 022 public double MountPosePitch = 0; 023 public double MountPoseRoll = 0; 024 public boolean EnableCompass = false; 025 public boolean DisableTemperatureCompensation = false; 026 public boolean DisableNoMotionCalibration = false; 027 public double XAxisGyroError = 0; 028 public double YAxisGyroError = 0; 029 public double ZAxisGyroError = 0; 030 031 public Pigeon2Configuration() {} 032 033 /** 034 * @return String representation of configs 035 */ 036 public String toString() { 037 return toString(""); 038 } 039 040 /** 041 * @param prependString 042 * String to prepend to configs 043 * @return String representation of configs 044 */ 045 public String toString(String prependString) { 046 String retstr = super.toString(prependString); 047 048 return retstr; 049 } 050 051}