View Single Post
  #3   Spotlight this post!  
Unread 26-01-2008, 22:11
Vasily Zaitsev's Avatar
Vasily Zaitsev Vasily Zaitsev is offline
Registered User
FRC #1111 (Power Hawks)
Team Role: Electrical
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Maryland
Posts: 3
Vasily Zaitsev is an unknown quantity at this point
Send a message via AIM to Vasily Zaitsev
Re: 2008 Omni Drive Code Help

yea that was our first idea too.
we made everything signed ints in order to avoid this issue. but somehow when we tried to limit mix them into the 0-254 range, the limit mix failed or something.
but no matter what happened it still didnt work.
could it be that we never casted them back into unsigned chars before assigning them to the pwm? because when i tried that we got pure 254 for all four outputs.

thanks for the help by the way. much appreciated.