明远智睿技术论坛

标题: 触摸屏校准问题 [打印本页]

作者: 541158239    时间: 2017-4-14 15:58
标题: 触摸屏校准问题
移植了tslib 1.4,之前校准好是可以的,不知道为什么后来开机就不行了,现在校准时坐标总是错误,还有移植了qt4.8.5库到开发板,执行过QT程序显示不出来,要关掉后台这个进程/bin/Application才能显示QT窗口,执行tslib的ts_calibrate校准程序也是这样。

校准坐标结果:
xres = 480, yres = 272
Took 2 samples...
Top left : X = 3866 Y =    0
Took 3 samples...
Top right : X = 3868 Y =    0
Took 2 samples...
Bot right : X = 3887 Y =    3
Took 5 samples...
Bot left : X = 3915 Y =    1
Took 11 samples...
Center : X = 3887 Y =    8
14348.647461 -3.639538 13.193886
-14005.128906 3.638601 3.162445
Calibration constants: 940352960 -238520 864674 -917840128 238459 207254 65536

环境变量设置:
export TSLIB_ROOT=/usr/local/tslib
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_FBDEVICE=/dev/fb0
export QWS_MOUSE_PROTO=/dev/input/event0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATHTSLIB_ROOT/lib
作者: 软件01    时间: 2017-4-17 11:09
删掉校准文件重新试试/etc/pointercal
如果不知道怎么搞的话,可以重新烧写一下




欢迎光临 明远智睿技术论坛 (http://bbs.myzr.com.cn/) Powered by Discuz! X3.2