Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI260AP firmware to get the heading, role, and pitch angles

    BHI260AP firmware to get the heading, role, and pitch angles

    masoodnevisi
    Member

    Hi, 

    Our team is new to BHI260AP IMU sensors and have some questions. Currently we are using BHI260AP with shuttle board 3.0  and the application board 3.0. We started some testing and we were able to get heading, roll, pitch angles using the firmware "Bosch_APP30_SHUTTLE_BHI260_aux_BMM150.fw" and the "Orientation" from the dropdown menu. This firmware seems to use the external magnetometer. However, we are interested to know if we could get the same angles without relying on the magnetometer. When we used "Bosch_APP30_SHUTTLE_BHI260.fw", assuming that it doesnt include the magnetometer data, we were not able to get those angles (there is no Orientation function). We were able to get some quaternions (using GameRotation) but not the angles. Though, we can use our own code to convert quaternions to euler angles, I am interested to know if there are any firmwares that we can download and use to get angles without the magnetometer (BMM150)? 

     
    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hi masoodnevisi,

    When you used EULER_SENSOR_ID in euler example code, internal 9doF algorithm will be enabled by default.

    Do you mean you will not use BMM150 in your hardware?

    Hi, 

    thank you for your quick response. So I only used the development desktop 2.0. I did not use the EULER_SENSOR_ID in euler example code. Should I try that instead?

    Yes, so my querstion is if we dont use BMM150 magnetometer in our hardware (let's say we use BHI260AP and design our own PCB without a magnetometer) in that case would we get the same accurate euler angles or do we rely on BMM150 to get accurate euler angles. If without the BMM150 we can still get accurate euler angles, what firmware we should use because I did not have success getting euler angles when using the fw file that didnt have BMM150.

    Thanks

    Hi masoodnevisi,

    EULER_SENSOR_ID this github example, the definition is the same as orientation.
    #define EULER_SENSOR_ID BHY2_SENSOR_ID_ORI_WU
    https://github.com/BoschSensortec/BHY2-Sensor-API/blob/master/examples/euler/euler.c

    Orientation will enable 9doF algorithm with magnetometer to output euler angles.
    If you don't use BMM150 magnetometer in our hardware, you could get quaternions output data, and convert it to euler angles.

    The current firmware does not support using orientation without a magnetometer sensor.

    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