On Sat, Sep 07, 2002 at 07:45:20PM -0500, Sean Barnes wrote:
> Did tpcal on the VR3 change? I haven't been keeping up with the VR3
> (there's only so much one can do when 10-13 hours a day are spent at
> school), so if it was swapped for a different version that could have
> broken it.
> 
> Actually, looking at the code I'm not sure that it should work. Micah,
> you did realize that tpcal for the VR3 is considerably different from
> tpcal for the Helio and the other Linux-VR distros, right? It's been a
> while since I looked at both, but tpcal on the VR3 had more calibration
> data and the driver is sent a bit more information as well (in
> particular, pressure data). The math might have been a little different
> too.

Not any more. PicoGUI has a unified touchscreen filtering/calibration model now, and 
vr3ts uses it. So the vr3ts driver is supposed to be passing raw uncalibrated data to 
picogui, then the if_touchscreen input filter handles the calibration and filtering. 
The tpcal app in picogui's CVS communicates with this input filter to perform and save 
the calibration. This app was originally based on the microwindows calibrator, but now 
it is almost a completely new program.

> 
> Is all of the touchscreen code in if_touchscreen.c? If so, compare it to
> one of the first versions of vr3ts.c. 
> 
> Here's the most obvious discrepancy:
> vr3ts:
> 
> items = fscanf(f, "%d %d %d %d %d %d %d %d %d %d", &tc.a, &tc.b, &tc.c,
> &tc.d, &tc.e, &tc.f, &tc.s, &scan_interval, &scan_settle_time,
> &low_z_limit);
> 
> 
> if_touchscreen:
> 
> values=fscanf(fp, "%d %d %d %d %d %d %d %d %d", &tsc->a, &tsc->b,
> &tsc->c, &tsc->d, &tsc->e, &tsc->f, &tsc->s, &calwidth, &calheight);
> 
> I like the idea of a central place for TS logic, but there is still the
> need to deal with device specific logic.
> -Sean

The touchscreen calibration code in picogui now should be able to deal with any 
calibration that can be performed with a linear transformation. This should be fine 
for most touchscreens, as long as they aren't cylindrical or something :)

The extra parameters scan_interval, scan_settle_time, and low_z_limit should probably 
be moved to the pgserver configuration file, since it doesn't look like those things 
would need to be calibrated... if they do need to be calibrated, the if_touchscreen 
and tpcal code can be extended to handle new touchscreen calibration formats.

I don't really know much about the VR3 specifically, just touchscreens in general, and 
not owning a VR3 there's not much I can do to debug the driver. You can look at the 
other drivers to see how the touchscreen is supposed to function, but it's really 
simple- the touchscreen driver just sends one PG_TRIGGER_TOUCHSCREEN event with the 
current status, and the input filters take it from there.

> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Lalo
> Martins
> Sent: Saturday, September 07, 2002 6:21 PM
> To: [EMAIL PROTECTED]
> Cc: James Hollingshead
> Subject: Re: [Pgui-devel] Hmm, vr3ts seems to be broken, at least
> sometimes
> 
> On Thu, Sep 05, 2002 at 05:56:16PM -0300, Lalo Martins wrote:
> > I have a developer-edition vr3, and vr3ts WorksForMe (TM).
> 
> Update: no it doesn't. I flashed the wrong romdisk. Now that I flashed
> the
> right one, it doesn't work for me either. <blushes and hides>
> 
> []s,
>                                                |alo
>                                                +----
> --
>             Those who trade freedom for security
>                lose both and deserve neither.
> --
> http://www.laranja.org/                mailto:[EMAIL PROTECTED]
>          pgp key: http://www.laranja.org/pessoal/pgp
> 
> Eu jogo RPG! (I play RPG)         http://www.eujogorpg.com.br/
> Python Foundry Guide http://www.sf.net/foundry/python-foundry/
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to