SPQR-Team-2019-REVAMPED/include/sensors.h

35 lines
682 B
C
Raw Normal View History

#pragma once
#ifdef SENSORS_CPP
#define s_extr
#else
#define s_extr extern
#endif
#include <Arduino.h>
#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 "ds_ctrl_lines.h"
#include "motor.h"
#include "ds_ctrl.h"
#include "drivecontroller.h"
void initSensors();
void updateSensors();
s_extr vector<DataSource*> lIn;
s_extr vector<DataSource*> lOut;
s_extr vector<DataSource*> dUs;
2019-12-05 11:57:18 +01:00
s_extr DataSourceCtrl* usCtrl;
s_extr DataSourceCtrlLines* linesCtrl;
2019-12-05 11:57:18 +01:00
s_extr DataSourceBNO055* compass;
s_extr DataSourceBall* ball;
s_extr DataSourceCamera* camera;
s_extr DriveController* drive;
s_extr int role;