![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
The final program for the #include AIR robot
Dependencies: Biquad HIDScope QEI angleandposition controlandadjust mbed
Fork of includeair by
Diff: main.cpp
- Revision:
- 38:df0b0abea598
- Parent:
- 37:7fb72473592e
- Child:
- 39:ebcf0a60f58b
--- a/main.cpp Thu Oct 29 13:00:36 2015 +0000 +++ b/main.cpp Thu Oct 29 13:05:36 2015 +0000 @@ -115,6 +115,8 @@ angleandposition anglepos;// initiate the angle and position calculation library +const float radtodeg=(180/PIE); // to convert radians to degrees + //////////////////////GO FLAGS AND ACTIVATION FUNCTIONS volatile bool scopedata_go=false, control_go=false, @@ -412,7 +414,7 @@ changemode();//call changemode } if (scopedata_go==true) {//send scopedata - //TIME THIS LOOP TAKES 0.000008 SEC (PEAKS AT 0.000015) + //TIME THIS LOOP TAKES: 0.000008 SEC (PEAKS AT 0.000015) scopedata(y_start);// call scopedata, use baseline as desired y position scopedata_go=false; }