mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 14:42:05 +00:00
27 lines
768 B
C
27 lines
768 B
C
/**
|
|
* @file FusionCompass.h
|
|
* @author Seb Madgwick
|
|
* @brief Tilt-compensated compass to calculate the magnetic heading using
|
|
* accelerometer and magnetometer measurements.
|
|
*/
|
|
|
|
#ifndef FUSION_COMPASS_H
|
|
#define FUSION_COMPASS_H
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Includes
|
|
|
|
#include "FusionConvention.h"
|
|
#include "FusionMath.h"
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Function declarations
|
|
|
|
float FusionCompassCalculateHeading(const FusionConvention convention, const FusionVector accelerometer,
|
|
const FusionVector magnetometer);
|
|
|
|
#endif
|
|
|
|
//------------------------------------------------------------------------------
|
|
// End of file
|