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: Farbsensor IRSensorLib PID_Control Servo mbed PixyLib
Diff: Farbauswertung.h
- Revision:
- 12:472b26872a42
- Parent:
- 3:017c85c4b14b
- Child:
- 13:7ce78048b733
--- a/Farbauswertung.h Sat May 20 12:02:51 2017 +0000
+++ b/Farbauswertung.h Sat May 20 21:47:11 2017 +0000
@@ -5,20 +5,21 @@
#include <cstdlib>
#include "Farbsensor.h"
#include "Servo.h"
+#include "Button.h"
class Farbauswertung
{
public:
//Konstruktoren und Destruktoren
- Farbauswertung(AnalogIn* SensorG, AnalogIn* SensorR, Servo* servoAusw);
+ Farbauswertung(AnalogIn* SensorG, AnalogIn* SensorR, Servo* servoAusw, Servo* servoFoerder, Button& onoff);
Farbauswertung();
virtual ~Farbauswertung();
//Public Methoden
- void init(AnalogIn* SensorG, AnalogIn* SensorR, Servo* servoAusw);
void auswertung();
void setSerialOutput(Serial *pc);
- int getState();
+ void printState();
+ void printSens();
private:
//Private Methoden
@@ -27,6 +28,7 @@
AnalogIn* SensorG;
AnalogIn* SensorR;
Servo* servoAusw;
+ Servo* servoFoerder;
int merker_rot, merker_rot1,merker_gruen;
int einschlatZeit;
@@ -35,6 +37,7 @@
enum zustand {rot=0, gruen};
Farbsensor farbsensor;
Serial *pc;
+ Button& onoff;
};
#endif
\ No newline at end of file