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 

wrj4P5, WiiRemote P5 Library - Alpha
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ
View previous topic :: View next topic  
Author Message
Classiclll



Joined: 10 Feb 2007
Posts: 85
Location: Japan

Digg It
PostPosted: Fri Mar 28, 2008 6:47 pm    Post subject:

>turboconnard
irLights[] have take 0 to 1, or -1 for each axis.
i have not encounterd that value -0.504....

what is your OS, and BT stack?
if you can try the newest bluecove, pls try it and post the result.
_________________
Classiclll
Back to top
View user's profile Send private message Visit poster's website
turboconnard



Joined: 25 Mar 2008
Posts: 8

Digg It
PostPosted: Wed Apr 02, 2008 5:39 pm    Post subject:

yo, Classiclll

I'm on ubuntu Gutsy Gibbon and I use AvetanaBT...
sorry for the lately answer I was'nt there...
Back to top
View user's profile Send private message
Classiclll



Joined: 10 Feb 2007
Posts: 85
Location: Japan

Digg It
PostPosted: Thu Apr 03, 2008 1:42 pm    Post subject:

hi turboconnard.
i've not so many informations around LINUX environments.

have you try to run the WRLImpl.java, the sample of WiiremoteJ?
(removeing comments some codes of "public void IRInputReceived(WRIREvent evt)")
_________________
Classiclll
Back to top
View user's profile Send private message Visit poster's website
turboconnard



Joined: 25 Mar 2008
Posts: 8

Digg It
PostPosted: Sun Apr 06, 2008 10:22 am    Post subject:

Hi Classiclll

I try the WRLImpl.java and it works fine...
I just have enormous lags if I try in a 800x600 resolution. If I press a button it can take 1 minute to have the callback in the console and the graph goes slowly with lag too.

My ubuntu run on a oldschool pc so I have to modify the WRLImpl.java to an 200x150 resolution and it works fine.
Here's the console output...

Code:

avetanaBluetooth version 1.3.17
6 avr. 2008 10:19:49 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: Found SGH-E860V (00124795DF55)
6 avr. 2008 10:19:50 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: SGH-E860V is NOT a WiiRemote.
6 avr. 2008 10:19:50 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: Found Nintendo RVL-CNT-01 (001DBC3B40B9)
6 avr. 2008 10:19:50 wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FIN: Nintendo RVL-CNT-01 is a WiiRemote.
6 avr. 2008 10:19:51 wiiremotej.WiiRemote construct
INFO: btl2cap://001DBC3B40B9
6 avr. 2008 10:19:52 wiiremotej.WiiRemote calibrateAccelerometer
PLUS FIN: Calibrating accelerometer...
6 avr. 2008 10:19:52 wiiremotej.WiiRemote construct
PLUS FIN: Initialization complete.
Buffering audio file...
6 avr. 2008 10:19:52 wiiremotej.WiiRemote$1 run
LE PLUS FIN: Data write finished.
6 avr. 2008 10:19:52 wiiremotej.WiiRemote$1 run
LE PLUS FIN: Data write finished.
6 avr. 2008 10:19:52 wiiremotej.WiiRemote$1 run
LE PLUS FIN: Data write finished.
java.io.FileNotFoundException: Audio.au (No such file or directory)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at com.sun.media.sound.WaveFileReader.getAudioInputStream(WaveFileReader.java:205)
   at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1162)
   at WRLImpl.main(WRLImpl.java:148)
X: 0.39002932551319647
Y: 0.455019556714472
X: 0.48191593352883677
Y: 0.4758800521512386
X: 0.4222873900293255
Y: 0.4511082138200782
X: 0.3313782991202346
Y: 0.42894393741851367
Back to top
View user's profile Send private message
Classiclll



Joined: 10 Feb 2007
Posts: 85
Location: Japan

Digg It
PostPosted: Sat Apr 12, 2008 4:12 am    Post subject:

hi turboconnard. sorry for late reply.

i think the problem is between your os and jsr82/java other than wrj4p5.
can you run the sketch on small screen (ex. 200x200)?

on my mac(10.4.11), the sketch runs well with the size 1024x768.

i can't give you any useful suggestion. sorry
can someone solve this problem?
_________________
Classiclll
Back to top
View user's profile Send private message Visit poster's website
Classiclll



Joined: 10 Feb 2007
Posts: 85
Location: Japan

Digg It
PostPosted: Sun Apr 13, 2008 11:20 am    Post subject:

sample sketch modification.

the logic emulation of Jonny Cung Lee's lowcost Whiteboard
http://www.geocities.jp/classiclll_newweb/JonnyLeesBoardEmulator/applet/index.html

code improvement and video addition of previous posted sketch.
_________________
Classiclll
Back to top
View user's profile Send private message Visit poster's website
aleixOnion



Joined: 27 May 2008
Posts: 1

Digg It
PostPosted: Tue May 27, 2008 8:03 pm    Post subject:

Hi turboconnard,
try to initialize the wii object like this:

wii=new Wrj4P5(this).connect(Wrj4P5.EX);

//not wii=new Wrj4P5(this).connect(Wrj4P5.IR);

I had the same problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 7 of 8

 
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