Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    IMU BNO055 - Orientation on y-axis just between 90 and -90

    IMU BNO055 - Orientation on y-axis just between 90 and -90

    xeonus
    Member

    Hello,

    I am using a BNO055 to track the orientation of a skateboard. While using the "sensorAPI" example given by the BNO library, which output is the orientation, I am getting 0 to 360° for x and Z axis but just -90 to 90° for Y. Why is it doing that. The problem for me is, that 135° and 45° are the same.. both times 45.
    I think i am missing some information. 

    Thanks for any help!

    7 REPLIES 7

    Jet
    Occasional Contributor

    Hi Sir:

         Please read BNO055 datasheet 3.4 Axis remap to know how to configure and remap axis sign and map, according to different sensor placement.

        The corresponding registers is Register Map Page0, register address 0x42-0x43.

         I don't konw whether there is the operation interface n the Arduino IDE project and how to set them i, but if not the relevant function, maybe you need download BNO055 api, find and port these code into your projrect.

    Thanks for the reply!

    I looked into the datasheet and I know which position i need. 

    it would be P5. But yeah I am not sure how i get the sensor to do what  I want.

    bno055_set_operation_mode(OPERATION_MODE_CONFIG);
    AXIS_REMAP_CONFIG 0x21;
    AXIS_REMAP_SIGN 0x01;

    I tried this code above, but AXIS_REMAP_CONFIG is not useable without any further set up.

    Maybe someone already did this in C++?

     

    Jet
    Occasional Contributor

    Hi Sir:

         This setting can be done with C code on my stm32 platform, recommend you to download BNO055 api code to have a try.

     

    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