Kleftmotorport can’t be resolved or not in field

We are having this error on the code

its telling you that the constants class doesn’t know what kLeftMotorPort is.
Look in your constants class and make sure that its there and that the constants class is being imported correctly at the top of the file.

most likely
import frc.robot.Constants;

Okay thanks that did fix it another question is how do we define our motors to the sides or dose that do it for you already

My Team uses CAN so we define the CAN ID’s using either Phoenix Tuner (CTRE, Talons, Falcons) or Rev Hardware Client (Rev, Spark Maxes, Neos) if you dont use CAN than the Ports should match where they plug into the PDH/PDP

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