Hi Forum
I have a Domino board and trying to get the kinect working, so far i can set LED:
Motor.SendSetupTransfer(0x40, 0x06, _led, 0x0, new byte[] { 0x0 }, 0, 0);
(Motor is USBH_RawDevice), _Led is 0…7
I can also read accelerometer and angle, yesterday i could read the init status but today that doesnt work, i’ve done no changes to the code. but now im tired and seeing double so i probably have…
anyway. i try to set the angle of the motor.
public void SetMotorAngle(byte Angle)
{
if (Angle < 0xC0) Angle = 0xC0;
if (Angle > 0xFF) Angle = 0xFF;
byte[] b = new byte[] { 0x0 };
Motor.SendSetupTransfer(0x40, 0x31, Angle, 0x00, [b]b[/b], 0, 0);
}
b is supposed to be empty, but SendSetupTransfer wont let me put null or uninitalized variables in data
when i read the status of the accelerometers with
byte[] buf = new byte[10];
Motor.SendSetupTransfer(0xC0, 0x32, [b]0x0[/b], 0x0, buf, 0, 0xA);
buf[9] is the strain on the motor, 4 means motor moving, 1 means cant move further.
for a couple of seconds the status is 4… then 1. but it doesnt move, it seemingly thinks its moving…
so, if anyone is working on the kinect, or is willing to try to see if it works, please try it and tell me!
the kinect works perfectly with the xbox.
and,
if(device.PRODUCT_ID==688)
{
// this is the motor ...
}
btw. i know i wont be able to realtime process anything, but it should be possible to stream the depth data to an USB disk and then post process…
this would be a perfect addition to the robotics codebase i am working on.