This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ipaq touchscreen


On Mon, 2002-03-18 at 06:57, Tom Coremans wrote:
> Gary Thomas wrote:
> 
> > On Mon, 2002-03-18 at 06:29, Tom Coremans wrote:
> > > Hi,
> > >
> > > I am trying to get the touchscreen up and running for the ipaq.
> > >
> > > When I use the function ts_get_event I get strange coordinates: they
> > > range from (63,1023) to (63,51) and from (957,1023) to (957,51).
> > >
> > > Shouldn`t they be somehing like (0,0) and (320,240) ?
> >
> > Did you calibrate it first?  The touch screen driver is self calibrating
> > and you need to touch all four corners at least once before relying on
> > any data to be accurate.
> >
> 
> Thanks for replying but it doesn`t work yet.
> 
> When I start my program and poll the touchscreen with ts_get_event the
> first thing I do is touch the four corners but the result is still the
> same.
> 
> When do I have to do the calibration of the touchscreen? Is there a
> function I have to call?

No - just touch the edges of the screen.

There are some diagnostics/prints that you can turn on in the driver
to see what it's doing.  Other than that, I'm not sure.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]