已开启
传感器hcs中配置的 sensorDirection无效 #2915
weixin_47258500创建于  8 天前
weixin_47258500
weixin_47258500
8 天前 创建

该问题是怎么引起的?

sensorDirection {
            direction = 1; // chip direction range of value:0-7
            /* <sign> 1:negative  0:positive
               <map> 0:AXIS_X  1:AXIS_Y  2:AXIS_Z
            */
            /* sign[AXIS_X], sign[AXIS_Y], sign[AXIS_Z], map[AXIS_X], map[AXIS_Y], map[AXIS_Z] */
            convert = [
                0, 0, 0, 0, 1, 2,
                1, 0, 0, 1, 0, 2,
                0, 0, 1, 0, 1, 2,
                0, 1, 0, 1, 0, 2,
                1, 0, 1, 0, 1, 2,
                0, 0, 1, 1, 0, 2,
                0, 1, 1, 0, 1, 2,
                1, 1, 1, 1, 0, 2
            ];
        }

这个配置可以交换xyz轴坐标,但是实际驱动中没有真正交换。

重现步骤

修改 direction = 1 为任意其他值,实际没有效果

报错信息

方向不会变化

likedislike
openharmony_ci
openharmony_ci成员
8 天前 评论:

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@Dufree](https://gitcode.com/Dufree) [@time_zhang](https://gitcode.com/time_zhang) [@haizhouyang](https://gitcode.com/haizhouyang) [@pxd2022](https://gitcode.com/pxd2022) 。如果需要调整订阅PR、Issue的变更状态,请访问链接。


Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
8 天前 添加了label:waiting_for_assign
weixin_47258500weixin_47258500
8 天前 修改了issue 的描述
weixin_47258500weixin_47258500
8 天前 关联了pull request:fix:sensor remap xyz function not work