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:
- 15:26dbcd6ff48d
- Parent:
- 14:bee8101aad45
- Child:
- 16:ad45ef4fee04
--- a/Farbauswertung.h Sun May 21 12:11:14 2017 +0000
+++ b/Farbauswertung.h Wed May 24 13:54:02 2017 +0000
@@ -5,13 +5,12 @@
#include <cstdlib>
#include "Farbsensor.h"
#include "Servo.h"
-#include "Button.h"
class Farbauswertung
{
public:
//Konstruktoren und Destruktoren
- Farbauswertung(AnalogIn* SensorG, AnalogIn* SensorR, Servo& servoAusw, Servo& servoFoerder, Button& onoff, int verzEin, int verzAus);
+ Farbauswertung(AnalogIn* SensorG, AnalogIn* SensorR, Servo& servoAusw, Servo& servoFoerder, int verzEin, int verzAus);
Farbauswertung();
virtual ~Farbauswertung();
@@ -36,11 +35,12 @@
uint8_t m_verzAus;
uint16_t p1, p2;
uint8_t sum;
+ float valInG;
+ float valInR;
uint8_t zustand;
enum zustand {gruen=0, rot};
Farbsensor farbsensor;
Serial *pc;
- Button& onoff;
};
#endif