Joystick with QNX

Hi,

For one of my projects, I need to interface an electrical joystick with
QNX based system. User will use a joystick for control operation. How to use
a joystick with QNX and Photon?

thanks,
Krupa

Hi Krupa,

Check out www.qnxstart.com

There someone has developed a Joystick driver.

http://www.qnxstart.com/links.php?op=viewslink&sid=19

It is a free download.

E.


Krupa <krupah@hotmail.com> wrote:

Hi,

For one of my projects, I need to interface an electrical joystick with
QNX based system. User will use a joystick for control operation. How to use
a joystick with QNX and Photon?

thanks,
Krupa

WHOOPS! Wrong newsgroup. Regarding QNX4, I am not sure, the driver
mentioned below is for QNX6.

E

Hardware Support Account <hw@qnx.com> wrote:

Hi Krupa,

Check out > www.qnxstart.com

There someone has developed a Joystick driver.

http://www.qnxstart.com/links.php?op=viewslink&sid=19

It is a free download.

E.



Krupa <> krupah@hotmail.com> > wrote:
Hi,

For one of my projects, I need to interface an electrical joystick with
QNX based system. User will use a joystick for control operation. How to use
a joystick with QNX and Photon?

thanks,
Krupa

A QNX developer sent me this:

Not handy.
There’s nothing special to do with joysticks in QNX. You handle it the way
you do in every
other case. There’s no interrupts for the js, so you just poll it every few
mS. It’s up to the
developer if they want to make a driver for the js, or if they want to write
the code into their
app. For practical purposes, it’s alot easier to write the code into your
app.
The only hard part, really, is debouncing the thing, and writing in error
correction. Joysticks
like to jitter alot, and their values aren’t always linear - the trick is
discarding the nonsense
values that it sends you. Say you’re going from right to left, you may get:
255,253,242,238,220, 10, 210, 200, 255, 190, 15, 180, 177…

I haven’t played with joystick code myself, but plan to in the future for
games.



Krupa <krupah@hotmail.com> wrote in message news:9qeedv$b18$1@inn.qnx.com

Hi,

For one of my projects, I need to interface an electrical joystick
with
QNX based system. User will use a joystick for control operation. How to
use
a joystick with QNX and Photon?

thanks,
Krupa