Bertl Robot with fiunctions

Dependencies:   mbed HCSR

Revision:
9:8e3392380915
Parent:
7:cb6947e1f1d3
--- a/config.h	Thu Feb 05 12:39:34 2015 +0000
+++ b/config.h	Mon Feb 09 09:20:58 2015 +0000
@@ -60,6 +60,11 @@
 DigitalIn SensorR(P1_13);    // motor sensor right
 HCSR04  usensor(p21,p22);    // HC-SR04 ultrasonic sensor
 
+PwmOut mg1(P1_15);           //PWM Ausgang zum Motor Links
+PwmOut mg2(P0_21);           //PWM Ausgang zum Motor Rechts
+const int PERIOD = 20;
+const int SPEED = 3;
+
 #if defined(DEBUG) && DEBUG > 0
  #define DEBUG_PRINT(fmt, args...) fprintf(stderr, "DEBUG: %s:%d:%s(): " fmt, \
     __FILE__, __LINE__, __func__, ##args)