Joystick calibration issue

rama wrote:
> hi all,
>
> is there anyone around using the joystick support from wxPython?
>
> I have it implemented on an app I made, and it used to work nice, but
> now it seems like it is not calibrated anymore.
>
> when trying to run the joystick demo I get:
>
> --------------------------------------------------------------------------
> ixa:/home/rama/dev/demo.new# python Joystick.py
> wx.VERSION_STRING = 2.5.1.6pu
> pid: 11739
> Traceback (most recent call last):
> File "/usr/local/src/wx/wxWidgets/wxPython/wx/_core.py", line 9625, in
> <lambda>
> lambda event: event.callable(*event.args, **event.kw) )
> File "/home/rama/dev/demo.new/Joystick.py", line 971, in Calibrate
> self.buttons.Calibrate()
> File "/home/rama/dev/demo.new/Joystick.py", line 556, in Calibrate
> self.leds[i].state = 0

What is the rest of the traceback?

Hmm, this seems fixed, I just switched back to my previous kernel
version (2.4.22) while I was using 2.4.26, and this was producing the
calibration issue.

Now it works perfectly fine as before, so I guess something changed in
the joystick driver.

I will get back to this later as I don't pretend to keep using this old
kernel version. But I understand this is not a problem related to wxPy,
so I will not bother this list with this matter.

many thanks
cheers
r

···

El mié, 30-06-2004 a las 13:17, Robin Dunn escribió:

> --------------------------------------------------------------------------
>
> I don't remember if this was happening before, while it was working
> fine.
>
> I tried adding:
> --------------------------------------------------------------------------
> print "t = %s" % t
> --------------------------------------------------------------------------
>
> just below
> --------------------------------------------------------------------------
> t = self.stick.GetButtonState()
> --------------------------------------------------------------------------
>
> inside the Update function, and it prints things like:
> --------------------------------------------------------------------------
> t = 535552
> --------------------------------------------------------------------------
>
> and different values around that number when I press the buttons
>
> I tried jscalibrator and it seems calibrated now, but it creates a
> .joystick file with the calibration info on your home dir, and I guess
> wxPython will not read it, so it seems useless.

I think that file will be read by the joystick driver.

--
rama <medialist@xicnet.com>