Quote:
Originally Posted by Team2002
I placed it under Default_Routine() is that the wrong place?
|
If your goal is to test the ability to use IR commands to control motors, that's probably the right place to put it.
But you need to make sure that the pwm outputs you set don't get set to something else later on. You can do that most easily by putting the IR sensing code near the end of the function, so it gets the last opportunity to force the motors to move as you want.