Home › Forums › Forums › Technical Support for BerryIMU › Calibration for Berry IMU using Python Code › Reply To: Calibration for Berry IMU using Python Code
August 1, 2019 at 9:40 pm #9025
Mark Williams
Keymaster
Use the code in this folder first as it is easier to understand
python-BerryIMU-gryo-accel-compass
Run the same calibration program (or use the values you already have)
and paste them into this file berryIMU-simple.py in the section below.. put you value is where the ‘0’ values are
################# Compass Calibration values ############
# Use calibrateBerryIMU.py to get calibration values
# Calibrating the compass isnt mandatory, however a calibrated
# compass will result in a more accurate heading values.
magXmin = 0
magYmin = 0
magZmin = 0
magXmax = 0
magYmax = 0
magZmax = 0
'''
Here is an example:
magXmin = -1748
magYmin = -1025
magZmin = -1876
magXmax = 959
magYmax = 1651
magZmax = 708
Dont use the above values, these are just an example.
'''
Mark --OzzMaker.com --
