Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of 2015robot_main by
Diff: autoMode.h
- Revision:
- 30:2923c6879e5f
- Parent:
- 29:03bb1ddbe456
- Child:
- 31:74e77ef0831c
--- a/autoMode.h Fri Sep 18 08:55:05 2015 +0000 +++ b/autoMode.h Sat Sep 19 02:49:00 2015 +0000 @@ -3,7 +3,7 @@ /***PID Controller***/ PID velocity_controller(18.0,5274.0 ,0.0,RATE); -PID direction_controller(9.0,2637.0,0.0,RATE); +PID direction_controller(18.0,5274.0,0.0,RATE); /***Ps3 correspondence***/ void autoPs3(){ @@ -24,7 +24,7 @@ velocity_controller.reset(); direction_controller.reset(); } - else if(triangle==1){ + else if(triangle){ if(edge_triangle){ edge_triangle=0; if(cylinderStep==3) cylinderStep=0;