From da1f4d589176c8910cfff2fe847668e3ce99ec0d Mon Sep 17 00:00:00 2001 From: hhau Date: Sun, 19 Nov 2023 17:14:40 +0100 Subject: [PATCH] new: dev: initialStructure --- example/plain.cpp | 5 +++ src/Dezibot.h | 45 +++++++++++++++++++++++++++ src/colorDetection/ColorDetection.h | 7 +++++ src/lightDetection/LightDetection.h | 8 +++++ src/motion/Motion.h | 7 +++++ src/motionDetection/MotionDetection.h | 6 ++++ src/multiColorLight/MultiColorLight.h | 6 ++++ 7 files changed, 84 insertions(+) create mode 100644 example/plain.cpp create mode 100644 src/Dezibot.h create mode 100644 src/colorDetection/ColorDetection.h create mode 100644 src/lightDetection/LightDetection.h create mode 100644 src/motion/Motion.h create mode 100644 src/motionDetection/MotionDetection.h create mode 100644 src/multiColorLight/MultiColorLight.h diff --git a/example/plain.cpp b/example/plain.cpp new file mode 100644 index 0000000..c8fad0c --- /dev/null +++ b/example/plain.cpp @@ -0,0 +1,5 @@ +#include "Dezibot.h" + +int main(){ + return 0; +} \ No newline at end of file diff --git a/src/Dezibot.h b/src/Dezibot.h new file mode 100644 index 0000000..11a60ce --- /dev/null +++ b/src/Dezibot.h @@ -0,0 +1,45 @@ +/** + * @file Dezibot.h + * @author your name (you@domain.com) + * @brief + * @version 0.1 + * @date 2023-11-19 + * + * @copyright Copyright (c) 2023 + * + */ +#ifndef Dezibot_h +#define Dezibot_h +#include "Motion.h" +#include "LightDetection.h" +#include "ColorDetection.h" +#include "MultiColorLight.h" +#include "MotionDetection.h" +class Dezibot{ +protected: + +public: +Motion motion; +LightDetection lightDetection; +ColorDetection colorDetection; +MultiColorLight multiColorLight; +MotionDetection motionDetection; + +/* +Display display +IRCommuncation irCommuncation (beinhaltet Kommuniaktion / Annhärung...) +Battery battery +Extension extension +WiFi wifi //wie wird WiFi geschrieben? + +//nur lesender Zugriff, in dieser Klasse sind andere Instanzen mit dem Dezibotinterface gekapselt +Friends friends +OperatingSystem operatingSystem +USBCommunication usbCommunication +Button button +//nicht unique, initzial Dezibot +String robotName + +*/ +}; +#endif //Dezibot_h \ No newline at end of file diff --git a/src/colorDetection/ColorDetection.h b/src/colorDetection/ColorDetection.h new file mode 100644 index 0000000..b89e6d5 --- /dev/null +++ b/src/colorDetection/ColorDetection.h @@ -0,0 +1,7 @@ +#ifndef ColorDetection_h +#define ColorDetection_h + +class ColorDetection{ + +}; +#endif //ColorDetection_h \ No newline at end of file diff --git a/src/lightDetection/LightDetection.h b/src/lightDetection/LightDetection.h new file mode 100644 index 0000000..80827d8 --- /dev/null +++ b/src/lightDetection/LightDetection.h @@ -0,0 +1,8 @@ +#ifndef LightDetection_h +#define LightDetection_h + +//beinhaltet IR + Tageslicht +class LightDetection{ + +}; +#endif //LightDetection_h \ No newline at end of file diff --git a/src/motion/Motion.h b/src/motion/Motion.h new file mode 100644 index 0000000..99cb603 --- /dev/null +++ b/src/motion/Motion.h @@ -0,0 +1,7 @@ +#ifndef Motion_h +#define Motion_h + +class Motion{ + +}; +#endif //Motion_h \ No newline at end of file diff --git a/src/motionDetection/MotionDetection.h b/src/motionDetection/MotionDetection.h new file mode 100644 index 0000000..c01d0bb --- /dev/null +++ b/src/motionDetection/MotionDetection.h @@ -0,0 +1,6 @@ +#ifndef MotionDetection_h +#define MotionDetection_h +class MotionDetection{ + +}; +#endif //MotionDetection \ No newline at end of file diff --git a/src/multiColorLight/MultiColorLight.h b/src/multiColorLight/MultiColorLight.h new file mode 100644 index 0000000..70ea391 --- /dev/null +++ b/src/multiColorLight/MultiColorLight.h @@ -0,0 +1,6 @@ +#ifndef MultiColorLight_h +#define MultiColorLight_h +class MultiColorLight{ + +}; +#endif //MultiColorLight_h \ No newline at end of file