Hello
Ive recently been working on a project ot have a iq robot self path find with the support of a camera. During this i have encountered 2 significant compiler bugs restricting my work. All code is made in blocks, and converted to text when i run into errors as desribed below.
-
if i compile the blocks in python (or just use python text). i get syntax errors on the compiler.
I also occasionally get errors because (i think) a function is being called before it is defined even though the “when started” functions are at the very end of the code however i havent been able to repoduce this due to the 1 issue stated. -
if i use the C++ compiler to avoid the above issues, the atan2 function behaves weirdly, where the leading input class a strange variable that isn’t the one i input. If i go to text to fix this it works as desired
ERROR MSG FOR 2:
unix build for platform vexiq2
CXX src/main.cpp
src/main.cpp:678:175: error: use of undeclared identifier ‘nS_5BCe1uITK_5EsCdAl_wqP’
RobotDestin_Y_X[1] = Destinations_Y_X[static_cast(CurrentDestination) - 1][static_cast(1) - 1] - Cordinates_Y_X[static_cast(1) - 1];DesiredHeading = atan2(nS_5BCe1uITK_5EsCdAl_wqP[1 - 1], RobotDestin_Y_X[static_cast(2) - 1]) / M_PI * 180;
^
1 error generated.
make: *** [vex/mkrules.mk:13: build/src/main.o] Error 1
make process closed with exit code : 2
CODE:
ERROR MSG FOR 1:
CODE: