Quote:
|
Originally Posted by RIgnazio
Thank you both for your help. What I did not understand is where these commands were being called from. I have one last question: With gyro.c/h and commands.c/h, how does it know which PWMs your motors are on? Yes, your robot could get bumped, but if your drive motors are on PWM3 and PWM4 and it is trying to control PWM1 and PWM2, how would it know?
|
On your OI board, you have the pins indicating which pwm you are plugging your motors into. In the program you specify the pwms you are sending the signal to.