![]() |
EDU robot programming
How would I go about changing the default program from single joy stick control to two joy stick control? :confused:
|
Re: EDU robot programming
Quote:
Change the following lines in user_routines.c at the top of Default_Routine to get rid of the mixed result and just use the PWM inputs directly. Original code (get rid of the mixing): pwm01 = pwm03 = Limit_Mix(2000 + PWM_in1 + PWM_in2 - 127); /* LEFT WHEELS */ pwm02 = pwm04 = Limit_Mix(2000 + PWM_in2 - PWM_in1 + 127); /* RIGHT WHEELS */ pwm01 = pwm03 = 255 - pwm01; /* reverse direction of left side */ New code (just : pwm01 = pwm03 = 255 - PWM_in2; /* LEFT WHEELS - reverse direction of left side */ pwm02 = pwm04 = PWM_in4; /* RIGHT WHEELS */ |
| All times are GMT -5. The time now is 00:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi