Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Roboshark_V62 by
Diff: Regler.h
- Revision:
- 7:862d80e0ea2d
- Parent:
- 6:7bbcdd07bc2d
diff -r 7bbcdd07bc2d -r 862d80e0ea2d Regler.h
--- a/Regler.h Thu May 03 19:36:16 2018 +0000
+++ b/Regler.h Fri May 04 16:26:59 2018 +0000
@@ -1,4 +1,4 @@
-/*Roboshark V4
+/*Roboshark V5
Regler.h
Erstellt: V.Ahlers
geändert: V.Ahlers
@@ -10,21 +10,23 @@
#include <cstdlib>
#include <mbed.h>
+#include "IRSensor.h"
class Regler{
public:
- Regler(AnalogIn& IrRight, AnalogIn& IrLeft); //Konstruktor
+ Regler(AnalogIn& IrRight, AnalogIn& IrLeft, IRSensor& iRSensor); //Konstruktor
virtual ~Regler();
- float get_SpeedR();
- float get_SpeedL();
+ float getSpeedR();
+ float getSpeedL();
private:
AnalogIn& IrRight;
AnalogIn& IrLeft;
+ IRSensor& iRSensor;
static const int FIXSPEED;
static const float PERIOD;
float SpeedR;
@@ -35,10 +37,14 @@
float div2;
float div3;
float div4;
+ float div5;
+ float div6;
float kor1;
float kor2;
float kor3;
float kor4;
+ float kor5;
+ float kor6;
float faktor;
