Rev robotics programming

hello everyone - I have never touched a programming language before, and I’m trying to at least my base running. I have max swerve modules, so I used the code that rev gave. I am given these problems when tried to compile/build the code and I’m not exactly sure what they are:
robot java
robot java 2
robot java 3

To me these seems like

any feedback helps

Hello,
Are you using the Wpilib VS code?
Also, if you’re completely new (or not) I would highly recommend reading the wpilib zero-to-robot guide, it’s very helpful, if you haven’t already

2 Likes

Yes, I’m using WPilib vs Code

Can you show the code that causes these issues, your terminal output (if any), and your libraries/vendordeps?

did you install REV’s java library? REVLib Information - SPARK MAX

3 Likes

Considering the fact that RobotContainer can’t be resolved to a type (being one of the most primitive types), you may wish to reinstall WPILib. Though sharing your code would also help.

RobotContainer is a user-defined class provided automatically by the WPILib project generator. Unlikely that that’s the root cause, in reality OP should instead start from the beginning and learn how to code before undertaking any major projects like swerve.

2 Likes

The issue likely is that Rev lib is not installed, which causes those issues later down compilation. Many times before we’ve gotten this error when forgetting to install the library.

1 Like

That error can also happen when you install the library using online installation, and you go offline (like when you connect wirelessly to the robot without a separate network card) then build and deploy offline.

You can get around this by building as a separate step and then deploying. This works for us anyway.

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