mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 11:01:46 +02:00
added FIFOdata fetch method
This commit is contained in:
parent
d4cb8af3b3
commit
4f308412e4
@ -12,14 +12,13 @@
|
||||
|
||||
#include "Dezibot.h"
|
||||
|
||||
MotionDetection motionDetection;
|
||||
static MotionDetection* motionDetectionPTR = &motionDetection;
|
||||
|
||||
Dezibot::Dezibot():multiColorLight(){
|
||||
|
||||
};
|
||||
void Dezibot::begin(void) {
|
||||
//motion.begin();
|
||||
motion.begin();
|
||||
multiColorLight.begin();
|
||||
//motionDetection.begin();
|
||||
motionDetection.begin();
|
||||
Wire.begin(1,2);
|
||||
};
|
||||
|
@ -19,37 +19,18 @@
|
||||
#include "Arduino.h"
|
||||
#include "Wire.h"
|
||||
|
||||
extern static MotionDetection* motionDetectionPTR;
|
||||
|
||||
class Dezibot {
|
||||
protected:
|
||||
void setIMU(Motion& m){
|
||||
m.imuInst = motionDetection;
|
||||
};
|
||||
|
||||
public:
|
||||
Dezibot();
|
||||
LightDetection lightDetection;
|
||||
ColorDetection colorDetection;
|
||||
MultiColorLight multiColorLight;
|
||||
Motion motion = Motion(motionDetectionPTR);
|
||||
static MotionDetection motionDetection = *motionDetectionPTR;
|
||||
Motion motion ;
|
||||
MotionDetection motionDetection;
|
||||
void begin(void);
|
||||
/*
|
||||
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
|
@ -1,7 +1,7 @@
|
||||
#include "MotionDetection.h"
|
||||
#include <math.h>
|
||||
|
||||
MotionDetection::MotionDetection(){//:handler(FSPI){
|
||||
MotionDetection::MotionDetection(){
|
||||
handler = new SPIClass(FSPI);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user