Author Topic: Motion plus (losing ?) calibration in Glovepie  (Read 15169 times)

Offline randomnerd

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
on: November 15, 2010, 04:09:18 PM
Hi,

I'm using glovepie 0.43 with a wiimote and motion plus. I have an old wiimote with a motion+ attached and a new remote+ with an integrated motion+. Both are "losing" their calibration after a few minutes of use in glovepie 0.42/ 0.43 - starting to "drift upwards" slowly, then faster and faster.

Does glovepie have a built-in recalibration command ?
Are there any special techniques in glovepie to prevent the motion+ from doing this ?

thanks in advance ...

 
« Last Edit: November 21, 2010, 07:08:42 AM by randomnerd »



Offline pfcwintergreen

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #1 on: November 20, 2010, 11:07:07 PM
Hey. I've noticed this as well when I've been writing scripts (but I barely know what I am doing). I haven't found a built in recalibration command. What I have to do is just set an interval or a button in the script that zero's out the axis/gyro in question periodically. That may not work for you depending on what you are trying to accomplish.



Offline randomnerd

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reply #2 on: November 21, 2010, 07:30:02 AM
What exactly are you doing when "zeroing out" the axis/ gyro ? Are you reading and then substracting the offsets ?

...

After a few more hours of playing around with it, it seems to be like this:

- only "Pitch" is being affected (raw-data, speed, etc.) - NEVER had problems with Yaw (!)
- (near-)dead batteries are NOT causing this; it happens with fresh batteries as well.
- It seems this happens only, or faster at least, if the CPU is under heavy load (playing 3d-games, for example)

- changing the process-priority of glovepie or increasing pie's framerate didn't change anything ...
- ALL pitch-related parameters are "drifting" into the same direction.




 



Offline pfcwintergreen

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Reply #3 on: November 22, 2010, 07:00:56 PM
No I mean this, and I have to emphasize that I have virtually no idea what I am doing once again

if var.resetyaw = true  then
wiimote.motionplus.gyroyaw = 0
wait 1000ms
end if

I'm using that sort of reset for a script to detect short yaw movements left or right, and for that purpose it works. But actually I've never had a problem with pitch at all but always have a problem with yaw...it gets way off track almost immediately.

How do you get a consistently accurate yaw reading?



Offline Gamemaster

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #4 on: June 01, 2011, 07:00:42 PM
I have had the same problem when i started writing my GTA IV script.

The problem only occurred when the nunchuck was plugged in when I started the script. If I unplug the nunchuck then start it works fine, but the nunchuck is a key element. If there is a way to start the script and then detect the attatchment of the nunchuck, that might work.



Offline Rexypoo

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #5 on: December 10, 2011, 01:18:35 PM
I have had the same problem when i started writing my GTA IV script.

The problem only occurred when the nunchuck was plugged in when I started the script. If I unplug the nunchuck then start it works fine, but the nunchuck is a key element. If there is a way to start the script and then detect the attatchment of the nunchuck, that might work.

I have exactly this on Yaw. The raw values indicate it's jittering between 0.00 and some minimum value (0.86 or something)
This is in GlovePIE .43 which automatically does the calibration by the way.

It fixed itself with fresh batteries, it's odd that it only happens with the nunchuk plugged in though. GlovePIE doesn't seem to calibrate as well as nintendo's games do.

To anyone with this problem: have you tried fresh AA batteries (not rechargeable ones)? The rechargeable ones lose juice pretty quickly.
« Last Edit: December 10, 2011, 01:36:34 PM by Rexypoo »



Offline IronAlf

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #6 on: December 11, 2011, 11:28:56 AM
Hey,

I have the same problem too.
The Motion Plus "pitch value" starts to drift up after a few minutes, sometimes immediatley after starting the script. I try to set the value to zero but this doesn´t help.
Also the other values (yaw, roll, yawspeed, rollspeed...) are not affected.
I have a Wiimote with Motion Plus inside and Glovepie 0.43.

I ask google so many times and I thought no one else has this problem. :)

wishes from germany ;)



Offline hoihappen

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reply #7 on: January 13, 2012, 11:57:24 AM
I have the same problem with Yaw. The value raises 1.5 per second. This just happens when the nunchuk is connected.
Additionally , I have another problem which appears with or without the nunchuk. All three values (Pitch, Roll, Yaw) change their center. I start the script and wait for MotionPlus to calibrate. All values are and stay near zero (except for Yaw when the nunchuk is connected), but when i rotate the wiimote in every angle (but no full turns for Yaw and Roll) and then put the wiimote at the exact spot where it calibrated, the values are far away from zero (ranges from -200 to 200). I don't know how I should use this values to calculate something useful...