Programming for the Robot
By Colby Young
The VEX V5 Cortex programming is achievable through different programming environments such as VEX Coding Studio, Robot-C, or PROS V5 through Atom. The programming language our robot runs off of is C++. C is also a common language used for VEX robots. Our robot has four programmed autonomous modes which are selectable through virtual boxes displayed on the screen.
With the ability to display shapes on the cortex interface, I have been able to program a V5 version of Pong. I have worked on programming other games like Breakout, but never finished them due to having more important tasks at hand.
A program that has been a work in progress for a period of time, is a recording program that creates an autonomous based on a driver control. When the recording starts, it logs all motor movement when the driver is driving the robot. The logged values are passed through a program that I also wrote, that converts the values to readable code that the original program can read and execute. After adding in the newly-compiled code, I change a few variables and settings so the autonomous will run. The autonomous based on the driver's movements is very accurate but also slightly inaccurate with extremely long runs. There is work needed to be done to make the program as efficient and accurate as possible, which isn't a major issue.
With the ability to display shapes on the cortex interface, I have been able to program a V5 version of Pong. I have worked on programming other games like Breakout, but never finished them due to having more important tasks at hand.
A program that has been a work in progress for a period of time, is a recording program that creates an autonomous based on a driver control. When the recording starts, it logs all motor movement when the driver is driving the robot. The logged values are passed through a program that I also wrote, that converts the values to readable code that the original program can read and execute. After adding in the newly-compiled code, I change a few variables and settings so the autonomous will run. The autonomous based on the driver's movements is very accurate but also slightly inaccurate with extremely long runs. There is work needed to be done to make the program as efficient and accurate as possible, which isn't a major issue.