OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.58k stars 1.15k forks source link

Expose LED to OpenNI driver #528

Open eruffaldi opened 6 years ago

eruffaldi commented 6 years ago

For some application we need to expose the LED to OpenNI. We'll use some available get/set property to exposing it, plus something for activating the motor driver since starting the Kinect

eruffaldi commented 6 years ago

Usage e.g. in OpenNI2 SimpleRead

float d; int sd = sizeof(d); rc = device.getProperty ( ONI_DEVICE_PROPERTY_PLAYBACK_SPEED, &d,&sd); printf("PLAYBACK SPEED reported %d\n",rc); if(rc == 0) { d = 1; sd = 4; // blinking red device.setProperty(ONI_DEVICE_PROPERTY_PLAYBACK_SPEED,&d,sd); }