2019-11-11 22:26:34 +01:00
|
|
|
#include <Arduino.h>
|
2019-12-05 11:50:58 +01:00
|
|
|
#pragma once
|
2019-11-11 22:26:34 +01:00
|
|
|
#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"
|
2019-12-05 11:53:01 +01:00
|
|
|
#include "ds_ctrl_lines.h"
|
2019-11-11 22:26:34 +01:00
|
|
|
#include "motor.h"
|
2019-12-05 11:53:01 +01:00
|
|
|
#include "ds_ctrl.h"
|
2019-11-11 22:26:34 +01:00
|
|
|
#include "drivecontroller.h"
|
2019-12-02 17:25:22 +01:00
|
|
|
#include "game.h"
|
2019-11-11 22:26:34 +01:00
|
|
|
#ifdef SENSORS_CPP
|
|
|
|
#define extr
|
|
|
|
#else
|
|
|
|
#define extr extern
|
|
|
|
#endif
|
|
|
|
|
2019-12-02 17:25:22 +01:00
|
|
|
class Game;
|
2019-12-05 11:50:58 +01:00
|
|
|
class Goalie;
|
|
|
|
class Keeper;
|
2019-11-11 22:26:34 +01:00
|
|
|
void initSensors();
|
|
|
|
void updateSensors();
|
|
|
|
|
2019-12-05 11:57:18 +01:00
|
|
|
extr vector<DataSource*> lIn;
|
|
|
|
extr vector<DataSource*> lOut;
|
|
|
|
extr vector<DataSource*> dUs;
|
|
|
|
|
2019-12-05 11:53:01 +01:00
|
|
|
extr DataSourceCtrl* usCtrl;
|
|
|
|
extr DataSourceCtrlLines* linesCtrl;
|
2019-12-05 11:57:18 +01:00
|
|
|
|
2019-12-02 17:25:22 +01:00
|
|
|
extr DataSourceBNO055* compass;
|
|
|
|
extr DataSourceBall* ball;
|
|
|
|
extr DataSourceCamera* camera;
|
2019-11-18 14:42:43 +01:00
|
|
|
extr DriveController* drive;
|
2019-12-05 11:53:01 +01:00
|
|
|
|
2019-12-05 11:50:58 +01:00
|
|
|
extr Game* game;
|
|
|
|
extr Goalie* goalie;
|
2019-12-05 11:57:18 +01:00
|
|
|
extr Keeper* keeper;
|