國產(chǎn)嵌入式操作系統(tǒng)下觸摸屏的實現(xiàn)
Took 3 samples...
本文引用地址:http://m.butianyuan.cn/article/145836.htmBot right : X = 629 Y = 3562
Took 3 samples...
Bot left : X = 3456 Y = 3558
Took 3 samples...
Center : X = 2031 Y = 2036
ts_calibrate: 4368.914062 -1.150175 0.007765
ts_calibrate: -279.180664 0.003222 1.137564
Calibration constants: 286321152 -75377 508 -18296384 211 74551 65536
Linear calibration constants: -75377 508 286321152 211 74551 -18296384 65536
lin->bRawMode: 0
reworks>
reworks>cd /ffx0
reworks>ll
type size modify time name
--- ---- ------- -----
file 62 2013-03-22 09:30 pointercal
----------------
1 files 62 bytes occupied
校準(zhǔn)完成后,可用ts_test測試一下校準(zhǔn)效果,如圖5所示?! ?/p>
4、 總結(jié)
本文以浪潮研制的國產(chǎn)手持式計算機為硬件平臺,將觸摸中間件tslib移植到國產(chǎn)嵌入式操作系統(tǒng)ReWorks下,實現(xiàn)了ReWorks系統(tǒng)下觸摸屏的校準(zhǔn)和測試,并改進了處理采樣數(shù)據(jù)的方法,使觸摸屏的校準(zhǔn)和測試滿足應(yīng)用需求。
linux操作系統(tǒng)文章專題:linux操作系統(tǒng)詳解(linux不再難懂)
評論