Quote:
|
Originally Posted by Idaman323
Should I comment/delete (not sure what would be better) out the stuff i don't need, like p1_x and p2_x, or does that need to be there for the bot to run?
And Ive only had a little of coding experience but wouldn't making the one motor go backwards be pwm02 = p2_y-255; not pwm02 = 255-p2_y; or did he have it right before?
And one more thing, in Deafault_Routine, there is a section titled, 1 Joystick Drive, and it combines the x, y on one joystick port.. Should i take this out?
|
No.... you should leave them, as long as you do not send them to the pwms
No.... if you put in 0, it would leave you with -255, which is not an unsigned char and will give you an error.
Maybe.... You should comment this section out for later use