View Single Post
  #3   Spotlight this post!  
Unread 02-03-2005, 23:40
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Reversing controls?

Quote:
Originally Posted by Calvin
pwm01 = ((-1 * p2_y) + 255);
pwm02 = ((-1 * p1_y) + 255);
You almost have it, add 254 instead. The controls and victors operate on values from 0 to 254. To test whether this works, try your formula in excel; it can be a great tool for determining if your algorithms are correct.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers