a
Dependencies: Servo ServoArm mbed
Fork of PES_Official-TestF by
Diff: Headers/Robot.h
- Revision:
- 11:292bdbd85a9c
- Parent:
- 10:f76476943a6c
- Child:
- 14:b61fbd13a7c9
--- a/Headers/Robot.h Wed May 03 13:54:51 2017 +0000 +++ b/Headers/Robot.h Sat May 06 13:33:23 2017 +0000 @@ -64,10 +64,10 @@ void init(ServoArm* servoArm); - void collecttodown(int* done); - void downtocollect(int* done); - void collecttoback(int* done); - void backtocollect(int* done); + int collectToDown(); + int downToCollect(); + int collectToBack(); + int backToCollect(); private: ServoArm* arm; @@ -84,8 +84,8 @@ Greifer(); void init(Servo* greifer); - void take(); - void leave(); + int take(); + int leave(); private: Servo* greifer; @@ -123,7 +123,7 @@ void nothingFound(int* counter, int* timer, int* lastAct); - void search(int* counter, int* timer, int* found); + int search(int* timer); int getErrorMotor();