Closed erstec closed 2 years ago
First, thanks for update the code, this is the first pull I have received. The calibration is the function I'm struggled to implement, and your ideal is amazing. Just on question : The center stick postion is caculated from 1/2 min + max, if the stick travel is unever from min to center and center to max , the center stick will drift.
Center is not calculated as it was not required in your implemetation, only min and max values are measured and stored during "calibration".
centerValue
are only used at beginning of calibration process to let for "if's" (>= `calValues._max and <= min) work. As we need some kind of "center" point to start decreasing current measured min and increasing max.
Idea is: User can move sticks as he want, any direction and any combinations, algorythm just have to store min and max of every axis.
I can't test it fully, as I'm still waiting for Arduino board to arrive.
I tested it today, i can not enter cal mode, I'm looking for the root cause.
I have added center stick calibration in the main branch. works well so far
Need to be tested!
Workflow: