Antonia Baumgartner / Mbed 2 deprecated Versuch21

Dependencies:   mbed

Fork of Versuch20 by Alexander Wyss

Revision:
0:b886f13e4ac6
Child:
1:6ef5bc60e69c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Classes/Motion.h	Sun Apr 22 16:14:54 2018 +0000
@@ -0,0 +1,31 @@
+#ifndef MOTION_H_
+#define MOTION_H_
+#include <cstdlib>
+#include <mbed.h>
+#include "EncoderCounter.h"
+#include "Controller.h"
+#include "Spurhaltung.h"
+
+class Motion {
+    
+
+public:
+    Motion(EncoderCounter& counterLeft, EncoderCounter& counterRight, Controller& controller, Spurhaltung& spurhaltung);
+    virtual ~Motion();
+    float read();
+    int speedr();
+    int speedl();
+    void switching(int D);
+    
+private:
+    
+    EncoderCounter& counterLeft;
+    EncoderCounter& counterRight;
+    Controller& controller;
+    Spurhaltung& spurhaltung;
+    int D;
+
+
+};
+
+#endif /* IR_MOTION_H_ */ 
\ No newline at end of file