View Single Post
  #3   Spotlight this post!  
Unread 12-02-2005, 18:57
whakojacko's Avatar
whakojacko whakojacko is offline
Registered User
FRC #1072 (hrt)
Team Role: College Student
 
Join Date: Feb 2003
Rookie Year: 2003
Location: San Jose, California
Posts: 137
whakojacko is on a distinguished road
Send a message via AIM to whakojacko Send a message via MSN to whakojacko
Re: speed controller max speed

yay for fellow San Jose Team. What you need to do is add a limit to the pwm values that are being sent to the speed controllers.
For instance
(insert x for the pwm number)

if(pwmX >= 200)
{
pwmX=200;
}

or

pwmX= pwmX >=200 ? 200 : pwmX;

We also added a dead band where any value +30 or the middle 127 on the joystick will not make the motors move since the joysticks are so sensitive
__________________
Harker Robotics:1072
http://www.harker-robotics.org