-
Notifications
You must be signed in to change notification settings - Fork 10
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
貌似Joycon.cs中有问题,会导致gyr_g永远都是-Infinity #9
Comments
我用的是ns pro,连接后不需要设置啥的能用陀螺仪。代码可能存在问题。没去研究代码如何运行的 |
|
1 similar comment
|
😂我的ns pro连接就显示switch pro已连接之类的 没有重复队列 |
难道是电脑的蓝牙5.2有额外提升延迟?添加了非重复输出时间,结果出现了低于1ms的间隔。。。。。 |
不清楚了。看代码也优化不出来什么。 |
反复测试貌似直接吧方向传感器给干成了类似加速度的,停止运动就回归原位,估计调用这个udp协议的软件没用这些接口吧 |
比如Joycon.cs中第1058行
gyr_g.X = (gyr_r[i] - gyr_neutral[i]) * (816.0f / (gyr_sensiti[i] - gyr_neutral[i]));
查询gyr_sensiti和gyr_neutral赋值过程
看起来第3段有额外赋值,但是查询
isSnes
和thirdParty
赋值过程可以发下在Program.cs中195行附件是这么写的这导致就算是pro手柄也必须设置为第3方手柄才能用陀螺仪?
The text was updated successfully, but these errors were encountered: