The final program for the #include AIR robot
Dependencies: Biquad HIDScope QEI angleandposition controlandadjust mbed
Fork of includeair by
Diff: main.cpp
- Revision:
- 5:8ac5d0651e4d
- Parent:
- 4:bf7765b0f612
- Child:
- 6:37c94a5e205f
--- a/main.cpp Tue Oct 13 14:22:01 2015 +0000 +++ b/main.cpp Wed Oct 14 12:29:27 2015 +0000 @@ -51,7 +51,7 @@ double filteredsignal1=0; double filteredsignal2=0; -double filter_extragain=1; +float filter_extragain=1; /////////////////READSIGNAL Ticker readsignal_ticker; @@ -160,17 +160,17 @@ void valuechange() { mycontroller.STOP(); - /*pc.printf("KP is now %f, enter new value\n",Kp); + pc.printf("KP is now %f, enter new value\n",Kp); pc.scanf("%f", &Kp); pc.printf("KI is now %f, enter new value\n",Ki); pc.scanf("%f", &Ki); pc.printf("KD is now %f, enter new value\n",Kd); - pc.scanf("%f", &Kd);*/ + pc.scanf("%f", &Kd); pc.printf("Extra gain is now %f, enter new value\n",filter_extragain); - pc.scanf("%f",&filter_extragain); + pc.scanf("%f", &filter_extragain); } void readsignal() {