Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Farbsensor IRSensorLib PID_Control Servo mbed PixyLib
Diff: Fahren.h
- 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};