|
Re: Calibration/Zeroing of Joystick
Just thought of something else.
What you can do is take out your offset code (and unplug any motor PWM cables!) and map p1_y and p1_x (or whatever) to individual PWM(1-16). Then open up IFI Dashboard and see how far off you are, and just code the number into your initialization at the top of user_routines.c
so you could just have char xoffset= 7 or whatever it is, just make sure in your pwm mixing code you add or subtract accordingly.
Also, if you post code, I or somebody else can look at it and see if there is anything throwing you off. I also recommend programming deadbands so that your joystick doesnt output anything but 127 for the first few values of x and y.
Oh yea, there is also a thing you can do to calibrate your speed controllers to your joystick. I am not sure how to do this, but I know there is a post on it. This may fix your centering problems, and should give you full range on your stick instead of the (most likely) shortened range that it would have otherwise
Good luck
|