Closed jmriego closed 3 years ago
I have the same Issue!!
Hi,can you provide ‘fedit.exe’ and ‘ForceTest.exe’ s downloadlink?
sure, I got ForceTest.exe from this link: https://www.fs-force.com/support.php The fedit.exe is available in this other link: https://github.com/bobhelander/EDForceFeedback/tree/master/EDForceFeedback/FFUtils
Thanks for having a look!
Other Effects like damper, friction and inertia also not working on x [0] axis .
This seems to be related to this line: https://github.com/YukMingLaw/ArduinoJoystickWithFFBLibrary/blob/45ee061d4e71ee2fea0028fa0f76bbae1a2398cf/src/Joystick.cpp#L557
It looks like spring, damper, inertia and friction don't really have direction but this part of the code sets the angle to 0 so sin(0)
ends up making the X axis force zero
I have investigated this issue a bit more and there are several reasons why this is happening:
I just sent a pull request #15 @ZockZock Let me know if it works for you!
@jmriego nice work!
thanks! glad I could contribute something here
Hi! First of all thank you so much for this library. I'm making a lot of progress creating a joystick and I would have never been able without this!
I am trying to create a working example and test several effects. I can't manage to work the damper and inertia but that's probably just me having to learn. It seems like the spring effect does only work on one axis. I have created an example of a joystick with x and y axes and tried running a spring effect. It only seems to affect the Y axis. I have tested in both fedit.exe and ForceTest.exe.
This is the code I'm using. You can see debug messages in serial about the x and y positions and the x and y forces. Thanks in advance!