Funktionen
Fork of Bertl by
Revision 18:10877b29cf5c, committed 2015-12-21
- Comitter:
- Winkler55555
- Date:
- Mon Dec 21 14:39:48 2015 +0000
- Parent:
- 17:308802267a62
- Commit message:
- Funktionen
Changed in this revision
--- a/Robot.h Thu Nov 12 19:05:56 2015 +0000 +++ b/Robot.h Mon Dec 21 14:39:48 2015 +0000 @@ -14,7 +14,7 @@ #ifndef ROBOT_H #define ROBOT_H -class Robot : public ur_Bertl +class Robot : public Bertl { public: Robot() {};
--- a/config.h Thu Nov 12 19:05:56 2015 +0000 +++ b/config.h Mon Dec 21 14:39:48 2015 +0000 @@ -35,8 +35,8 @@ //------------------ CHANGE ONLY IF NESSESARY ------------------------------------- DigitalOut MotorL_EN(p34); // wiring motor left -DigitalOut MotorL_FORWARD(P1_1); // change to P1_0 for Bertl 2015 -DigitalOut MotorL_REVERSE(P1_0); // change to P1_1 for Bertl 2015 +DigitalOut MotorL_FORWARD(P1_0); // change to P1_0 for Bertl 2015 +DigitalOut MotorL_REVERSE(P1_1); // change to P1_1 for Bertl 2015 DigitalOut MotorR_EN(p36); // wiring motor right DigitalOut MotorR_FORWARD(P1_3); // change to P1_4 for Bertl 2015
--- a/const.h Thu Nov 12 19:05:56 2015 +0000 +++ b/const.h Mon Dec 21 14:39:48 2015 +0000 @@ -11,13 +11,13 @@ #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=400; /**< 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. \warning no warning*/ -const int ULTRASONIC_DISTANCE = 5; /* Distance sensor */ +const int ULTRASONIC_DISTANCE = 8; /* Distance sensor */ /*! \var int SPEED \brief Bertl speed 0.2 (slow) - 1.0 (fast). \warning speed below 0.2 possible the motor won't start */