Roboter

Dependencies:   Servo pixy mbed

Committer:
itslinear
Date:
Tue Apr 04 13:27:59 2017 +0000
Revision:
3:24e098715b78
Parent:
2:953263712480
Child:
4:fdcf3b5009c6
hoi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
itslinear 0:306a2438de17 1 #ifndef ROBOTER_H
itslinear 0:306a2438de17 2 #define ROBOTER_H
itslinear 0:306a2438de17 3
itslinear 0:306a2438de17 4 #include <mbed.h>
itslinear 0:306a2438de17 5 #include "IRSensor.h"
schneju2 2:953263712480 6 #include "Servo.h"
itslinear 0:306a2438de17 7
itslinear 1:4e84271a70c6 8 class Roboter
itslinear 0:306a2438de17 9 {
itslinear 1:4e84271a70c6 10
itslinear 0:306a2438de17 11 public:
itslinear 0:306a2438de17 12
schneju2 2:953263712480 13 Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR, Servo* s1, Servo* s2);
itslinear 1:4e84271a70c6 14
itslinear 1:4e84271a70c6 15 void bandeAusweichen();
itslinear 1:4e84271a70c6 16 float readSensor1();
itslinear 3:24e098715b78 17 void pickup();
itslinear 3:24e098715b78 18 void turn();
itslinear 3:24e098715b78 19
itslinear 0:306a2438de17 20
itslinear 1:4e84271a70c6 21 private:
itslinear 1:4e84271a70c6 22 IRSensor sensors[6];
itslinear 3:24e098715b78 23
itslinear 1:4e84271a70c6 24
itslinear 1:4e84271a70c6 25 PwmOut* pwmL;
itslinear 1:4e84271a70c6 26 PwmOut* pwmR;
itslinear 3:24e098715b78 27
itslinear 3:24e098715b78 28
itslinear 0:306a2438de17 29
itslinear 0:306a2438de17 30
itslinear 0:306a2438de17 31
itslinear 1:4e84271a70c6 32 };
itslinear 0:306a2438de17 33
itslinear 0:306a2438de17 34
itslinear 0:306a2438de17 35
itslinear 1:4e84271a70c6 36 #endif