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

Files at this revision

API Documentation at this revision

Comitter:
Arnoldus
Date:
Fri Oct 16 09:26:09 2015 +0000
Parent:
5:be9f9dcbd9b0
Commit message:
typfout verbeterd

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
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;