View Single Post
  #3   Spotlight this post!  
Unread 11-02-2006, 14:13
Unholy Unholy is offline
electrical / makeshift programmer
AKA: Daniel
FRC #1402
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2002
Location: Orlando, FL
Posts: 21
Unholy is an unknown quantity at this point
Send a message via AIM to Unholy
Re: issues limiting a joystick input

Quote:
Originally Posted by CronosPrime1
I don't exactly understand your question - please clarify.
ok. I have a motor running on the p3_x port. The pwm input has a range from 0-255, but I can't use that. What I'd like to have would be to have a range of 100-154 (so to say) while I'm using the joystick, so when it's fully deflected to the highest value, the pwm input would be 154 instead of 255, and when I deflect it to the lowest value, the pwm would be 100 instead of 0. I think I was approaching the problem wrong using multipliers.