robot code for summer school
Dependencies: PM2_Libary Eigen
Fork of PM2_Example_Summer_School by
Diff: Robot_Library/robot.h
- Branch:
- distance-sensor
- Revision:
- 72:9325748d2d02
- Parent:
- 70:0e9e3c6223d1
- Child:
- 73:667d568da72a
--- a/Robot_Library/robot.h Mon May 30 11:19:11 2022 +0200 +++ b/Robot_Library/robot.h Mon May 30 15:08:21 2022 +0200 @@ -49,9 +49,6 @@ float previous_error_value; float integral_error; - //bool motors_enabled; - - /* CONSTANTS */ const float DISTANCE_THRESHOLD = 0.2f; // minimum allowed distance to obstacle in [m] @@ -83,7 +80,7 @@ /// MOTORS + MOTION // - + DigitalOut enable_motors; FastPWM pwm_M1; // motor M1 is closed-loop speed controlled (angle velocity) FastPWM pwm_M2; // motor M2 is closed-loop speed controlled (angle velocity) EncoderCounter encoder_M1; // create encoder objects to read in the encoder counter values