Basic support for QMC5883L compass

This commit is contained in:
Sassa NF
2025-01-22 22:18:25 +00:00
parent 48c5f8d1ce
commit 42dcab94ce
4 changed files with 420 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#include "heading.h"
void DroneHeading::setHeading(int64_t now, int16_t h)
{
_heading = h;
_lastRead = now;
}
int64_t DroneHeading::lastRead() { return _lastRead; }
int16_t DroneHeading::heading() { return _heading; }