Drehen mit Halt und offset um zum Klotz zurück drehen. (Kann nur ein klotz aufheben)

Dependencies:   Servo mbed

Fork of DrehungMitStopp by kings

IRSensor.h

Committer:
freunjor
Date:
2017-05-18
Revision:
4:85b8b4aa97a3
Parent:
2:365bf16abbf6

File content as of revision 4:85b8b4aa97a3:

#ifndef IR_SENSOR_H
#define IR_SENSOR_H

#include "mbed.h"

//E. Hess
//IRSensor.h

class IRSensor {
    public:
        IRSensor();
        IRSensor(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, int number);
        ~IRSensor();
        void init(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, int number);
        float read();
        float readFitered();

    private:
        AnalogIn*       distance;
        DigitalOut*     bit0;
        DigitalOut*     bit1;
        DigitalOut*     bit2;
        int             number;
        float           filteredValue;
};

#endif