Comments (5)
I'm not sure if this is the issue you're seeing, but have you taken the reversed axes orientations of the right joy-con into account (as seen here: https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/blob/master/imu_sensor_notes.md)?
The right joy-con's axes have a different orientation compared to the left joy-con's and pro controller's. One of the things I have on the to-do list for hid-nintendo is to do the correction in the driver instead of making userspace handle it.
from linux.
Yes, I made my code so that it selects the correct axis and the correct signal for each axis.
The problem itself is that the Right Joycon, even if on a flat surface, reads a lot of noise mainly coming as -ABS_RZ and, even if I use a deadzone, it reads greater values for -ABS_RZ than for +ABS_RZ and loses its reference point anyways.
I'm reading events from evdev.
from linux.
I don't know if you'd already found a workaround to this issue, but the latest patchset has support for reading IMU user calibrations. I wonder if calibrating on the switch and then retrying with the driver would alter behavior.
from linux.
Thanks for the heads up. I'll look into it probably next week, but it does sound like this could be a fix for my issue.
from linux.
I tested it and I was having the same results.
Then, I calibrated the joycon on the Switch and tested again, and it got better! The cursor on Dolphin was going down and left before, now it was going only to the right but at a slower rate.
Then, testing again using Splatoon 2 on the Switch, I noticed it can have this same problem, but I guess the software deals with it better. I'll try messing more with deadzones for gyro data. Thanks!
from linux.
Related Issues (20)
- can't connect pro controller via bt, permission denied HOT 1
- Pro Controller disconnects when connected via Bluetooth HOT 122
- hid-nintendo module fails to load HOT 5
- Gulikit King Kong Controller hang HOT 18
- SN30 Pro+ controller's Switch mode isn't recognized at all...? HOT 4
- IMU axes don't match with DualShock/Dualsense
- Is hid-nintendo still maintained? HOT 4
- 3rd Party Joycon Compatibility HOT 11
- Player LED behavior is wrong HOT 3
- Pro Controller connected with USB, doesn't reconnect after computer resumes from suspend HOT 4
- nintendo pro gamepad can't works well when connected with BT
- Joycon assigned incorrectly as pro controller HOT 1
- Bluetooth is refusing to work HOT 6
- Cam HOT 4
- Which kernel version got the 'rumble rate limiter' fix? HOT 1
- Testing Rumble, is it mixed up?
- Third Party Joycons not working properly HOT 1
- 3rd Party Pro Controller SP5248LED HOT 3
- Gulikit KingKong2 unable to properly sync HOT 1
- Nintendo Switch Online N64 Controller doesn't work with linux kernel 6.8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux.