Reading data from Xbox controller - Linux

This is the place for queries that don't fit in any of the other categories.

Reading data from Xbox controller - Linux

Postby majestateninja » Sat Apr 20, 2013 10:46 am

Hi all,

I'm actually a virgin to both Linux and Python (and to programming in general - aside from some very very OLD Basic programming and some batch scripting I have no programming experience).

I want to be able to do the following:

- Connect an XBOX 360 controller to a Raspberry PI. AFAIK, there is a user-space Linux driver for the XBOX 360 Controller: xboxdrv.

- Get axis/button values at a predifined sampling rate (tens of Hz).

- Apply a specific smoothing function (ie: Kalman filter) to certain value groups.

- Encoding smoothed data as PPM and sending it to GPIO pins of Raspberry PI (I have no idea how the GPIO controller registers in Linux).

First question: How exactly do I ask the driver to output sensor data into some defined variables?

You do not need to be very specific (although it would be much appreciated) - just point me to whatever you know will help me learn the steps in order to be able to solve said problem. Thanks.
majestateninja
 
Posts: 2
Joined: Sat Apr 20, 2013 10:23 am

Re: Reading data from Xbox controller - Linux

Postby Guitarman2010 » Sun Apr 21, 2013 12:10 am

You would need some knowledge of writing Linux drivers possibly using C
Guitarman2010
 
Posts: 22
Joined: Thu Mar 07, 2013 4:39 pm

Re: Reading data from Xbox controller - Linux

Postby majestateninja » Sun Apr 21, 2013 1:18 am

The driver is already available.
majestateninja
 
Posts: 2
Joined: Sat Apr 20, 2013 10:23 am


Return to General Coding Help

Who is online

Users browsing this forum: Google [Bot], Mekire, Yoriz and 4 guests