zelmon64 wrote:

**Code:**

def acc_update():

diagnostics.watch(wiimote[0].acceleration.x)

diagnostics.watch(wiimote[0].acceleration.y)

diagnostics.watch(wiimote[0].acceleration.z)

accx = wiimote[0].acceleration.x

accy = wiimote[0].acceleration.y

if accx == 0:

angle = 0

else:

angle = math.atan(accy/accx)

diagnostics.watch(angle)

if starting:

wiimote[0].acceleration.update += acc_update

so I tried this on my wiimote, and this y/x seems to be (or at least emulate) the pitch. I've tried replacing y and x with all combinations of x, y, and z, but for some reason, can't consistently get roll or yaw. If y/x = pitch, then what's roll and yaw? I'm very new to this so all help is welcome and appreciated.