robot code for summer school
Dependencies: PM2_Libary Eigen
Fork of PM2_Example_Summer_School by
Diff: Robot_Library/robot.h
- Revision:
- 77:19cf9072bc22
- Parent:
- 76:2302f2b51e63
- Child:
- 78:d53f1d68ca65
--- a/Robot_Library/robot.h Tue May 31 10:44:16 2022 +0200 +++ b/Robot_Library/robot.h Wed Jun 01 08:18:10 2022 +0200 @@ -20,8 +20,7 @@ INITIAL, IDLE, FOLLOWING_LINE, - RIGHT_TURN, - LEFT_TURN, + TARGETING, AVOIDING_OBSTACLE, }; @@ -31,8 +30,7 @@ void Initial(); void Idle(); void FollowingLine(); // takes in rotational velocity? - void LeftTurn(); - void RightTurn(); + void MoveToTarget(); void AvoidObstacle(); //PID @@ -96,6 +94,10 @@ // tracking float theta; float target_theta; + float robot_x; + float target_x; + float robot_y; + float target_y; }; #endif \ No newline at end of file