Roboshark / Mbed 2 deprecated Roboshark_V6

Dependencies:   mbed

Fork of Roboshark_V5 by Roboshark

Committer:
ahlervin
Date:
Thu May 03 19:36:16 2018 +0000
Revision:
6:7bbcdd07bc2d
Child:
7:862d80e0ea2d
Aufgemotzter Regler noch nicht ganz fertig

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ahlervin 6:7bbcdd07bc2d 1 /*Roboshark V4
ahlervin 6:7bbcdd07bc2d 2 Regler.h
ahlervin 6:7bbcdd07bc2d 3 Erstellt: V.Ahlers
ahlervin 6:7bbcdd07bc2d 4 geändert: V.Ahlers
ahlervin 6:7bbcdd07bc2d 5 V.5.18
ahlervin 6:7bbcdd07bc2d 6 */
ahlervin 6:7bbcdd07bc2d 7
ahlervin 6:7bbcdd07bc2d 8 #ifndef REGLER_H_
ahlervin 6:7bbcdd07bc2d 9 #define REGLER_H_
ahlervin 6:7bbcdd07bc2d 10
ahlervin 6:7bbcdd07bc2d 11 #include <cstdlib>
ahlervin 6:7bbcdd07bc2d 12 #include <mbed.h>
ahlervin 6:7bbcdd07bc2d 13
ahlervin 6:7bbcdd07bc2d 14 class Regler{
ahlervin 6:7bbcdd07bc2d 15
ahlervin 6:7bbcdd07bc2d 16 public:
ahlervin 6:7bbcdd07bc2d 17 Regler(AnalogIn& IrRight, AnalogIn& IrLeft); //Konstruktor
ahlervin 6:7bbcdd07bc2d 18
ahlervin 6:7bbcdd07bc2d 19 virtual ~Regler();
ahlervin 6:7bbcdd07bc2d 20
ahlervin 6:7bbcdd07bc2d 21
ahlervin 6:7bbcdd07bc2d 22 float get_SpeedR();
ahlervin 6:7bbcdd07bc2d 23 float get_SpeedL();
ahlervin 6:7bbcdd07bc2d 24
ahlervin 6:7bbcdd07bc2d 25 private:
ahlervin 6:7bbcdd07bc2d 26 AnalogIn& IrRight;
ahlervin 6:7bbcdd07bc2d 27 AnalogIn& IrLeft;
ahlervin 6:7bbcdd07bc2d 28 static const int FIXSPEED;
ahlervin 6:7bbcdd07bc2d 29 static const float PERIOD;
ahlervin 6:7bbcdd07bc2d 30 float SpeedR;
ahlervin 6:7bbcdd07bc2d 31 float SpeedL;
ahlervin 6:7bbcdd07bc2d 32 float measR2;
ahlervin 6:7bbcdd07bc2d 33 float measL2;
ahlervin 6:7bbcdd07bc2d 34 float div1;
ahlervin 6:7bbcdd07bc2d 35 float div2;
ahlervin 6:7bbcdd07bc2d 36 float div3;
ahlervin 6:7bbcdd07bc2d 37 float div4;
ahlervin 6:7bbcdd07bc2d 38 float kor1;
ahlervin 6:7bbcdd07bc2d 39 float kor2;
ahlervin 6:7bbcdd07bc2d 40 float kor3;
ahlervin 6:7bbcdd07bc2d 41 float kor4;
ahlervin 6:7bbcdd07bc2d 42 float faktor;
ahlervin 6:7bbcdd07bc2d 43
ahlervin 6:7bbcdd07bc2d 44
ahlervin 6:7bbcdd07bc2d 45 void setSpeed();
ahlervin 6:7bbcdd07bc2d 46 Ticker ticker;
ahlervin 6:7bbcdd07bc2d 47
ahlervin 6:7bbcdd07bc2d 48 };
ahlervin 6:7bbcdd07bc2d 49 #endif