View Single Post
  #7   Spotlight this post!  
Unread 18-01-2007, 07:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Slow down teh motors!

Quote:
Originally Posted by brennerator View Post
Thats exactly what i was doing:
defualt code here

if (ztrigger pressed)
{
pwm13 = (pwm13-127)/2 + 127
pwm14 = (pwm14-127)/2 +127
and so on...

And this did not work. The robot went wild--if the joystick was shifted even slightly after ztrig was pressed robot would fly outta control.
You're doing absolutely the right thing. However, that's obviously not the code you actually tried (it won't compile properly without semicolons). Post the exact lines of code and we can see if we can find the problem.