Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Biquad HIDScope controlandadjust mbed QEI angleandposition
Diff: main.cpp
- Revision:
- 38:df0b0abea598
- Parent:
- 37:7fb72473592e
- Child:
- 39:ebcf0a60f58b
diff -r 7fb72473592e -r df0b0abea598 main.cpp
--- 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;
}