Replies: 3 comments
-
|
No idea about unity. Does the python example work? Maybe something with the HID implementation? |
Beta Was this translation helpful? Give feedback.
-
|
No idea about python. But I once tried to start hidlib_example.py. After that, I started hid_ffb_example. After a few seconds, I got back: Type: 13, Class: 2563.0: cmd: 1, val: 0, addr: 0 However, I did not see or feel any response on the steering wheel. At least I managed to replicate hidlib_example.py in Unity. So I assume I'm not doing anything fundamentally wrong. |
Beta Was this translation helpful? Give feedback.
-
|
That looks correct.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
New user here. I just got a new Open FFboard. I'm trying to trigger a force feedback impulse on a steering wheel using Unity3D. So far, I haven't had any success with it.
So far, I have tried the following:
SendFFBWriteCommand(0xA1, 0x00, 0x01, 0, 0x0, 1); // main.0.ffbactive = 1
SendFFBWriteCommand(0xA1, 0x00, 0xA01, 0, 0x0, 255); // axis.0.power = 255
SendFFBWriteCommand(0xA1, 0x00, 0xA01, 0, 0xC, 255); // axis.0.fxratio = 255
const ulong effectIndex = 0;
SendFFBWriteCommand(0xA1, 0x00, 0xA03, 0, 0x1, 1); // fxm.0.reset = 1
SendFFBWriteCommand(0xA1, 0x00, 0xA03, 0, 0x2, 0); // fxm.0.new = 0 (Constant)
SendFFBWriteCommand(0xA1, 0x03, 0xA03, 0, 0x4, (ulong)strength, effectIndex); // fxm.0.mag = 30000
SendFFBWriteCommand(0xA1, 0x03, 0xA03, 0, 0x7, (ulong)durationMs, effectIndex); // fxm.0.duration = 200
SendFFBWriteCommand(0xA1, 0x03, 0xA03, 0, 0xC, 32767, effectIndex); // fxm.0.axisgain = 32767
SendFFBWriteCommand(0xA1, 0x03, 0xA03, 0, 0x5, 1, effectIndex); // fxm.0.state = 1
new Thread(() =>
{
Thread.Sleep(durationMs + 50);
SendFFBWriteCommand(0xA1, 0x03, 0xA03, 0, 0x5, 0, effectIndex); // fxm.0.state = 0
}).Start();
Result: Nothing
Anyone got any ideas?
Beta Was this translation helpful? Give feedback.
All reactions