lknds

Dependencies:   mbed TrapezoidControl Pulse QEI

Input/Ultrasonic/USS/USS.h

Committer:
M_souta
Date:
2019-09-17
Revision:
22:7d93f79a3686

File content as of revision 22:7d93f79a3686:

#ifndef USS_H_
#define USS_H_

#include "mbed.h"
#include "LM61CIZ.h"
#include "Pulse.h"

class USS {
    public:
    USS(PinName echoPin, PinName trigPin, PinName tempPin);
    double ReadDis(void);
    double GetDis(void);
    private:
    float distance_;
    PulseInOut echo_;
    PulseInOut trig_;
    LM61CIZ temp_;
};

#endif //ULTRASONI_H_