Hello Gideon,
1. How can you decide the value like...
0 1 0
-1 0 0
0 0 1
-> The value can be found when we assume below condition. The main point is AK sensor and BHI direction could be different due to your board design.
Then, we need to re-map.
AK_x = BHI260AB_y;
AK_y = -BHI260AB_x;
AK_z = BHI260AB_z
2. So, how do I use the API(bhy2_hif_set_orientation_matrix) for the value that you mentioned above?
You don't directly use it.
Check bhy2_set_orientation_matrix function.
The method is same as previous our API, and there is guide as below.
https://community.bosch-sensortec.com/t5/Knowledge-base/Introduction-about-BHA250-BHI160-host-side-Axes-remapping/ta-p/8884
Thank you.
... View more