I hope this is the correct group. I’m still feeling my way around here.
I have a few questions about JAVA directory structure and the process of compiling and distributing code once compiled. They’ll be separate posts but interrelated. If it seems I’ve missed something obvious in the docs, I’m sorry but there seems to be a lot to grasp for people new to the program.
This one is about update various software, coding, the directory structure of coding and the new command style of programming (OK not completely new but will be new to our group)
Through the spring 2023 competitions, our group has been using code from 3+ years ago as far as I’ve been able to determine. We are going to switch this year to the new way of programming but I’d like to make sure we do it properly and get all things done in the right order.
I know we have to update WPILIB. I bought a Win 10 machine to play with over the summer and have installed WPILib 2023.4.3 Release - March 29, 2023 on it to use with ROMI development. Is this the latest WPIlib? If not, where do I get it? If/when we update, will the installation overwrite the existing one or do we have to uninstall?
I’ll have to check the roboRIO version but I’m pretty sure we should upgrade. If we do upgrade to the latest, can we still use the old code as we start out?
For JAVA, does everyone use Oracle JAVA or are there others out there?
As I’ve been learning about programming for the robots (specifically ROMI) I’ve been creating each project to start at C:\whatever_I’m_learning. I know the directory structure for each project follows certain formats about where each part is located but wonder about having them separately at the C:\ level or putting them together under a common C:\robots directory.
Also is it possible to move a C:\robot1 project to a C:\robot_old directory and still be able to use it for development?
I notice that we import our local stuff as
import frc.robot.commands.ExampleCommand;
This is way down the directory chain from
C:\frc\romi_default\CreatingDefaultCommands\src\main\java\frc\robot\commands
What tells the compiler system to go to that part of the chain? Is this part of the WPILIB Create a new project magic? This may tie into my question about moving a project to a new directory
I realize this is a lot of questions but I thought I’d get them all out at once. Don’t feel like your have to answer every question to help. I’ll take them in bits and pieces.
Thanks for any help you can offer/