IR
now let's talk about IR. once again, great idea.
each wiimote can detect up to 4 IR spots with its camera, and process the data and send it to the host at 10ms intervals.
the "sensor" bar next to the wii console has a group of two IR LEDs on each side, which i think the wii still sees as two bright spots b/c the LEDs on each side are close. which probably means you could use up to two sensor bars. (you can buy a wii sensor bar for $10 which looks pretty neat.)
the viewing angle of the wiimote is pretty narrow, only 40 degrees. but if you hold a sensor bar relatively close to it you could control it pretty smoothly. or, you could use two sensor bars (or some other source, like an IR floodlight far away).
if you want everything IR related, you'd have
- wii_{l,r}_ir{1,2,3,4}_{x,y,o,s}, where
1..4 are up to 4 spots, x y are its coordinates,
o is the order of the dot on the x axis, and s is its size.
(assume size 0 means it's out of the viewing angle.)
- wii_{l,r}_ir_{x,y,d,z} which is data derived from the
4 hotspots. x and y are the calculated virtual "cursor"
coordinate (0 - 1.0), d is distance between first two
dots (i.e. one on the sensor bar), and z is the
calculated distance between the wiimote and the sensor
bar; if the sensor bar is not far, z could also be put
to some pretty good use (e.g. zoom)
... which is a lot of vars (especially if supported for 1..7 wiis: wii_{l,r,1..7}_ir{{1,2,3,4}_{x,y,o,s},ir_{x,y,d,z}} is 180 new vars. but then again, maybe it doesn't matter.)
but i'm thinking maybe it would be ok for now just to pass on the calculated virtual cursor data to presets, i.e. wii_{l,r}_ir_{x,y,d,z}. what do you think?
also i'll try to see if i can detect whether IR is used by a preset (i.e. if it references a wii_*_ir* var, to turn IR reading off when not needed to save battery; if it's too much change in the sources, a preset that uses Wii IR can set fUsesWiiIR=1).
the great thing about the ir is it lets you make a slow, continuous change, unlike the accelerometers which can only detect the force of your strike at the moment. roll and pitch are also ok for slow change (as you guys used them in the presets you made), but are inaccurate when closer to right angles.
now let's talk about IR. once again, great idea.
each wiimote can detect up to 4 IR spots with its camera, and process the data and send it to the host at 10ms intervals.
the "sensor" bar next to the wii console has a group of two IR LEDs on each side, which i think the wii still sees as two bright spots b/c the LEDs on each side are close. which probably means you could use up to two sensor bars. (you can buy a wii sensor bar for $10 which looks pretty neat.)
the viewing angle of the wiimote is pretty narrow, only 40 degrees. but if you hold a sensor bar relatively close to it you could control it pretty smoothly. or, you could use two sensor bars (or some other source, like an IR floodlight far away).
if you want everything IR related, you'd have
- wii_{l,r}_ir{1,2,3,4}_{x,y,o,s}, where
1..4 are up to 4 spots, x y are its coordinates,
o is the order of the dot on the x axis, and s is its size.
(assume size 0 means it's out of the viewing angle.)
- wii_{l,r}_ir_{x,y,d,z} which is data derived from the
4 hotspots. x and y are the calculated virtual "cursor"
coordinate (0 - 1.0), d is distance between first two
dots (i.e. one on the sensor bar), and z is the
calculated distance between the wiimote and the sensor
bar; if the sensor bar is not far, z could also be put
to some pretty good use (e.g. zoom)
... which is a lot of vars (especially if supported for 1..7 wiis: wii_{l,r,1..7}_ir{{1,2,3,4}_{x,y,o,s},ir_{x,y,d,z}} is 180 new vars. but then again, maybe it doesn't matter.)
but i'm thinking maybe it would be ok for now just to pass on the calculated virtual cursor data to presets, i.e. wii_{l,r}_ir_{x,y,d,z}. what do you think?
also i'll try to see if i can detect whether IR is used by a preset (i.e. if it references a wii_*_ir* var, to turn IR reading off when not needed to save battery; if it's too much change in the sources, a preset that uses Wii IR can set fUsesWiiIR=1).
the great thing about the ir is it lets you make a slow, continuous change, unlike the accelerometers which can only detect the force of your strike at the moment. roll and pitch are also ok for slow change (as you guys used them in the presets you made), but are inaccurate when closer to right angles.
Comment