You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
703 B
24 lines
703 B
#include "I2CManagement.hpp"
|
|
#define X 0
|
|
#define Y 1
|
|
#define Z 2
|
|
|
|
class Hmc5883L : I2CDevice{
|
|
protected:
|
|
int16_t values[3] = {0,0,0};
|
|
double valuesScaled[3] = {0,0,0};
|
|
double radius = 0;
|
|
double azimuth = 0;
|
|
double elevation = 0;
|
|
double heading = 0;
|
|
void readRawValues();
|
|
public:
|
|
Hmc5883L(int readAddress, int writeAddress);
|
|
void beginUpdateTask();
|
|
void update();
|
|
static void beginUpdateTaskWrapper(void *classInstance);
|
|
bool checkAlive() override {return true;}
|
|
String getRawValuesWithSeparator();
|
|
String getHeadingValue(){return String(heading);}
|
|
String getDebugValues();
|
|
}; |