Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
What kind of job do you want for making robots?If you end up at an industrial robotics company there are lots of jobs that don't involve software. Designing work stations for an assembly line, designing new end effectors, etc. Learn C.Learn at least some electronics.
The #1 way of getting a robotics job is to make a few really impressive robots on your own free time.
else if (scan_angle < 50)//if target is too far on left { servoLeft();//turn towards target set_led(YELLOW, 1); set_led(GREEN, 0); scan_angle+=1;//scanner turns right while robot turns left } else //centered on target { servoForward();//drive straight set_led(YELLOW, 1); set_led(GREEN, 1); } }
In all the robot coding I've ever dealt with, there are libraries of code (written by others) behind the code you write. The compiler then takes C/C++ etc., and creates the lower level code that gets put on the robot. Generally, this lower level language is 'Assembly,' and Assembly differs between different microcontrollers.The code you quoted is valid C and valid C++. The languages are very similar, and for much of the more basic stuff, identical. It's also a simple example The complexity in coding often comes in the algorithms, and in tying the algorithms together. The example you quote isn't complex enough to merit the term 'algorithm.' Tying code together can be particularly complex. You can have dozens of small, simple functions, but the way they interact together can get very, painfully complex.