Prometheus / Mbed 2 deprecated Prom_Roebi

Dependencies:   Farbsensor IRSensorLib PID_Control Servo mbed PixyLib

Revision:
10:10bcb7fee9a6
Parent:
9:b83994ef4b08
Child:
12:472b26872a42
diff -r b83994ef4b08 -r 10bcb7fee9a6 Fahren.h
--- a/Fahren.h	Fri May 19 12:30:42 2017 +0000
+++ b/Fahren.h	Sat May 20 12:01:27 2017 +0000
@@ -8,13 +8,14 @@
 //#include "CamAusw.h"
 #include "Pixy.h"
 #include "PID_Control.h"
+#include "Button.h"
 
 class Fahren
 {
 public:
     
     //Konstruktoren und Destruktoren
-    Fahren(DigitalOut* enable, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, AnalogIn* distance, DigitalOut* enableMotorDriver, PwmOut& pwmLeft, PwmOut& pwmRight, Pixy& pixy, PID_Control& pid);
+    Fahren(DigitalOut* enable, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, AnalogIn* distance, DigitalOut* enableMotorDriver, PwmOut& pwmLeft, PwmOut& pwmRight, Pixy& pixy, PID_Control& pid, Button& onoff);
     Fahren();
     virtual ~Fahren();
     
@@ -41,6 +42,7 @@
     PwmOut&         pwmRight;
     Pixy&           pixy;
     PID_Control&    pid;
+    Button&         onoff;
     
     int         state;
     enum        state {gerade=0,rechts,links,drehen,zurueck,zurueck_l,zurueck_r};