|
Re: Calibration/Zeroing of Joystick
If you button is NOT coded, that isnt too bad. Just dont touch the joystick and let it center itself and push the button. Code would be something like:
if (switchname)
{
consty=p1_y-127;
constx=p1_x-127;
}
and then modify the drive code so it takes
pwmxx= LimitMix((p1_y-consty)+(p1_x-constx)-127);
Good Luck
|