Code Monkey home page Code Monkey logo

Comments (5)

akuladon avatar akuladon commented on July 20, 2024

I tried this code in Beamng.Drive and ETS2
In beamng i turned on ForceFeedBack checkbox but it didn't gave me any force feedback
Then I tried to use Steering axis, but it also didn't give any results
The only app that gives me force value is Wheel Check 1.72

from arduinojoystickwithffblibrary.

akuladon avatar akuladon commented on July 20, 2024

I tried assetto corsa and it works
I have changed code a bit, so there are three axes(also added second axis ffb, but i am not using it)
However it still doesn't work in ETS2 and BeamNG.Drive :(

from arduinojoystickwithffblibrary.

1781741527 avatar 1781741527 commented on July 20, 2024

Hello, I would like to ask, have you ever encountered a situation where the force feedback done by this library will cause the game to drop frames in the game? Or freeze and dodge? I also got a similar issue to you, I seem to have solved the problem of force feedback acquisition, but it causes my game to drop frames very badly!

Here's what I set up in my code:
//X-axis & Y-axis REQUIRED
Joystick_ Joystick(JOYSTICK_DEFAULT_REPORT_ID,
JOYSTICK_TYPE_MULTI_AXIS, 12, 0,
true, true, false, //X,Y,Z
false, false, false,//Rx,Ry,Rz
false, false,
true, true, false);

I feel like the device may be getting data into the game, causing the game to drop frames, but I don't know how to fix it yet, so I want to know if your project is complete? Can you give me some help?

from arduinojoystickwithffblibrary.

akuladon avatar akuladon commented on July 20, 2024

Yes, i also have this problem
It crashes games/slows physics/drops frame rate
I think leonardo doesn't have enough computing power to compute trigonometry functions(which are used in code to make effects) fast enough
This library is based on hoantv's library "VNWheel". VNWheel uses teensy 4.0 600 MHz instead of leonardo and it is much faster
I would like to buy one, but right now it costs too much for me. So now my project is frozen. I think you should abandon leonardo and try Teensy.
While writing this, i checked the prices on aliexpress and found some offers that are half of the past price, so maybe it is the best moment to buy one.

from arduinojoystickwithffblibrary.

YukMingLaw avatar YukMingLaw commented on July 20, 2024

Indeed, the situation is caused by insufficient computational capacity of the chip, and it's also related to whether the game employs a synchronous mechanism for sending force feedback data. The v0.9.0 version performed well in 'Project Cars 2', but significant frame drops occurred in both 'Horizon 4' and 'Horizon 5'. I invested effort into pinpointing and resolving this issue, and thus, I recommend you try building your project with v1.0.0. Enjoy it!

from arduinojoystickwithffblibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.