From 4a1ba46f5b4d349503950cbeb9e918440915a909 Mon Sep 17 00:00:00 2001 From: u-siri-ous Date: Fri, 20 Dec 2019 10:33:11 +0100 Subject: [PATCH] started line_system to play properly --- include/ds_ctrl_lines.h | 2 +- include/line_system.h | 11 +++++++++++ include/sensors.h | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 include/line_system.h diff --git a/include/ds_ctrl_lines.h b/include/ds_ctrl_lines.h index 2967f15..bf8330e 100755 --- a/include/ds_ctrl_lines.h +++ b/include/ds_ctrl_lines.h @@ -16,7 +16,7 @@ #define LINE_THRESH 90 #define EXTIME 100 -class DSCtrlLines : public DataSourceCtrl { +class DSCtrlLines : public DataSourceCtrl{ public: DSCtrlLines(); diff --git a/include/line_system.h b/include/line_system.h new file mode 100644 index 0000000..0f94b68 --- /dev/null +++ b/include/line_system.h @@ -0,0 +1,11 @@ +#pragma once +#include "ds_ctrl_lines.h" +#include "games.h" +#include "game.h" + +class LineSystem : public DSCtrlLines{ + public: + LineSystem(DSCtrlLines* method, Game* strategy); + virtual void update() = 0; + virtual void test() = 0; +}; \ No newline at end of file diff --git a/include/sensors.h b/include/sensors.h index 9907900..91251bd 100755 --- a/include/sensors.h +++ b/include/sensors.h @@ -25,7 +25,7 @@ s_extr vector lIn; s_extr vector lOut; s_extr vector dUs; -s_extr DSCtrlLines* usCtrl; +s_extr DataSourceCtrl* usCtrl; s_extr DSCtrlLines* linesCtrl; s_extr DataSourceBNO055* compass;