Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    bhi260ab axes remap

    bhi260ab axes remap

    Gideon
    Long-established Member

    Hello,

    I want to know how to remap the axes of all sensors including mag(ak09...).

    There is some description of the re-map in the datasheet but I couldn't understand it. Please, help.

     

    1. bhy2_hif_set_orientation_matrix : If it is the API to remap the axes, please let me know how to use it.

    2. If there is an API for doing it, let me know it. please.

     

    Gideon_0-1622615681651.png

     

     

     

    3 REPLIES 3

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry.

    After your PCB is placed inside your product casing, BHI260AB and AK mag sensor will be invisible. Axis remapping is to align sensors' x/y/z axes to the product body X/Y/Z axes.

    In your drawing, assume that the product body X/Y/Z axes are the same as BHI260AB x/y/z axes. Then,

    AK_x = BHI260AB_y;

    AK_y = -BHI260AB_x;

    AK_z = BHI260AB_z

    So the remapping 3x3 matrix for AK mag sensor will be,

    0 1 0

    -1 0 0

    0 0 1

    Please see the attached PDF file for more information.

    Thanks.

    Gideon
    Long-established Member

    Appreciate your support.

    I'm sorry but Still I don't understand.

    1. How can you decide the value like...

    0 1 0

    -1 0 0

    0 0 1

    2. So, how do I use the API(bhy2_hif_set_orientation_matrix) for the value that you mentioned above? 

     

    Thanks again.

    Minhwan
    Community Moderator
    Community Moderator

    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-A...

    Thank you.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist