Okay, one last try. Perhaps someone can tell me if this piece of code (meant to calculate Yaw from the IR data), 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) ); } is indeed accurate, since I've been over this a lot of times but I can't seem to find any real errors (but the yaw daby Kovacs - Coding
Well I wish I could do it like that, but I couldn't code to save my life so I have to do this with the use of LabVIEW (which makes life a lot easier with the graphical interface and everything). (Feel free to point and laugh at me now if you like.) So anyway, turned out that I was celebrating a little bit too early, so I'm going to go over this piece of code once more. float calcby Kovacs - Coding
Struggling with LabVIEW trying to obtain the 3D position of the Wiimote I came across the following article. Interactive 3D Design Using Nintendo Wii Remote It gave me the following formulas in order to get the z-distance (distance between LEDs and the Wiimote). Z-distance ledDistanceInMM / (2 × tan (angle) × screenHeightInMM) angle (radiansPerPixel × pointDist) / 2 With my limiby Kovacs - Coding
I think it works! =D I had to use the raw X values because the "regular" X values didn't really give me anything (and looking at your code again it does start with "ax - 512" so I suppose this is correct). I found the value of FOV on a couple of (wiimote) sites (Pi/4) and to convert radians to degrees I had to multiply with 180/Pi. This is what it looks like: I've been gettingby Kovacs - Coding
Ah yes, now I see! Now I only have to translate it a bit to make it work with LabVIEW. You see, LabVIEW is much more of a visual language, here's how you get roll and pitch using the accelerometer (XYZ) data: The structure should be similar, so I just have to apply this formula to x (since y is prolly the vertical axe here so I guess you don't need it) I suppose. Hmm, so I diviby Kovacs - Coding
Yeah you're right, I should have described my problem a bit more, but you already helped me out a great deal I think. See I'm a psychology student trying to get the wiimote to work with LabVIEW in order to run an experiment with it, but I hardly have any programming skills. With the help of some examples I figured out how to obtain pitch and roll using (indeed) the accelerometer data.by Kovacs - Coding
Is calculating yaw from the IR data as straightforward as obtaining pitch & roll (i.e. running it through some formulas) from the accelerometer data? I want to take a shot at it, but I can't seem to find any useful data on the topic (been checking wiibrew, wiili.org (or what's left of it) and other sites, but no dice).by Kovacs - Coding
I'm pretty sure it's called something else 'cause I don't get any hits when looking for it. If the name pops in your head sometime I'd be much obliged if you mentioned it here again. Cheersby Kovacs - Coding
QuoteiSubaruThat reminds me program wiigui if I recall correctly, it worked similar way, to debug what Wiimote "is doing" :P You know, that actually sounds quite useful to me. But is it a Linux program by any chance, 'cause that's the only hit I got really when searching for it? Linux CWiid CWiid is a collection of Linux tools written in C for interfacing to the Nintendo Wiimoby Kovacs - Coding
I did some more digging and I'm pretty confident about the following information, but I'd appreciate it if someone truly knowledgeable could confirm it. -IR The raw X and Y values are the IR Led (center) position on the camera's image plane? The non-raw or normalized data I get with LabVIEW is just easier to work with I gather. -Accelerometer The accelerometers measure lby Kovacs - Coding
Hi, I'm quite inexperienced when it comes to programming, but I got it into my head to use the wiimote for my (psychology) thesis so I'm struggling through the subject matter. I'm using LabVIEW to collect data from the wiimote using the interface provided by this site: So now I have accelerometer and IR data, but I'm not quite sure what I got precisely. Am I correby Kovacs - Coding