I checked the code and, despite not building due to a missing header file for std::string, it does run and enter auton/driver when instructed by TM. You probably have some thread management issues, read these topics.
We’ve had some feedback recently from teams who have had issues with competition control. I’ve looked at some of the team code and noticed that often problems are being caused by tasks started in either the driver or autonomous section of the program being allowed to run during the other phase of the match. This can occur with programs written in either VEXcode or PROS (and I assume RobotMesh, but I’m not planning to specifically discuss that programming environment in this topic) although the…
I’m going to cover some of the code mistakes we found at worlds 2022 in this topic. Before we get going I want to provide a VEXcode project that can be used to help demonstrate the issues and also provides a C++ class that can be (at least theoretically) included with any VEXcode C++ project to help debug.
The demo project is available here.
It includes a new class inside a header file called comp_debug.h, the class is very simple to add, include comp_debug.h after vex.h in main.cpp.
#inclu…