| View previous topic :: View next topic |
| Author |
Message |
Degen
Joined: 23 Sep 2007 Posts: 16
Digg It |
Posted: Wed Mar 05, 2008 11:33 am Post subject: IR sensitivity |
|
|
When you calibrate your remotes on the wii you can set the IR sensitivity, can you change the sensitivity with WiiRemoteJ? I could not find any thing in the doc...
Thx! |
|
| Back to top |
|
 |
Cha0s Site Admin
Joined: 17 Jan 2007 Posts: 421
Digg It |
Posted: Wed Mar 05, 2008 2:03 pm Post subject: |
|
|
Yes. This was just added in the last release, so make sure you have the latest version. Then take a look at the second setIRSensorEnabled(...) method. You can supply two sensitivity arrays there. You can find some popular settings for sensitivity in the wiki. _________________ Cha0s |
|
| Back to top |
|
 |
Degen
Joined: 23 Sep 2007 Posts: 16
Digg It |
Posted: Thu Mar 06, 2008 8:38 am Post subject: |
|
|
| Thx I will check it out! |
|
| Back to top |
|
 |
Degen
Joined: 23 Sep 2007 Posts: 16
Digg It |
Posted: Thu Mar 06, 2008 9:03 am Post subject: |
|
|
Now I have been looking for 30 min and I have not found any thing about the popular sensitivity arrays. Maby Im just stupid and blind but I cant find it so could someone put up a link or tell me where in the wiki to search
Thx |
|
| Back to top |
|
 |
wiiguy42
Joined: 04 Mar 2008 Posts: 14
Digg It |
|
| Back to top |
|
 |
Degen
Joined: 23 Sep 2007 Posts: 16
Digg It |
Posted: Thu Mar 06, 2008 7:25 pm Post subject: |
|
|
| Thx a lot! |
|
| Back to top |
|
 |
Degen
Joined: 23 Sep 2007 Posts: 16
Digg It |
Posted: Mon Mar 10, 2008 10:54 pm Post subject: |
|
|
I have tested some settings from the website but it does not work. I dont get any better sensitivity and my wii on sensitivity 5 can see dots 2m before my program :/
This is how I did.
public static void main(String args[])
{
byte[] sens1 = new byte[]{0x07, 0x00, 0x00, 0x71, 0x01, 0x00, 0x72, 0x00, 0x20};
byte[] sens2 = new byte[]{0x1f, 0x03};
remote.setIRSensorEnabled(true, WRIREvent.BASIC,sens1,sens2);
And one final question I tried the super sensitivity with a byte = 0x90 but the compiler complains about "possible loss of precision". Why??
Thx! |
|
| Back to top |
|
 |
|