# Wiimote Project

### Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

### Topics - Rorschach

Pages: 1
1
##### General Discussion / Wiimote & TCP/IP
« on: July 20, 2010, 10:48:16 AM »

Hi,

Is it possible with the use of TCP/IP to get wiimote data from one pc to another?
I'm attempting to run an experiment on one computer and to collect the data on another, but since you can't connect the wiimote to two computers (right?) I'm looking for a way to get the data across.

2
##### Say Hi! / Hi(i)
« on: May 07, 2010, 01:38:40 PM »
Might as well introduce myself.

Working on a project for school, trying to get the wiimote to work with my computer so I can run an experiment with it.
Since I hardly know anything about programming the whole thing is giving me a headache, but it's been very educational and fun so far. =D

3
##### Programmers Den / Yaw formula
« on: March 23, 2010, 09:04:54 AM »
Hello!

I've been given a piece of code that is used to calculate yaw. I believe it to be correct (however if it's not I'd love to hear it).
Since I don't know much about programming I'm attempting to bring it back to its original formulas, so I can get it to work using LabVIEW (which has a graphical interface and is much easier to use for me).
This is the original piece of code:

Code: [Select]
`float calc_yaw(struct ir_t* ir) { float x; x = ir->ax - 512; x *= WIIMOTE_FOV_COEFFICIENT / 512.0;                return RAD_TO_DEGREE( atanf(x) );`
Which I think translates to this:

Raw X Values (ax) - 512
=> X * (0.39f)/512)
=> atan(X)

(With f being Pi/4)

And then all you have to do is convert the (radian) number to degrees (=> * 360/2Pi)
Does this look okay?

4
##### General Hardware Talk / Some basic questions about Accelerometers & IR
« on: November 27, 2009, 06:19:45 AM »
Hello,

I'm quite inexperienced when it comes to programming, but I've been using LabVIEW to collect accelerometer and IR data from the wiimote (with the help of the information on this site,  http://decibel.ni.com/content/docs/DOC-1353 ). I've managed to write the data in spreadsheet files, but now I'm figuring out what I got exactly (and what I can do with it).
Am I right in assuming that,

1.
The accelerometers measure the proper acceleration they experience relative to freefall.
Acceleration is quantified in the SI unit m/s2 or popularly in terms of g-force (g).
The accelerometers measure linear accelerations along three fixed axes; they are unable to distinguish between linear motions and rotations, and so they are capable of measuring only pitch and roll angles?

2.
The IR data I get is either raw or .. well not-raw of X and Y. But X and Y of what? I've been searching all over the net but I can't get a definitive answer. Is it the (X,Y) position of the IR LED I'm getting here?
In theory can the IR data help you in obtaining yaw and the position of the wiimote (which the accelerometers can't supply)?