public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ipaq touchscreen
@ 2002-03-18  5:39 Tom Coremans
  2002-03-18  5:57 ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Coremans @ 2002-03-18  5:39 UTC (permalink / raw)
  To: eCos users

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) ?

Thanks,

Tom


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] ipaq touchscreen
  2002-03-18  5:39 [ECOS] ipaq touchscreen Tom Coremans
@ 2002-03-18  5:57 ` Gary Thomas
  2002-03-18  6:06   ` Tom Coremans
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2002-03-18  5:57 UTC (permalink / raw)
  To: Tom Coremans; +Cc: eCos users

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.


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] ipaq touchscreen
  2002-03-18  5:57 ` Gary Thomas
@ 2002-03-18  6:06   ` Tom Coremans
  2002-03-18  6:54     ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Coremans @ 2002-03-18  6:06 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos users

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?

Thanks,

Tom


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] ipaq touchscreen
  2002-03-18  6:06   ` Tom Coremans
@ 2002-03-18  6:54     ` Gary Thomas
  2002-04-03 19:01       ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2002-03-18  6:54 UTC (permalink / raw)
  To: Tom Coremans; +Cc: eCos users

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ECOS] ipaq touchscreen
  2002-03-18  6:54     ` Gary Thomas
@ 2002-04-03 19:01       ` Jonathan Larmour
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Larmour @ 2002-04-03 19:01 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Tom Coremans, eCos users

Gary Thomas wrote:
> 
> 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.

Was this the beastie that had the "wrapped" LCD screen where some of the
lines were at the wrong end of the screen or something like that?

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-04-04  3:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18  5:39 [ECOS] ipaq touchscreen Tom Coremans
2002-03-18  5:57 ` Gary Thomas
2002-03-18  6:06   ` Tom Coremans
2002-03-18  6:54     ` Gary Thomas
2002-04-03 19:01       ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).