I’ve recently transitioned to PROS from RobotC, and I’m attempting to make our robot code with a fully object oriented design. I am currently just developing code and checking if it compiles, but I can’t do any runtime tests for a few weeks until my team starts meeting up again for the ITZ season. Obviously, that’s not the ideal way to test new code, but for now its my only option.
Recently, I stumbled across this [very old] thread https://vexforum.com/t/purdue-robotics-os-pros-now-available/24257/1 where @Jabibi mentioned that PROS may not fully support the new and delete keywords. This does present a problem for my code, which uses new for a pointer object construction. And where there is new, you’ll probably eventually need delete. However, my code does actually compile with new/delete without any issue. Has this been added to PROS in a newer version, or will it still be a problem at runtime? If it will be a problem, how should I deal with this?
The code can be found here if anyone is interested: GitHub - niwhsa9/VEX_2017-2018_Team2496V_CODE: Code for 2496V's VEX Robot. Features object oriented design, autostack driver augmented control to automatically manipulate the DR4B lift and 4 bar arm at the correct time to stack the next cone, and PID feedback controlled driving and turning. See: https://www.youtube.com/watch?v=mB_dlXt1yVk
Also, if anyone who is knowledgeable about PROS/C++ is feeling especially generous, would you please look over the code quickly and let me know if you see any major problems with the basic structure and use of C++ like this on an embedded system.
Thanks! I appreciate any help.