Question on "Single Program File" Rule
Posted: September 10th, 2023, 12:35 pm
I have a question on how the rules under section 6.c. of the Robot Tour rules will get interpreted. It say basically that we are allowed to impound and edit only 1 program file for the robots code. However, there are some scenarios I was hoping to get some clarity on:
- What if for code organization and "design best practices" reasons I have broken my code up into multiple files? For example, if I use C++ to program the robot, I would have a separate header and code file for each class definition, and if I have multiple classes I would have multiple header and code files (this is just how you code in C++). Is the expectation that I must not use this coding paradigm? Another example is if I use an IDE to develop my code, there is likely going to be a project file the the IDE uses to manage the project contents in addition to the code. Can this rule instead be interpret as "1 program file directory", that is my USB drive contains a single directory that contains all the code, IDE project files, etc, that will program the robot?
- If I am using an Arduino to control the robot, it is likely that I am going to be using some libraries to control various components on the robot. These libraries are typically downloaded but the Arduino or PlatformIO IDEs, and technically are code files. that will be compiled and loaded onto the robot when the robot's code is built. How do these library code files factor in the rules outlined in section 6.c.? Technically these library files are "other files" and would be opened by the compiler when the robot's code is built.