Roboshark / Mbed 2 deprecated Roboshark_V6

Dependencies:   mbed

Fork of Roboshark_V5 by Roboshark

Revision:
6:7bbcdd07bc2d
Child:
7:862d80e0ea2d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Regler.h	Thu May 03 19:36:16 2018 +0000
@@ -0,0 +1,49 @@
+/*Roboshark V4
+Regler.h
+Erstellt: V.Ahlers
+geändert: V.Ahlers
+V.5.18
+*/
+
+#ifndef REGLER_H_
+#define REGLER_H_
+
+#include <cstdlib>
+#include <mbed.h>
+
+class Regler{
+
+    public:    
+    Regler(AnalogIn& IrRight, AnalogIn& IrLeft); //Konstruktor
+    
+    virtual ~Regler();
+    
+ 
+    float get_SpeedR();
+    float get_SpeedL();
+    
+    private:
+        AnalogIn& IrRight;
+        AnalogIn& IrLeft;
+        static const int FIXSPEED;
+        static const float PERIOD;
+        float SpeedR;
+        float SpeedL;
+        float measR2;
+        float measL2;
+        float div1;
+        float div2;
+        float div3;
+        float div4;
+        float kor1;
+        float kor2;
+        float kor3;
+        float kor4;
+        float faktor;
+        
+        
+        void setSpeed();
+        Ticker ticker;
+        
+    };
+    #endif
\ No newline at end of file