WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wiimote Y-axis Script.

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
ellxa



Joined: 05 Jan 2007
Posts: 5

Digg It
PostPosted: Sun Feb 11, 2007 2:49 pm    Post subject: Wiimote Y-axis Script.

In GlovePIE, what is the variable for the wiimote's Y-axis Rotation? Is it relAccel? rawAccel? I'm trying to make a wii slots script so could really use some help.

EDIT: Credit will be given
Back to top
View user's profile Send private message
SwedishFrog
Site Admin


Joined: 25 Jan 2007
Posts: 273
Location: New York

Digg It
PostPosted: Sun Feb 11, 2007 4:39 pm    Post subject:

Use wiimote.pitch

Raw values aren't calibrated and shouldn't be used unless you want to reinvent the wheel and calibrate the wiimote yourself.

Other nice calibrated values include wiimote.roll and .gx .gy .gz
Back to top
View user's profile Send private message Visit poster's website AIM Address
Vattu



Joined: 11 Jan 2007
Posts: 96

Digg It
PostPosted: Sun Feb 11, 2007 5:27 pm    Post subject:

I'm using arccosine and arcsine functions of "raw forces" for a steering script I use for car games. The disadvantage of wiimote.pitch is that it's only accurate if wiimote.roll is close to 0. My script is accurate even for higher angles. Well, it's up to you if you want to accuracy or simplicity first.
Back to top
View user's profile Send private message
ellxa



Joined: 05 Jan 2007
Posts: 5

Digg It
PostPosted: Sun Feb 11, 2007 6:12 pm    Post subject:

I'm typing about the part where the pointer is going up and down, like flicking the wiimote. Is there a variable for that? Or do I have to use an immitation sensor bar?
Back to top
View user's profile Send private message
SwedishFrog
Site Admin


Joined: 25 Jan 2007
Posts: 273
Location: New York

Digg It
PostPosted: Sun Feb 11, 2007 11:59 pm    Post subject:

That depends on whether you're using the acceleometer to move the cursor or the IR dots. What exactly are you trying to do?

BTW The wiimote variables are in the glovepie documentation. Read it, very useful info there.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group