JoyWarrior JW24F8-QCK : HID - C++ or Python

This is the English forum for all topics related to JoyWarrior. Please post in English only

Moderator: Guido Körber

Post Reply
ThomasLCQ
Posts: 5
Joined: Tue Apr 21, 2009 3:35 pm

JoyWarrior JW24F8-QCK : HID - C++ or Python

Post by ThomasLCQ »

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
Guido Körber
Site Admin
Posts: 2766
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Re: JoyWarrior JW24F8-QCK : HID - C++ or Python

Post by Guido Körber »

The Analyzer sample was written with MS Visual Studio.

You can not influence the data rate of the sensor, it is fxed at 125Hz.
ThomasLCQ
Posts: 5
Joined: Tue Apr 21, 2009 3:35 pm

Re: JoyWarrior JW24F8-QCK : HID - C++ or Python

Post by ThomasLCQ »

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
User avatar
Christoph Jung
Posts: 632
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: JoyWarrior JW24F8-QCK : HID - C++ or Python

Post by Christoph Jung »

The samples are create with MFC-imports. But the code ist simple C
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
Post Reply