Could someone give me the falcon 500 equivalents for these imports

import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.DemandType;
import com.ctre.phoenix.motorcontrol.FeedbackDevice;
import com.ctre.phoenix.motorcontrol.LimitSwitchNormal;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.can.TalonSRXConfiguration;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;

As far as I know, all of those imports are correct, and we use them in our code. The one thing that concerns me is your import of WPI_TalonSRX.

Are you instantiating your falcon 500s as WPI_TalonSRXs? Make sure you use TalonFX instead:

import com.ctre.motorcontrol.can.TalonFX;

And initialize your motors like this:

TalonFX myMotor = new TalonFX(10);
import com.ctre.phoenix.motorcontrol.DemandType;
import com.ctre.phoenix.motorcontrol.FeedbackDevice;
import com.ctre.phoenix.motorcontrol.LimitSwitchNormal;
import com.ctre.phoenix.motorcontrol.NeutralMode;
import com.ctre.phoenix.motorcontrol.StatorCurrentLimitConfiguration;
import com.ctre.phoenix.motorcontrol.StatusFrameEnhanced;
import com.ctre.phoenix.motorcontrol.can.TalonFXConfiguration;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonFX;

Control Mode:
import com.ctre.phoenix.motorcontrol.TalonFXControlMode;

Feedback Device:
import com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice;

Talon FX:
import com.ctre.phoenix.motorcontrol.can.WPI_TalonFX;

I’m not sure about the other imports. It probably has the same idea behind the naming. TalonFX + the class name.

thank you! i was able to figure it out.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.