2019-10-09 14:59:27 +02:00
|
|
|
#include <Arduino.h>
|
2019-10-21 08:57:58 +02:00
|
|
|
#include "vars.h"
|
2019-10-21 15:30:28 +02:00
|
|
|
#include "data_source_bno055.h"
|
2019-10-21 08:06:37 +02:00
|
|
|
// #include <imu_class/imu.cpp>
|
|
|
|
//cyao c:
|
2019-10-09 14:59:27 +02:00
|
|
|
|
2019-10-21 15:30:28 +02:00
|
|
|
DataSourceBNO055* compass;
|
|
|
|
|
2019-10-09 14:59:27 +02:00
|
|
|
void setup() {
|
2019-10-21 08:57:58 +02:00
|
|
|
DEBUG_PRINT.begin(9600);
|
2019-10-21 15:30:28 +02:00
|
|
|
compass = new DataSourceBNO055();
|
2019-10-09 14:59:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void loop() {
|
2019-10-21 15:30:28 +02:00
|
|
|
compass->readSensor();
|
|
|
|
DEBUG_PRINT.println(compass->getValue());
|
|
|
|
|
|
|
|
//DEBUG_PRINT.println("Ciaooo");
|
|
|
|
delay(100);
|
2019-10-09 14:59:27 +02:00
|
|
|
}
|