Dear Marty:
You have to check the following file from tslib.
plugins\linear.c, linear_read(), it uses the content of
pointcal
70356 0 1468924 0 70547 -483124 65536
a[0] for 70356
a[1] for 0
a[2] for 1468924
a[3] for 0
a[4] for 70547
a[5] for -483124
a[6] for 65536
a[6] is for scale factor.
plugins\dejitter.c, average(), it is a digital filter.
plugins\variance.c, variance_read(), it filter outs sample
noise.
if You spend some time to know the above three function's
purpose, you will find out
what I'm thinking.
According my experience, if you use the calibrate data in
the touch screen module,
the report data must just fit the exactly LCD absolute
position.
in initial phase,
input_set_abs_params(mxc_inputdev, ABS_X, LCD_X_MIN,
LCD_X_MAX, 0, 0);
input_set_abs_params(mxc_inputdev, ABS_Y, LCD_Y_MIN,
LCD_Y_MAX, 0, 0);
in event report phase,
input_report_abs(mxc_inputdev, ABS_X, ABS_X);
input_report_abs(mxc_inputdev, ABS_Y, ABS_Y);
which ABS_X and ABS_Y is the calibrated value of the sample
position.
Forgot the tslib's setting. Android seems don't use the
tslib as the input event interface.
That's why I pass the result into mxc_ts.c and report the
calibrated data to Android.
Hope those information can help you. :)
Best Regards,
Akio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Android Internals" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-internals?hl=en
-~----------~----~----~----~------~----~------~--~---