# 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.

### Messages - wiidiscgolf

Pages: 1
1
##### Wiimote accelerometer & motions detecting projects / Re: Accelerometer Calculations
« on: April 18, 2008, 08:22:20 AM »
After much digging and calculating I have come up with a formula for calculating Roll that seems to work fairly decently.  Under the highest end accelerations it seems to lose some accuracy, but that is actually perfect for my game design.

RollX(t) = tan(aX(t)/sqrt(aY(t)^2 + aY(t)^2))

I also adjust mine by assuming that the initial roll is 0.  Roll(t) - Roll(0)

I don't know if this formula is 100% accurate it just seems to hold true during all but the highest accelerations in my testing.

2
##### Wiimote accelerometer & motions detecting projects / Accelerometer Calculations
« on: April 15, 2008, 10:41:59 AM »
Using just the accelerometer data (no IR) is it possible to calculate the angle the Wiimote is being held at while swinging it?  I have found various trig calculations on the net but they all seem to break down when the wiimote is in motion.  I am trying to determine the release angle of a simulated disc throw so that I can plug the angle and force values into my calculations for how far the disc should travel.  Maybe there is a better way to do this (without using IR tracking)?

Pages: 1