robot code for summer school
Dependencies: PM2_Libary Eigen
Fork of PM2_Example_Summer_School by
Diff: Robot_Library/robot.cpp
- Branch:
- distance-sensor
- Revision:
- 70:0e9e3c6223d1
- Parent:
- 68:61aad0993a29
- Child:
- 72:9325748d2d02
--- a/Robot_Library/robot.cpp Mon May 30 11:16:34 2022 +0200 +++ b/Robot_Library/robot.cpp Mon May 30 11:19:11 2022 +0200 @@ -82,6 +82,9 @@ case LEFT_TURN_90: LeftTurn_90(); break; + case AVOIDING_OBSTACLE: + AvoidObstacle(); + break; default: state = IDLE; // on default, stop the car } @@ -152,6 +155,11 @@ // first } +void Robot::AvoidObstacle() +{ + // TODO +} + void Robot::PID_Move(std::uint8_t s_binary) // for following smooth lines ONLY {