Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   speed controller max speed (http://www.chiefdelphi.com/forums/showthread.php?t=34510)

AIBob 13-02-2005 14:05

Re: speed controller max speed
 
Quote:

Originally Posted by Team 668
into user_routines.c. where do i put the pwm01 = deadlimit(pwm01)?

you would put "pwm01 = deadlimit(pwm01);" into the code right before you are outputting inside of function User_Driver() in user_routines.c...
Quote:

Originally Posted by Team 668
is there an easier way to do this

Yes...
You could just forget about a function and just do the code like this:
Code:

if (((pwm01-127) && 0x7f <=15) pwm01=127;
and just replace the 01 with whatever pwms you want to put out to....

I forgot about another way you could do it...
Which is just do the same for the joystick... like so:
Code:

if ((((signed int)p1_x-127) && 0x7f <=15) p1_x=127;
if ((((signed int)p1_y-127) && 0x7f <=15) p1_y=127;



All times are GMT -5. The time now is 17:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi