We are a second-year team but basically a first because all of the people who did everything graduated last year. I’m our programmer now and have switched from LabView to VS Code (Java). I’m having trouble finding good tutorials since VS Code changed from 2019. I found a few things on GitHub that I think are good but I’m not sure how to use them:
Others are hatchbottraditional and gearsbot (I would post the links to those but I can’t)
Should I use a mixture of them? Is there one I could follow? Sorry, I have minimal coding experience but I am the only one on the team with any.
You definitely want to install WPILib, it’s the library for basically everything FRC. They have extensive documentation on their website on how to code with it.
For starters, VSCode is a text editor, not a programming language; none of the stuff in the examples is specific to VSCode (most of them were developed in IntelliJ, actually ).
The first thing to do is familiarize yourself with Java itself. You have to walk before you can run - if you’re struggling with the language syntax it’s going to be very hard to write working robot code.
Once you have a grasp on the basic syntax of Java and some fundamental OOP concepts (classes, inheritance, interfaces), then you should be able to follow the examples well enough to write your own working code.
You cannot/should not think about the examples as something you “use” for your own code. If you’re copy-pasting code without understanding it, you’re not coding, and it won’t pay off in the long-run.
The first thing to do is familiarize yourself with Java itself. You have to walk before you can run - if you’re struggling with the language syntax it’s going to be very hard to write working robot code.
Yes, for sure. I great way to do this is to go to https://www.codecademy.com/learn/learn-java and do the free Java lessons they have there.
And if you have any further question, feel free to reach out
That site explains how to install the plugins and VSCode, the NI Update Suite to image/configure the roboRIO and Radio, and documentation and examples for programming the robot in Java and C++.
When it comes to using the example projects to learn. What you need to do is understand WHAT you want to do for your team, and use the examples to show you HOW you could implement those kinds of features. It won’t be one-to-one, but the examples cover most of the concepts, from the drivetrain, to PID subsystems, and Trigger commands under various conditions.
EDIT: While the specifics may have changed this year with the Command-Based framework, the video tutorials linked in the compendium may still be useful when it comes to explaining and showing the concepts of Commands and Subsystems, just not the exact code for them.