hallo

Dependencies:   Servo mbed pixy

Fork of PES1 by Gruppe 3

Committer:
itslinear
Date:
Wed Apr 19 10:07:55 2017 +0000
Revision:
9:d9e46f9c9e40
Parent:
6:4af735d26b7a
Child:
10:75a18bf17c86
tada

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 9:d9e46f9c9e40 7 #include "Kamera.h"
itslinear 0:306a2438de17 8
itslinear 1:4e84271a70c6 9 class Roboter
itslinear 0:306a2438de17 10 {
itslinear 1:4e84271a70c6 11
itslinear 0:306a2438de17 12 public:
itslinear 0:306a2438de17 13
itslinear 4:fdcf3b5009c6 14 Roboter(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, PwmOut * pwmL, PwmOut* pwmR, Servo* s1, Servo* s2, DigitalIn * switch1, DigitalIn* switch2 );
itslinear 1:4e84271a70c6 15
itslinear 1:4e84271a70c6 16 void bandeAusweichen();
itslinear 1:4e84271a70c6 17 float readSensor1();
itslinear 3:24e098715b78 18 void pickup();
itslinear 6:4af735d26b7a 19
itslinear 3:24e098715b78 20
itslinear 0:306a2438de17 21
itslinear 1:4e84271a70c6 22 private:
itslinear 1:4e84271a70c6 23 IRSensor sensors[6];
itslinear 3:24e098715b78 24
itslinear 1:4e84271a70c6 25
itslinear 1:4e84271a70c6 26 PwmOut* pwmL;
itslinear 1:4e84271a70c6 27 PwmOut* pwmR;
itslinear 4:fdcf3b5009c6 28 Servo*s1;
itslinear 4:fdcf3b5009c6 29 Servo*s2;
itslinear 4:fdcf3b5009c6 30 DigitalIn * switch1;
itslinear 4:fdcf3b5009c6 31 DigitalIn* switch2;
itslinear 3:24e098715b78 32
itslinear 3:24e098715b78 33
itslinear 0:306a2438de17 34
itslinear 0:306a2438de17 35
itslinear 0:306a2438de17 36
itslinear 1:4e84271a70c6 37 };
itslinear 0:306a2438de17 38
itslinear 0:306a2438de17 39
itslinear 0:306a2438de17 40
itslinear 1:4e84271a70c6 41 #endif