-
Notifications
You must be signed in to change notification settings - Fork 60
library dont work? #39
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
Comments
addition when I make my steering wheel on the original library, the code works for me and when I calibrate the device everything is correct, but when I do it on this library, the code is also compiled but does not react to HID-device at the same time, if I make a welcome through the "println" com port, you can see that the signals there are also they are working if you do it without ffb on the library with ffb the story is the same when using the original library everything works correctly I don’t know if it’s my problem or it’s the library just like I already mentioned I’m a beginner code with ffb on this library but of course it doesn’t work, I don’t know why the device also doesn’t react on the PC 17.02 I made a working code with ffb on a multi-turn potentiometer, initially there was an idea to do it on an encoder, but I have a bad usual one for 20 cycles, which, as I understand it, is not very suitable for this task because it does not read data very correctly. The only thing to do is to put the right values in myeffectparams. Now my question is what are the effects with what values you need to set and what specific gains that would be the maximum effects from the steering wheel with a minimum loss of fps. I used the Gyver Weel project as a code source: https://alexgyver.ru/gyverwheel/ . In the code, you can have a debug mode to see if the knobs and buttons work for you, as well as the calibration mode that you need to do it: 1.Set the potentiometers to the minimum position you need ` //X-axis & Y-axis REQUIRED Gains mygains[2]; #define DEBUG 0 // режим отладки int throttleMin, throttleMax, brakeMin, brakeMax, clutchMin, clutchMax, joystickXMin, joystickXMax, joystickYMin, joystickYMax, wheelMin, wheelMax; void setup(){
} void loop(){ //set X Axis Spring Effect Param //Send HID data to PC int thr, br, cth, joyx, joyy; br = map(analogRead(POT_BR), brakeMin, brakeMax, 0, 1023); cth = map(analogRead(POT_CTH), clutchMin, clutchMax, 0, 1023); joyx = map(analogRead(POT_JOY_X), joystickXMin, joystickXMax, 0, 1023); joyy = map(analogRead(POT_JOY_Y), joystickYMin, joystickYMax, 0, 1023); Joystick.setEffectParams(myeffectparams); if(forces[0] > 0){ } void calibration() {
} void debug() { |
which arduino hardware did you use for the project? |
arduino leonardo |
try this code? |
maybe you didn’t really understand what I need, the steering wheel is already working for me, I highlighted the text that now I don’t understand what values to be set in effects, I only understand what needs to be set for the spring. And it seems that as far as I know, when using a multi-axis, the device is not displayed in the control panel |
Hello, I would like to ask, have you ever encountered a situation where the force feedback done by this library causes the game to drop frames in the game? I'm also having a similar issue, I seem to have fixed the issue with force feedback acquisition, but it's causing my game to drop frames very badly! |
I also had slow fps in most games, unfortunately I abandoned this project at the moment |
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone, I'm new to arduino and I'm trying to write my own steering wheel with FFB, so far it's not very good. I can write code without FFB but I want to have it I have everything I need to create it motor and h-bridges the code I try to write gives me a lot of errors that I don't know how to fix. I would be very grateful if there is somewhere a code with ffb on this library, because while I understand a little. Also my experience in programming is low, all I did was read the book "a byte of python" I also know layout, but this has nothing to do with my question
The text was updated successfully, but these errors were encountered: