Thread: pbasic question
View Single Post
  #8   Spotlight this post!  
Unread 14-01-2003, 20:52
Phil Roth Phil Roth is offline
Registered User
#0011 (BASF)
 
Join Date: Jan 2003
Location: Mt. Olive New Jersey
Posts: 31
Phil Roth is an unknown quantity at this point
Send a message via AIM to Phil Roth Send a message via Yahoo to Phil Roth
I've seen a few schemes to alter joystick profiles allowing the driver better control at the low end. Routines have simple offsets, dead bands and still maintain a linear relationship to the joystick. I'd like to try a response curve that increases throttle positions exponentially, similar to a charging capacitor. Such a curve would have a lot of motion for low/mid speed maneuverability and limited motion for high speed where normally you would be going straight. Calculating this curve is a few lines of code in 'C' but can't find an easy way with PBASIC other than making a lookup table which wastes a lot of space...Anybody do this before??

ALSO.. Is there a shift operation in PBASIC??..like x = X << 5 or do you have to divide and multiply?

Thanks