How to code (extremely general)

hi guys i know ive asked a question similar to this before but i’m literally questioning everything now; it seems right now as though programming would be pretty simple: you just turn motors and give power to solenoids and stuff but i KNOW its not that simple… so can someone tell me what the structure of robot code looks like? like different files used to code different parts of the robot, stuff like that. thanks! <3

For iqs? It’s just block coding. There isn’t much structure. I’ve been working with block for years and I’ve only ever needed one file.

1 Like

First of all, what programming language if you are using?
Blocks?
C++?
Python.

I recommend if you are new to coding in any textual language to start with the competition template and code your robot using that. (In general, stick to 1 file until you feel familar with the language)

1 Like

im using cpp for the code

for vex iq its really easy, the most difficult part and I can imagine is using sensors, but even then, its just block code. if you’re asking about line code, then try importing the block code to line code, it’ll make it a lot easier to understand.

This is a basic code my team created. It is block.
Robotics code -.pdf (322.7 KB)