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:
 - 0:422088ad7fc5
 - Child:
 - 1:5c44e2462a8b
 
diff -r 000000000000 -r 422088ad7fc5 Farbauswertung.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Farbauswertung.h	Wed May 10 08:59:22 2017 +0000
@@ -0,0 +1,38 @@
+#ifndef FARBAUSW_H
+#define FARBAUSW_H
+
+#include <mbed.h>
+#include <cstdlib>
+#include "Farbsensor.h"
+#include "Servo.h"
+
+class Farbauswertung 
+{
+public:
+    //Konstruktoren und Destruktoren
+    Farbauswertung(AnalogIn* SensorG, AnalogIn* SensorR, Servo* servoAusw);
+    Farbauswertung();
+    virtual     ~Farbauswertung();
+    
+    //Public Methoden
+    void        init(AnalogIn* SensorG, AnalogIn* SensorR, Servo* servoAusw);
+    void        auswertung();
+    void        setSerialOutput(Serial *pc);
+    int         getState();
+    
+private:
+    //Private Methoden
+    
+    //Private Eigenschaften
+    AnalogIn*   SensorG;
+    AnalogIn*   SensorR;
+    Servo*      servoAusw;
+    
+    int         timer;
+    int         zustand;
+    enum        zustand {rot=0, gruen};
+    Farbsensor  farbsensor;
+    Serial      *pc;
+};
+
+#endif
\ No newline at end of file