2020-02-29 22:10:53 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef SENSORS_CPP
|
|
|
|
#define s_extr
|
|
|
|
#else
|
|
|
|
#define s_extr extern
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
#include "behaviour_control/ds_ctrl.h"
|
|
|
|
#include "motors_movement/drivecontroller.h"
|
|
|
|
#include "motors_movement/motor.h"
|
2020-03-02 18:48:29 +01:00
|
|
|
#include "sensors/linesys_2019.h"
|
|
|
|
#include "sensors/linesys_camera.h"
|
2020-02-29 22:10:53 +01:00
|
|
|
#include "position/positionsys_zone.h"
|
|
|
|
#include "position/systems.h"
|
|
|
|
#include "sensors/data_source_ball.h"
|
|
|
|
#include "sensors/data_source_bt.h"
|
|
|
|
#include "sensors/data_source_bno055.h"
|
|
|
|
#include "sensors/data_source_camera_conicmirror.h"
|
|
|
|
#include "sensors/data_source_camera_vshapedmirror.h"
|
|
|
|
#include "sensors/currently_unused/data_source_us.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void initSensors();
|
|
|
|
void updateSensors();
|
|
|
|
|
|
|
|
s_extr vector<DataSource*> dUs;
|
|
|
|
|
|
|
|
s_extr DataSourceCtrl* usCtrl;
|
|
|
|
s_extr LineSys2019* linesCtrl;
|
|
|
|
|
|
|
|
s_extr DataSourceBNO055* compass;
|
|
|
|
s_extr DataSourceBall* ball;
|
|
|
|
s_extr DataSourceCameraConic* camera;
|
|
|
|
s_extr DriveController* drive;
|
|
|
|
s_extr DataSourceBT* bt;
|
|
|
|
|
|
|
|
s_extr int role;
|