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 

enabling IR/getting IR data

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Windows Wiimote
View previous topic :: View next topic  
Author Message
perkbrian



Joined: 15 Dec 2006
Posts: 10

Digg It
PostPosted: Thu Jan 18, 2007 4:49 am    Post subject: enabling IR/getting IR data

ok, another question....

ive built my wiimote library in C#, and i cant quite figure out how to enable the IR sensor stuff...

right now i have:
Code:

public void StartIR()
        {
            Wiimotes[DevNum].Write(new byte[] { 0x12, 0x33 });

            Wiimotes[DevNum].Write(new byte[] { 0x13, 0x04 });

            Wiimotes[DevNum].Write(new byte[] { 0x1a, 0x04 });

            Wiimotes[DevNum].Write(new byte[]{
                0x16, 0x04, 0xB0, 0x00,
                0x30, 0x01, 0x08, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00
            });

            Wiimotes[DevNum].Write(new byte[]{
                0x16, 0x04, 0xB0, 0x00,
                0x06, 0x01, 0x90, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00
            });

            Wiimotes[DevNum].Write(new byte[]{
                0x16, 0x04, 0xB0, 0x00,
                0x08, 0x01, 0xC0, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00
            });

            Wiimotes[DevNum].Write(new byte[]{
                0x16, 0x04, 0xB0, 0x00,
                0x1A, 0x01, 0x40, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00
            });

            Wiimotes[DevNum].Write(new byte[]{
                0x16, 0x04, 0xB0, 0x00,
                0x33, 0x01, 0x33, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00, 0x00, 0x00,
                0x00, 0x00
            });
}


and ive tried sending them as reports also....

is this correct?

i used marcan's info on what to send to get it to work.... but i dont know if im doing it right, and if i am, im not wuite sure what im supposed to do to get the data... I can already get accelerometer data, and button press data...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Windows Wiimote 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