Hi all
I've just recieved my Joywarrior kit ! Great hardware !
I've downloaded the sample programs, it works fine.
Here is the situation :
I'd like to have the sensor output its axes values at (precisely) 100Hz or if possible 125 Hz. If I understand well the examples, the closest example to it is the "Analyser" ; communicating with the sensor through HID. I'm quite familiar with Python programming ; quite less familiar to C++ programming.
The idea is : I'd like to output the axis values and stream them to a real-time analysis program that needs fixed sample rates.
Questions :
1° What environment do I need to edit/modify/compile|build the "Analyser" again ?
2° Has anyone already tried this kind of task ?
Best regards from Brussels
Thomas
JoyWarrior JW24F8-QCK : HID - C++ or Python
Moderator: Guido Körber
-
- Site Admin
- Posts: 2856
- Joined: Tue Nov 25, 2003 10:25 pm
- Location: Germany/Berlin
- Contact:
Re: JoyWarrior JW24F8-QCK : HID - C++ or Python
The Analyzer sample was written with MS Visual Studio.
You can not influence the data rate of the sensor, it is fxed at 125Hz.
You can not influence the data rate of the sensor, it is fxed at 125Hz.
Re: JoyWarrior JW24F8-QCK : HID - C++ or Python
125 Hz : Perfect then !
When reading the axis-data as if it was a simple Joystick I get a sample per 0.015 or 0.016 seconds ; this is wierd (~64Hz). Is it because I don't use the HID method?
I'm installing Visual C++ Express, but I wonder if it'll work (MFC imports ?) ?
I'm giving it a try now.. Hopefully I can come back to you soon with a C++ / Python wrapper.
Best regards,
Thomas
When reading the axis-data as if it was a simple Joystick I get a sample per 0.015 or 0.016 seconds ; this is wierd (~64Hz). Is it because I don't use the HID method?
I'm installing Visual C++ Express, but I wonder if it'll work (MFC imports ?) ?
I'm giving it a try now.. Hopefully I can come back to you soon with a C++ / Python wrapper.
Best regards,
Thomas
- Christoph Jung
- Posts: 670
- Joined: Sun Oct 08, 2006 3:43 pm
- Location: Germany / Berlin
- Contact:
Re: JoyWarrior JW24F8-QCK : HID - C++ or Python
The samples are create with MFC-imports. But the code ist simple C