View Single Post
  #13   Spotlight this post!  
Unread 13-02-2005, 13:38
Team 668 Team 668 is offline
Registered User
#0668 (The Apes of Wrath)
 
Join Date: Jul 2004
Location: San Jose, CA
Posts: 14
Team 668 is an unknown quantity at this point
Re: speed controller max speed

Quote:
Originally Posted by AIBob
no you do not need to use a define....
you should just call it as a function like so:
Code:
pwm01 = deadlimit(pwm01);
or something like that...

The pwmin is defined by the function...
be sure that you define:
"unsigned int DeadLimit(unsigned int pwmin);"
inside of an h file that you have included in it.
so i should add unsigned int deadlimit ..... into and h file and then the

"{
if (((pwm-127) && 0x7f >15) return pwmin
else return 127;
}"

into user_routines.c. where do i put the pwm01 = deadlimit(pwm01)?