Skip to content
Commit 55c14e6f authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Anas Nashif
Browse files

input: analog_axis: rework deadzone calibration code



Rework the data scaling algorithm for the "deadzone" mode so that the
deadzone is subtracted from the input rather than from the output. This
makes the whole output range usable rather than making the output jump
from the center value to the minimum deadzone range.

This changes the calibration data structure as well so now all values
refer to the input data, which is more coherent.

Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
parent 1b2bb0db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment