With this program the buttons on the biorobotics shield can be used to move the arms. both buttons pressed means shoot. Also SW3 can be pressed to adjust controller constants via Serial connection
Dependencies: HIDScope QEI controlandadjust mbed
Diff: main.cpp
- Revision:
- 7:8482ea098a37
- Parent:
- 5:be9f9dcbd9b0
diff -r be9f9dcbd9b0 -r 8482ea098a37 main.cpp --- a/main.cpp Thu Oct 15 09:51:08 2015 +0000 +++ b/main.cpp Fri Oct 16 09:26:09 2015 +0000 @@ -39,7 +39,7 @@ float error1_int=0; float error2_int=0; float error1_prev=0; -float error2_prec=0; +float error2_prev=0; //constants const float cpr=32*131;