nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Microwindows, Touch Screen & calibration
From: brad
Date: Fri, 8 Sep 2000 14:10:45 -0400 (EDT)

tpcal produces transformation coefficients for mou_tp.  mou_tp uses the
coefficients to transform raw touch panel data to (x,y) screen data.  This 
has nothing to do with ts_ioctls.

Regards,
Brad

On Thu, 7 Sep 2000, S A McConnell wrote:

> Greg Haerr wrote:
> 
> > There's a working touch panel calibrator for the linux-vr
> > style touch screen driver in the Microwindows source that
> > Brad LaRonde wrote.  It's GPL, so it's in
> > microwin/src/contrib/GPL/tpcal
> 
> Ok I have done that cross compiled it and stuffed it into my RAM Disk.
> 
> When I run tpcal it hands back seven parameters. With the MIPS code
> those values
> were placed into /etc/pointercal. Which mou_tp.c would read and use to
> adjust the
> values being returned from the touch screen device. (calibration occured
> on the application side.)
> 
> I notice that the ts_ioctl supports seven commands. So do those seven
> values represent (raw_max_x, raw_max_y, res_x, res_y, raw_min_x,
> raw_min_y, xyswp)?
> 
> Not knowing what they are I do not know what to do with them. Nor can I
> tell if the values I am getting are reasonable.
> tpcal results: (-273605, -633, 174383829, -700, 278166, -4003337, 65536)
> 
> 
> Should I send them to ts_ioctl cmd's 3-12?
> 
> Thanks,
> Scott
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: nanogui-unsubscribe@linuxhacker.org
> For additional commands, e-mail: nanogui-help@linuxhacker.org
> 
> 


nanogui@linuxhacker.org