All I see Is Errors (Programming Help)

Hello everyone, and this is my first time using this website so I hope I’m doing it okay. This is also my first year programming a FRC robot, and I don’t know a lot so please be patient with me.

Here is my code, and I’m hoping somebody can help me. Some days I’ll open up the code and it’ll work perfectly, but often I’ll get a Differential Drive error, and I have no idea how to fix it. If anyone could help me, I’d be ever thankful. If not, any advice or critique would be great as well.

Thank you.

First of all, welcome!

It’s usually best to ask direct questions when asking for help. Provide as much (relevant) information as possible, and you’ll make everyone else’s lives much easier. You’re off to a great start by providing a link to your code, but a description of the issue you’re having would be even better. Ideally, it would include a stacktrace as well.

Any other information you could provide will be helpful. For now, I’m going to hold off on reading through your code until I have a better understanding of what errors or problems you’re seeing.


Is this an error when building or an “error” that shows up in the IDE? If it’s the latter, I wouldn’t worry about it at all - if the code still builds, it’s just IntelliSense screwing up and being inconsistent like usual.

Okay, I lied… I took a look at the code anyway. Here’s a couple initial thoughts.

  1. I see you’re using WPILib 2022.2.1. You’ll want to make sure you update to 2022.3.1 as that version will be required at the event.
  2. I see you’re using PWMSparkMax objects in your DriveTrain subsystem. Are your controllers wired via PWM as well, or do they use CAN? If unsure, you can tell by whether the green/yellow wires jump between controllers, or whether they individually connect back to the RoboRio. If using CAN, you’ll need to add a vendor library (specifically REVLib)
1 Like

Thank you very much, I’m at home right now and can’t work on the robot but I’ll update WPILib, and check the wires. Thank You again !

For the record, I’m not saying whether either of those are related to your issues or not. I can’t make that claim because I don’t know what your specific issues are. When you get hands-on with the robot again, please attempt to document the issues and post here with more detail (assuming updating and using the correct object type doesn’t fix it)


I know it’s been a while, but I fixed it. Thanks for the help! Is it bad if I post another question immediately after this? My team has been stuck on something and we have no idea how to fix it.

Certainly not bad to post another question! Generally, at least on this form, it’s advisable to start a new thread for a new topic, as it helps keep things organized (especially for future readers who come through the search bar, looking by topic title).


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