-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
This is specifically for the Kinect 1473 and K4W device.
Pinging @zarvox as he figured out the motor control for these devices.
If you tilt the device at any point while it is running on exit the IR projector does not turn off.
I think this is related to a 'feature' of the newer Kinects where the IR projector turns off temporarily while the device is tilting. When the device has got to its tilt angle the projector turns back on.
I have no idea why the newer Kinects turn off the projector while tilting but this is how it behaves with the K4W tools / SDK and I have seen it described by MSFT devs as intended behavior ( see: http://social.msdn.microsoft.com/Forums/en-US/47a87396-3740-4037-93e9-cb3cf65fbeef/depth-camera-not-responding-when-i-tilt-the-motor-in-kinectfusion-sample?forum=kinectsdknuiapi )
Anyway my theory is that once you tilt the Kinect the audio device takes control of the IR projector so that on exit stopping the depth stream does not also stop the IR projector.
I have confirmed this hunch by calling freenect_stop_depth while the app is running. If the device has not been tilted the depth image stops coming in and the projector turns off, however if it has been tilted the depth image stops but the projector stays on.
My guess is that we might either need an additional write_register
call in freenect_stop_depth
or send some sort of command to the audio device to get it to turn off the projector.
A usb log of a K4W shutdown could be useful in that regard.