2019-11-11 22:26:34 +01:00
|
|
|
#pragma once
|
|
|
|
|
2019-10-21 08:06:37 +02:00
|
|
|
#include <Adafruit_BNO055.h>
|
2020-02-18 09:37:36 +01:00
|
|
|
#include "data_source.h"
|
2019-10-21 08:06:37 +02:00
|
|
|
#include <Arduino.h>
|
|
|
|
|
2020-01-31 13:35:40 +01:00
|
|
|
#define DATA_CLOCK 10
|
|
|
|
|
2019-10-21 08:57:58 +02:00
|
|
|
class DataSourceBNO055 : public DataSource{
|
2019-10-21 08:06:37 +02:00
|
|
|
|
|
|
|
public:
|
2019-10-21 08:57:58 +02:00
|
|
|
DataSourceBNO055();
|
2019-11-18 14:37:55 +01:00
|
|
|
void readSensor() override;
|
2019-10-21 08:57:58 +02:00
|
|
|
|
2019-10-21 08:06:37 +02:00
|
|
|
public:
|
|
|
|
Adafruit_BNO055 bno;
|
2020-01-31 13:35:40 +01:00
|
|
|
unsigned long lastTime;
|
2019-10-21 08:57:58 +02:00
|
|
|
|
2019-10-21 08:06:37 +02:00
|
|
|
};
|