8000 GitHub - djblazkowicz/SparkFun_MPU-9250-DMP_Arduino_Library: Arduino library for the MPU-9250 enabling its digital motion process (DMP) features.
[go: up one dir, main page]

Skip to content

djblazkowicz/SparkFun_MPU-9250-DMP_Arduino_Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fork of SparkFun MPU-9250 Digital Motion Processor (DMP) Arduino Library

Modified to account for magnetic declination

  • Compatible with Arduino Due
  • usable for hmd 3dof tracking

Finding your Magnetic Declination and converting it to decimal degrees

  • First, pick up your smartphone and open: https://www.ngdc.noaa.gov/geomag/calculators/mobileDeclination.shtml it will show you a compass with magnetic directions and the declination angle which you will need

  • Note the sign on declination is either negative or positive (WEST or EAST) It will say either Declination is NEGATIVE (WEST) or POSITIVE (EAST)

  • Magnetic Declination changes over time, and the degree of change varies between locations. This means that you should update your Magnetic Declination once or twice a year and re-flash your Tracker sketch

variable is in the header file

float magnetic_declination = -1.0083;

examples on how to get the right value to enter:


London gives: Magnetic Declination: -0° 15' Declination is NEGATIVE (WEST)

Calc: 0 + (15/60) = 0.25 Result: MINUS 0.25 i.e. -0.25


Paris gives: Magnetic Declination: +0° 46' Declination is POSITIVE (EAST)

Calc: 0 + (46/60) = 0.767 Result: PLUS 0.767 i.e. 0.767


New York gives: Magnetic Declination: -12° 52' Declination is NEGATIVE (WEST)

Calc: 12 + (52/60) = 12.867 Result: MINUS 12.867 i.e. -12.867


About

Arduino library for the MPU-9250 enabling its digital motion process (DMP) features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 85.5%
  • C++ 14.5%
0