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, 9  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiremoteJ
View previous topic :: View next topic  
Author Message
blindfish



Joined: 26 Sep 2007
Posts: 2

Digg It
PostPosted: Wed Sep 26, 2007 10:06 am    Post subject:

Copied from my post on the Processing forum... just in case it's useful to anyone here Wink

A couple of [hopefully] useful tips for others trying this out:

1. When I first connect the Wiimote up to Bluetooth it remains in discovery mode. When I then try and connect to the Processing application with 1 & 2 nothing happens. I've found that first pressing the Wiimote power button to 'switch it off' and then hitting 1 & 2 to enter discovery mode gets around this problem. Subsequent attempts to connect should work fine with just 1 & 2 as long as you do the following:

2. Make sure you 'switch off' your Wiimote before closing your Processing application so that you see the "Remote disconnected" message in the output window. In my case if I fail to do this it buggers something up with the Bluetooth stack which seems to require a system restart to fix Sad

By following these two steps I'm finding this fairly reliable and can now definitely get on with some experimenting Smile

[note: My setup (in case it's relevant):
PC (Windows XP)
Processing 0125
JVM 6.0.20.6
JSR82 implementation = BlueCove
Belkin Bluetooth dongle (didn't seem to work with laptop's internal Toshiba Bluetooth)]
_________________
Where is the what if the what is in why?
Back to top
View user's profile Send private message
blindfish



Joined: 26 Sep 2007
Posts: 2

Digg It
PostPosted: Wed Sep 26, 2007 10:25 am    Post subject: Feature request

I'm posting this separately to the above for clarity...

I couldn't find an 'onRelease' event for buttons in the WiiRimokon class. This would be really useful as sometimes you want something to keep happening whilst a button is held down.

I see such an event does exist in WiiRemoteJ but unfortunately my Java skills aren't yet adequate to go in and implement this myself Sad

-----------------
On a separate note some of the english on the method names etc. is a little strange. This isn't meant as a criticism - it obviously isn't surprising as English isn't your first language!

For the most part I don't think it's a problem, but people might get errors with 'senced' as this is not spelt correctly. It should be spelt 'sensed'. If you want help with the English I'd be happy to help. As I'm likely to be using wrj4P5 for a project I'm working on I'd be very happy to contribute in some way!

Hope your hospital visit goes well...

Domo arigato gozaimasu
_________________
Where is the what if the what is in why?
Back to top
View user's profile Send private message
viniciolindo



Joined: 21 Jun 2007
Posts: 20

Digg It
PostPosted: Thu Sep 27, 2007 4:24 pm    Post subject:

i have a problem with nunchuk, I use for pick acelleration of nunchuck this expression inside the draw method:
Code:
float gx = wii.nunchaku.senced.x;


when i print gx it return me always 0.0
why? I wrong something?

Question Rolling Eyes
Back to top
View user's profile Send private message
Classiclll



Joined: 10 Feb 2007
Posts: 95
Location: Japan

Digg It
PostPosted: Fri Sep 28, 2007 12:41 pm    Post subject:

i'm sorry
IRsencing mode and extention are excluding, and alpha-001 is IRmode.
i will fix you can select mode at constructing.
pls wait for a time.
_________________
Classiclll
Back to top
View user's profile Send private message Visit poster's website
Classiclll



Joined: 10 Feb 2007
Posts: 95
Location: Japan

Digg It
PostPosted: Sat Oct 06, 2007 6:04 pm    Post subject:

now Wrj4P5-002 released.
jars & codes & How-To->
https://sourceforge.jp/projects/wrj4p5
new samples ->
http://www.geocities.jp/classiclll_newweb/AttitudeAnalysis1/applet/index.html
and
[added] http://www.geocities.jp/classiclll_newweb/P5aber/applet/index.html
Code:
 * added a new constructor
   * wrj4P5(PApplet parent, boolean mode)
     * mode==Wrj4P5.IR -- IRSenserMode (no extention input)
     * mode==Wrj4P5.EX-- ExtensionMode (no IRInfomation)
        default is EX-mode [changed!]
 * added 3 methods to [for your sketch] events
    * ButtonReleased(ButtonEvent evt, int rid)
    * NunchakuReleased(NunchakuEvent evt, int rid)
    * KurekonReleased(KurakonEvent ev, int rid)
 * The 6(3+3) [for your sketch] methods now run as a thread.
 * Typo correction. senced->sensed, senced is still available.


thank you, blindfish.
_________________
Classiclll
Back to top
View user's profile Send private message Visit poster's website
viniciolindo



Joined: 21 Jun 2007
Posts: 20

Digg It
PostPosted: Thu Nov 08, 2007 9:30 am    Post subject:

i changed version of wrj4p5 and also linux version:from ubuntu feisty to ubuntu gutsy and now when i try to connect the wiimote processing tell me:

Code:
avetanaBluetooth version 1.3.17
trying to find a wii
no such host null


and when i closed processing windows it write

Code:
hciOpenDevice(0)
setting HCI_DEVICE_ID to 0


with no error but the wiimote is not connected...have you any idea? Question Crying or Very sad
Back to top
View user's profile Send private message
Classiclll



Joined: 10 Feb 2007
Posts: 95
Location: Japan

Digg It
PostPosted: Fri Nov 09, 2007 12:35 pm    Post subject:

viniciolindo wrote:
i changed version of wrj4p5 and also linux version:from ubuntu feisty to ubuntu gutsy

sorry i have no idea.
then, how
1. wrj4P5-001 + feisty (it may be well) ?
2. wrj4P5-002 + feisty ?
3. wrj4P5-001 + gutsy ?
this is the way to find the forcus point.

*wrj4P5-002 is modified only around the buttonEvents and startup mode setting after connected.
_________________
Classiclll
Back to top
View user's profile Send private message Visit poster's website
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, 9  Next
Page 4 of 9

 
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