C++ and Python compiler bugs

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.

  1. 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.

  2. 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:
image

CODE:

Can you trigger each error and then submit feedback in VEXcode with the diagnostic data option checked? This will let me take a look at what VEXcode is doing when you get the errors. Please make sure to reference this post so that I’ll know that it is from you.

You can find information on how to submit feedback at https://kb.vex.com/hc/en-us/articles/360047728111-Using-the-Share-and-Feedback-Buttons-in-VEXcode-IQ#what-is-the-feedback-button-JrR8K

1 Like