Bau

Dependencies:   HCSR

Fork of Bertl by Franz Pucher

Revision:
12:cedc088eaf05
Parent:
11:155ce3832f01
Child:
13:3ce84646fd74
--- a/const.h	Fri Apr 24 09:16:40 2015 +0000
+++ b/const.h	Sun Apr 26 20:04:47 2015 +0000
@@ -1,6 +1,6 @@
 /*! \file const.h
 \brief A Documented file.
-* name:   const.h    Version: 2.0 \n
+* name:   const.h    Version: 2.2 \n
 * author: PE HTL BULME \n
 * email:  pe@bulme.at \n
 * description:
@@ -9,9 +9,10 @@
 */
 #ifndef CONST_H
 #define CONST_H
-#define TIME
-const int MOVE=500;
-const int TURN=300; 
+#define TIME  /**< if defined Bertl uses the time and not motor encoder*/
+const int MOVE=500;     /**< ms move forward or backward */
+const int TURN=500;     /**< ms TurnLeft or TurnRigth (nearly 90 degree) */
+const int STEPTIME=20;  /**< ms turn left or right for adjusting moves for TurnLeft or TurnRigth */
 
 /*! \var int ULTRASONIC_DISTANCE
 \brief Bertl Ultrasonic Distance Sensor from 1 to n; 5 is ok for nearly 5 cm.
@@ -28,7 +29,7 @@
 /*! \var int ANGLE
 \brief 12 is nearly 90 degree turn left.
 \warning maybe the number has to be adjusted */
-const int ANGLE = 4;      /*  nearly 90 degree turn left */
+const int ANGLE = 12;      /*  nearly 90 degree turn left */
 
 const int BTN_FLL = 0x80;   //  button front left outer 
 const int BTN_FL  = 0x04;   // button front left