![]() |
Desensitizing Joysticks
We are trying to desensitize our joysticks and we know what to add to the code but we don't know where to add it. Whether to add it to User Routines Fast or User Routines. Where do we add it.
|
Re: Desensitizing Joysticks
Whenever you want to do processing on operator input (filtering, desensitizing, delta-coding, etc.), it makes the most sense to do it only when new values are available. I would definitely put it in user_routines.c, in the Process_Data_From_Master_uP() function.
|
Re: Desensitizing Joysticks
Quote:
Code:
unsigned char Dead_Band(unsigned char input_value)Code:
void Default_Routine(void).......... |
Re: Desensitizing Joysticks
I know you said you already solved the coding part, but this thread extensively covers this topic.
Edit: If you want to take a look at the low pass filter I mention, PM me. The version in the papers contains a slight bug. (Well, ok, it's fatal... but only if you push the joystick all the way forward. ;)) |
| All times are GMT -5. The time now is 02:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi