-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it causes my game to crash or get stuck directly,I need help! #56
Comments
I feel like the device is constantly fetching game data from the game, causing the game to drop frames, but I don't know how to fix it yet, so I'm wondering if your project is complete? Can you give me some help? |
I am suffering from the same problem in (wheel force feedback test) it works normally but when I enter any game everything crashes I don't know how we can solve it |
My code might have some errors because I deleted some data that I couldn't show about my project but it's not part of the force feedback.Is it because I didn't activate the y axis ?If I find a solution I will post it here #include "BTS7960.h" #include "Joystick.h" //X-axis & Y-axis REQUIRED int gain = 60; int min_acel = 10; int min_frei = 10; int min_enbre = 10; int min_hb = 10; int ppr = 600; String command; const int encoderPinA = 0; // Trocando o pino A do encoder para o pino digital 1 int angleMax = 900; // Ângulo máximo em graus Encoder encoder(encoderPinA, encoderPinB); const uint8_t EN = 8; BTS7960 motorffb(EN, L_PWM, R_PWM); Gains mygains[2]; void setup(){ pinMode(13, OUTPUT); Joystick.setRzAxisRange(min_hb, max_hb);
encoder.write(0); } void loop(){ int encoderValue = encoder.read(); Joystick.setXAxis(voltare); motorffb.Enable(); Joystick.setRyAxis(analogRead(A2)); //Steering wheel //Send HID data to PC //Recv HID-PID data from PC and caculate forces Joystick.setEffectParams(myeffectparams); |
This issue should have been fixed in version v1.0.0, so you can try that out. |
Hello, I tried to use your library to get the force feedback information sent back from the game, but when I upload your routine to my Arduino Leonardo board, I find that it causes my game to crash or get stuck directly, and the game returns to normal when I reset or unplug the USB cable, so I wonder what is the cause of this phenomenon? How can it be improved? Would love to hear from you!
The text was updated successfully, but these errors were encountered: