 |
WiiLi.org a new revolution
|
| View previous topic :: View next topic |
| Author |
Message |
viniciolindo
Joined: 21 Jun 2007 Posts: 20
Digg It |
Posted: Sun Sep 09, 2007 4:55 pm Post subject: |
|
|
ok i'm trying to use your library but I don't find a method to get rotation of wiimote... in wiiremoteJ called pitch and roll
can you help me  |
|
| Back to top |
|
 |
Classiclll
Joined: 10 Feb 2007 Posts: 92 Location: Japan
Digg It |
Posted: Mon Sep 10, 2007 10:40 am Post subject: |
|
|
| Quote: | | java.io.IOException: Descrittore di file errato |
is above Italian?
sorry i have not encounterd the "Bad file descriptor" exception.
i have no idea.
| Quote: | | I don't find a method to get rotation of wiimote... in wiiremoteJ called pitch and roll |
i know the class PositionInfo offers pitch and roll, but i don't know how to get this instance.
i'm trying to get the 3D attitude of a WiiRemote for another aim....but this seems not for you, and will take some time.
sorry
.....(is Cha0s here?) _________________ Classiclll |
|
| Back to top |
|
 |
viniciolindo
Joined: 21 Jun 2007 Posts: 20
Digg It |
Posted: Mon Sep 10, 2007 1:46 pm Post subject: |
|
|
can I help you to develop this library?
why you don't know how get that instance?
i'have some time to try.. can you explain me your problem?
thank's |
|
| Back to top |
|
 |
Classiclll
Joined: 10 Feb 2007 Posts: 92 Location: Japan
Digg It |
Posted: Mon Sep 10, 2007 2:08 pm Post subject: |
|
|
if you need roll & pitch, let
roll = asin(wii.rimokon.x), pitch = asin(wii.rimokon.y)
as mentioned in
http://www.wiili.org/index.php/Motion_analysis
i think the PositionInfo instance must be gotten via a WiiRemote instance or a WiiRemoteEvent, but there is no method to get it in Cha0s's JavaDoc.
if you can test his sample, would you try to get a proper instance of PositionInfo? _________________ Classiclll |
|
| Back to top |
|
 |
viniciolindo
Joined: 21 Jun 2007 Posts: 20
Digg It |
Posted: Mon Sep 10, 2007 2:36 pm Post subject: |
|
|
thank's a lot
your help was very big hand for me
I understand that java for me is still too difficult!!
but why if pitch and roll is so simple to calculate in wiiremoteJ there is a separate class? |
|
| Back to top |
|
 |
Classiclll
Joined: 10 Feb 2007 Posts: 92 Location: Japan
Digg It |
Posted: Mon Sep 10, 2007 2:52 pm Post subject: |
|
|
because the PositionInfo has position, that can be obtained by integrating twice the acceleration over time, i think.
also i'm trying to get the velocity and position in a 3D space. _________________ Classiclll |
|
| Back to top |
|
 |
Classiclll
Joined: 10 Feb 2007 Posts: 92 Location: Japan
Digg It |
Posted: Wed Sep 26, 2007 1:42 am Post subject: |
|
|
Hi all
i must be hospitalized in one or two weeks.
pls wait for my reply till being out of hospital.
if you have a problem on connecting, pls visit
http://www.wiili.org/forum/wiiremotej-tips-t2815.html _________________ Classiclll |
|
| Back to top |
|
 |
|
|
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
|