Antonia Baumgartner / Mbed 2 deprecated Versuch21

Dependencies:   mbed

Fork of Versuch20 by Alexander Wyss

Classes/Spurhaltung.h

Committer:
baumgant
Date:
2018-05-12
Revision:
5:64d7b4b69fdf
Parent:
0:b886f13e4ac6

File content as of revision 5:64d7b4b69fdf:

#ifndef SPURHALTUNG_H_
#define SPURHALTUNG_H_
#include <cstdlib>
#include <mbed.h>
#include "Spurhaltung.h"
#include "IRSensorG.h"

class Spurhaltung {
    

public:
    Spurhaltung(IRSensorG& Sensor2, IRSensorG& Sensor3);
    virtual ~Spurhaltung();
    float read();
    int speedl();
    int speedr();

    
private:
    
    IRSensorG& Sensor2;
    IRSensorG& Sensor3;
    int sr;
    int sl;
    static const int DISTANCE;
    static const float SPEED;
    static const int DIFF;
    static const int DIFF2;
    static const int DIFF3;
    static const int OFFSET;
    static const int TOLERANCE1;
    static const int TOLERANCE2;

};

#endif /* SPURHALTUNG_H_ */