Forum
Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment   Page 2 of 2      Prev   1   2
Levi2506

Junior Member
Registered:
Posts: 5
Reply with quote  #26 
Hi Jaewon,

Thank you very much for the support with this.

I think that the USB joystick is correctly acquired by ML. Indeed, daqhwinfo(joy) gives back the correct information. 

However, start(joy) and getsample(joy) have still some issues. 

Start(joy) gives back an error (screenshot attached) and kills matlab.

getsample(joy) gives back this other error:

Error using pointingdevice/getsample (line 137)
JoyTask::UpdateInputState:[tongue]oll(), Code 0x8007000c.

Please, let me know if there is something else I could test for you or anything else I could do to help you solve these issues.

Sorry to keep on bothering you with this.

Thanks again!



Attached Images
png Error_startjoy.PNG (11.12 KB, 5 views)

0
Jaewon

Senior Member
Registered:
Posts: 344
Reply with quote  #27 
Hi Levi2506,

I got something close to a USB joystick, an XBOX 360 game pad. Interestingly, the pad works fine with the code I wrote. So the error you had might be specific to your hardware. What is the joystick model that you have?

Jaewon
0
cognoman

Junior Member
Registered:
Posts: 29
Reply with quote  #28 
Is there a way to invert the gain of the USB joystick? Currently, one of the directions - x axis - is correctly mapped but the y axis directions are inverted!
0
Jaewon

Senior Member
Registered:
Posts: 344
Reply with quote  #29 
Choose the Origin-Gain calibration. put 0 to Origin X & Y, 1 to Gain X and -1 to Gain Y.
0
cognoman

Junior Member
Registered:
Posts: 29
Reply with quote  #30 
Here's what I did:
1. Use USB joystick - yes
2. Selected Origin and Gain method
3. Pressed "Calibrate Joy"

While steps 2 and 3 work well for Analog joystick, when I use USb joystick, I get the following warning, "No joystick inputs are defined". 


0
Jaewon

Senior Member
Registered:
Posts: 344
Reply with quote  #31 
Hi cognoman,

I guess you are using NIMH ML 1. Please overwrite mlmenu.m with the attached file and try again. Let me know if it works so that I can update the package. Thank you.

 
Attached Files
zip mlmenu.zip (37.33 KB, 1 views)

0
cognoman

Junior Member
Registered:
Posts: 29
Reply with quote  #32 
Awesome! That worked. Thanks! We are soon going to move to NIMH ML2. 
0
cognoman

Junior Member
Registered:
Posts: 29
Reply with quote  #33 
But there's a new problem with this mlmenu. The eye calibration gains for example are not increasing above 10. It used to go beyond 10 previously.
0
Jaewon

Senior Member
Registered:
Posts: 344
Reply with quote  #34 
No, the gain range has been always from -10 to 10. Do you really need that big gain? If so, you can change it in xycalibrate_gain.m. See Line 74.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation: