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
Farbauswertung.h
- Committer:
- ZHAW_Prometheus
- Date:
- 2017-05-10
- Revision:
- 1:5c44e2462a8b
- Parent:
- 0:422088ad7fc5
- Child:
- 3:017c85c4b14b
File content as of revision 1:5c44e2462a8b:
#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 merker_gruen, merker_gruen1;
int einschlatZeit;
int ausschaltZeit;
int zustand;
enum zustand {rot=0, gruen};
Farbsensor farbsensor;
Serial *pc;
};
#endif