Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BHI160B sudden jumps in quaternion

    BHI160B sudden jumps in quaternion

    soroush
    Established Member

    Dear Bosch community,

    We are performing some tests with BHI160B, and occasionally we observe sudden jumps in quaternion elements.

    A CSV file of the log and a few screenshots are attached.

    We are using the "Bosch_PCB_7183_di03_BMI160-7183_di03.2.1.11824" firmware and the provided c driver (https://github.com/BoschSensortec/BHy1_driver_and_MCU_solution/blob/master/examples/rotation_vector_...) with some modifications:

    • 100Hz sampling rate
    • Sensor mounted vertically with proper remapping matrix 

    Any advice would be highly appreciated.

    9 REPLIES 9

    BSTRobin
    Community Moderator
    Community Moderator

    Hi soroush,

    You need to run the calibration code https://github.com/BoschSensortec/BHy1_driver_and_MCU_solution/blob/master/examples/calib_profile_ex... until game rotation vector's accuracy reaches 3 before testing.

    soroush
    Established Member

    Hi BSTRobin,

    We warm start standalone BHI160B (uploading Acc/Gyro biases from the previous calibration process) and freshly perform stationary plus 6-face calibration before any test according to the same code you referred to, and GRV's accuracy always remains zero. To our understanding, calibration profile accuracy elements are the same as Acc's and Gyro's accuracies, however, we check all to be 3 before motion tests. 
    The official datasheet on the website (Although incomplete!!!!) mentions on page 60 that the GRV's accuracy is reported as zero (screenshot attached). Have you seen any value except 0 for GRV's accuracy?  RV's or Geo-RV's accuracies might be different. 

    BSTRobin
    Community Moderator
    Community Moderator

    Hi soroush,

    Data sheet description means accuracy game rotation vector accuracy is 0 if you see it from callback function of virtual sensor.
    But you could get accel, gyro, mag physical sensor accuracy from example code: https://github.com/boschsensortec/BHy1_driver_and_MCU_solution/blob/master/examples/calib_profile_ex...
    do_calibrate:
    ...

    Hi @soroush 

    I know this was 2 years ago, but just wondering if you ever resolved the issue with IMU experiencing discontinuities in quaternion results for the game vector and rotation vector? I am having similar issues with the BHI360, and am wondering what the next steps should be...

    soroush
    Established Member

    Hi JAS,
    We did not find any solution for that, and gave up!
    It is bad that BHI360 also has that issue!!!

    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