The final program for the #include AIR robot
Dependencies: Biquad HIDScope QEI angleandposition controlandadjust mbed
Fork of includeair by
Diff: main.cpp
- Revision:
- 36:3856509519cf
- Parent:
- 35:0141a1fe8138
- Child:
- 37:7fb72473592e
--- a/main.cpp Thu Oct 29 12:44:46 2015 +0000 +++ b/main.cpp Thu Oct 29 12:59:41 2015 +0000 @@ -519,6 +519,7 @@ ledred=ledblue=1; encoder1.reset();// reset encoders so they are at 0 degrees encoder2.reset(); + desired_position=0;//set desired position to the middle of the field, where the pod actually is. switchedmode=false; } if (ledblink_go==true) {