its just another way of incremeting the pos variable by 5. so it could be pos+5 or pos=pos+5 etc.. its just written the wrong way for the context its in.

Hes actually going the complete wrong way about moving a servo. you dont need to increment each step individually, you just tell it the definite position to move to and it goes there. If they need moving incrementally then just create a global change which will move servo1 1 increment then servo2 1 increment continuously rather than incrementing each servo individually

Don't change the wires to the motors, your problem is with the software and that would only mask it. What will you do when you actually want your robot go backwards? You'll absolutely need to do that with software, can't run around your robot with a soldering iron switching wires to the motors

backwords would be easy. I just switch the + to a - basicly. But how my set up is I don't know how. Because I can only get 1 wheel to spin at a time. And it will go the 360 degrees and than back. Than the next wheel will do it.

This is precisely why I say you've got a SOFTWARE problem, not a HARDWARE problem. You can't escape not fixing the software problem because next you'll try to do something really innovative like implementing an photovore algorithm or an object avoidance algorithm and that would require your wheels to spin under software control! At times you might want one wheel to stay put while the other rotates forward, at other times you might want both wheels to rotate in the same direction or you might want your wheels to rotate in opposite directions!

Changing the two wires on the motor doesn't fix your software, it just makes it insignificantly easier to write your software. If the help you get from changing the two wires on the motors would be significant you'd see people doing it all the time - but you don't see that!

Unfortunately I can't help you with your software problem because I don't know what you're using. It appears to be Roboduino code but I'm not sure - and I don't "speak" roboduino - but I strongly suggest fixing the software, not the hardware.

this type of thing should move both servo's independantly and at the same time.

whats happening?

first of all we created a loop to loop for 1000 times.then we increment or decrement the servos depending on its direction flag. if the servo position reaches 360 the flag changes and so it knows next time to decrement.

then we tell the servo's to move 1 stage each.

it goes back to the beginning of the loop, sets the new position then moves the servo's to the next stage then back to the top of the loop etc...

This will probably achieve what your code was aiming at while controlling the servo's individually, but it is still the wrong way to use modified servo's (i presume they are modified since you are expecting them to turn 360 degrees)

just remove the "unsigned" part. If you get any other error then change the "byte" to "int" aswell. Also you probably want to move all 4 of these variables to the top of the code where you declared the "pos" variable