IMX8mm android10 Problems with rotating the screen using the accelerometer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX8mm android10 Problems with rotating the screen using the accelerometer

跳至解决方案
1,190 次查看
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,166 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

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

在原帖中查看解决方案

0 项奖励
2 回复数
1,167 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

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

0 项奖励
1,161 次查看
jianfeichang
Contributor IV

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

0 项奖励