View Single Post
  #23   Spotlight this post!  
Unread 02-02-2004, 21:56
MichalSkiba MichalSkiba is offline
Low-Power BiCMOS Brain
#0854 (M.I.R.)
 
Join Date: Apr 2003
Location: TORONTO
Posts: 64
MichalSkiba will become famous soon enough
Re: Desensitizing Joysticks

Exponential Function: simple sin(x) function:

amplitude = 2 * 127 (pwm max)
period = 4 * 127

make sure, as i forgot to in my previous post (above):

pwm = pwm - 127;

That way the origin is the middle of the null zone. makes for nice calculations.
__________________
<<<theoldmanskiba>>>

2003 Canadian Regional Delphi Driving Tomorrow's Technology Award winners