IMX8mm android10 Problems with rotating the screen using the accelerometer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8mm android10 Problems with rotating the screen using the accelerometer

ソリューションへジャンプ
1,173件の閲覧回数
jianfeichang
Contributor IV

hello,

    The Android 10 accelerometer works,My device is landscape。When I scroll down, the screen rotates to the right, and when I scroll to the right, the screen rotates to the right, it rotates 90 degrees more。The accelerometer is working,How do I change the screen to rotate it all to the left?

安卓10的加速度计正常工作的,设备是横屏,当我把设备向下,屏幕向右,当我把设备向右,屏幕再向右旋转,总是多转了90度,我怎么修改让它向左旋转90度,进而校准。有参考的链接吗?

0 件の賞賛
1 解決策
1,149件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

你仔细检查一下hal层的加速度数据有没有问题。

如果你的HAL层上报的加速度数据没问题,不应该出现旋转错误的现象。

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
1,150件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

你仔细检查一下hal层的加速度数据有没有问题。

如果你的HAL层上报的加速度数据没问题,不应该出现旋转错误的现象。

0 件の賞賛
1,144件の閲覧回数
jianfeichang
Contributor IV

谢谢你的回复,我的旋转可以了,修改的是frameworks,之前修改launcher3一直不行,也许是位置没有找对

0 件の賞賛