Update callback prototype for sensor fusion implementations.
Some filters have the option to include the Earth's magnetic field inclination (the angle between the magnetic north and the vertical axis) at a certain date, latitude, longitude and altitude for better results. This filters are Madgwick, Mahony and Kalman. For the other filters or for inexistent inclination data, use NULL. To calculate the inclination (also known as dip angle) one can use the following webpage: https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml?#igrfwmm
- Parameters
-
accel | Pointer to the accelerometer XYZ data. NULL for none. |
mag | Pointer to the magnetometer XYZ data. NULL for none. |
gyro | Pointer to the gyroscope XYZ data. NULL for none. |
incl | Pointer to the Earth's magnetic field inclination angle, in degrees. NULL for none. |
q | Pointer to the quaternion output placeholder. |
cfg | Pointer to the config struct for this algorithm. |
- Returns
- 0 on success, negative error code on failure
Definition at line 84 of file fusion.h.