BertlPractise

Dependencies:   HCSR

Fork of Bertl by Franz Pucher

Files at this revision

API Documentation at this revision

Comitter:
richardkraus
Date:
Mon Dec 21 14:31:22 2015 +0000
Parent:
17:308802267a62
Commit message:
Bertl pracitse

Changed in this revision

Robot.h Show annotated file Show diff for this revision Revisions of this file
const.h Show annotated file Show diff for this revision Revisions of this file
diff -r 308802267a62 -r 691491518d5e Robot.h
--- a/Robot.h	Thu Nov 12 19:05:56 2015 +0000
+++ b/Robot.h	Mon Dec 21 14:31:22 2015 +0000
@@ -14,7 +14,7 @@
 #ifndef ROBOT_H
 #define ROBOT_H
 
-class Robot : public ur_Bertl
+class Robot : public Bertl
 {
 public:
     Robot() {};
diff -r 308802267a62 -r 691491518d5e const.h
--- a/const.h	Thu Nov 12 19:05:56 2015 +0000
+++ b/const.h	Mon Dec 21 14:31:22 2015 +0000
@@ -11,7 +11,8 @@
 #define CONST_H
 #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 TURN=280;
+ ;     /**< 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
@@ -29,7 +30,7 @@
 /*! \var int ANGLE
 \brief 12 is nearly 90 degree turn left.
 \warning maybe the number has to be adjusted */
-const int ANGLE = 12;      /*  nearly 90 degree turn left */
+const int ANGLE = 9.5;      /*  nearly 90 degree turn left */
 
 const int BTN_FLL = 0x80;   /**<   button front left outer */
 const int BTN_FL  = 0x04;   /**< button front left */