We are using a joystick and I am a new coder and wondering why when I typed double move = -Robot.RobotContainer.stick.gety(); it comes up with a red line under stick. I look at the error and it says (stick cannot be resolved or is not a field). Thank you in advance for your help.
That error means that the RobotContainer class does not have a variable named stick
. You need to add one at class scope and initialize it appropriately (e.g. Joystick stick = new Joystick(1);
).
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.