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/motor.h"
|
2021-05-07 21:39:03 +02:00
|
|
|
#include "motors_movement/roller.h"
|
|
|
|
#include "motors_movement/drivecontroller.h"
|
|
|
|
#include "systems/systems.h"
|
2020-11-04 17:46:14 +01:00
|
|
|
#include "systems/lines/linesys_camera.h"
|
|
|
|
#include "systems/position/positionsys_zone.h"
|
2020-02-29 22:10:53 +01:00
|
|
|
#include "sensors/data_source_ball.h"
|
2021-06-07 12:06:08 +02:00
|
|
|
#include "sensors/data_source_ball_presence.h"
|
2020-02-29 22:10:53 +01:00
|
|
|
#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"
|
2022-05-16 20:16:01 +02:00
|
|
|
#include "vars.h"
|
2020-02-29 22:10:53 +01:00
|
|
|
|
|
|
|
void initSensors();
|
|
|
|
void updateSensors();
|
|
|
|
|
|
|
|
s_extr vector<DataSource*> dUs;
|
|
|
|
|
|
|
|
s_extr DataSourceCtrl* usCtrl;
|
|
|
|
|
|
|
|
s_extr DataSourceBNO055* compass;
|
|
|
|
s_extr DataSourceBall* ball;
|
|
|
|
s_extr DataSourceCameraConic* camera;
|
|
|
|
s_extr DriveController* drive;
|
|
|
|
s_extr DataSourceBT* bt;
|
2021-06-07 12:06:08 +02:00
|
|
|
s_extr DataSourceBallPresence* ballPresence;
|
2020-02-29 22:10:53 +01:00
|
|
|
|
2021-04-19 16:05:42 +02:00
|
|
|
s_extr int role;
|
2021-05-07 21:39:03 +02:00
|
|
|
|
|
|
|
s_extr Roller* roller;
|