SPQR-Team1-2020/include/sensors.h

32 lines
644 B
C
Raw Normal View History

#include <Arduino.h>
#pragma once
#include "data_source_bno055.h"
2019-11-18 14:42:43 +01:00
#include "data_source_ball.h"
2019-11-18 18:11:26 +01:00
#include "data_source_camera.h"
2019-11-25 17:30:47 +01:00
#include "data_source_us.h"
#include "motor.h"
#include "data_source_controller.h"
#include "drivecontroller.h"
2019-12-02 17:25:22 +01:00
#include "game.h"
#ifdef SENSORS_CPP
#define extr
#else
#define extr extern
#endif
2019-12-02 17:25:22 +01:00
class Game;
class Goalie;
class Keeper;
void initSensors();
void updateSensors();
2019-12-02 17:25:22 +01:00
extr DataSourceBNO055* compass;
extr DataSourceBall* ball;
extr DataSourceCamera* camera;
//extr DataSource* us;
extr DataSourceController* usCtrl;
2019-11-18 14:42:43 +01:00
extr DriveController* drive;
extr Game* game;
extr Goalie* goalie;
extr Keeper* keeper;