39 lines
758 B
C++
39 lines
758 B
C++
#include <Arduino.h>
|
|
#pragma once
|
|
#include "data_source_bno055.h"
|
|
#include "data_source_ball.h"
|
|
#include "data_source_camera.h"
|
|
#include "data_source_us.h"
|
|
#include "ds_ctrl_lines.h"
|
|
#include "motor.h"
|
|
#include "ds_ctrl.h"
|
|
#include "drivecontroller.h"
|
|
#include "game.h"
|
|
#ifdef SENSORS_CPP
|
|
#define extr
|
|
#else
|
|
#define extr extern
|
|
#endif
|
|
|
|
class Game;
|
|
class Goalie;
|
|
class Keeper;
|
|
void initSensors();
|
|
void updateSensors();
|
|
|
|
extr vector<DataSource*> lIn;
|
|
extr vector<DataSource*> lOut;
|
|
extr vector<DataSource*> dUs;
|
|
|
|
extr DataSourceCtrl* usCtrl;
|
|
extr DataSourceCtrlLines* linesCtrl;
|
|
|
|
extr DataSourceBNO055* compass;
|
|
extr DataSourceBall* ball;
|
|
extr DataSourceCamera* camera;
|
|
extr DriveController* drive;
|
|
|
|
extr Game* game;
|
|
extr Goalie* goalie;
|
|
extr Keeper* keeper;
|