001/* Copyright (C) Cross The Road Electronics 2024 */ 002package com.ctre.phoenix.motorcontrol; 003 004/** 005 * Choose the type of motor commutation. This is for products that support selectable commutation strategies. 006 * 007 * @deprecated This device's Phoenix 5 API is deprecated for removal in the 008 * 2025 season. Users should update to Phoenix 6 firmware and migrate to the 009 * Phoenix 6 API. A migration guide is available at 010 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html. 011 * <p> 012 * If the Phoenix 5 API must be used for this device, the device must have 22.X 013 * firmware. This firmware is available in Tuner X after selecting Phoenix 5 in 014 * the firmware year dropdown. 015 */ 016@Deprecated(since = "2024", forRemoval = true) 017public enum MotorCommutation{ 018 /** 019 * Trapezoidal commutation 020 */ 021 Trapezoidal(0); 022 023 /** 024 * Value of MotorCommutation 025 */ 026 public final int value; 027 028 /** 029 * Create MotorCommutation of initValue 030 * @param initValue Value of MotorCommutation 031 */ 032 MotorCommutation(int initValue) 033 { 034 this.value = initValue; 035 } 036}