![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Codigo COmpleto
Dependencies: CrazyflieController CrazyflieSensors USBDevice mbed
Revision 4:8734045fab59, committed 2018-11-05
- Comitter:
- yvesyuzo
- Date:
- Mon Nov 05 11:42:49 2018 +0000
- Parent:
- 3:50fb1af1d604
- Commit message:
- f
Changed in this revision
diff -r 50fb1af1d604 -r 8734045fab59 CrazyflieController.lib --- a/CrazyflieController.lib Wed Oct 17 11:46:07 2018 +0000 +++ b/CrazyflieController.lib Mon Nov 05 11:42:49 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/yvesyuzo/code/CrazyflieController/#30065df89f59 +https://os.mbed.com/users/yvesyuzo/code/CrazyflieController/#fb6174d2ea78
diff -r 50fb1af1d604 -r 8734045fab59 CrazyflieSensors.lib --- a/CrazyflieSensors.lib Wed Oct 17 11:46:07 2018 +0000 +++ b/CrazyflieSensors.lib Mon Nov 05 11:42:49 2018 +0000 @@ -1,1 +1,1 @@ -http://os.mbed.com/users/fbob/code/CrazyflieSensors/#237258f2d05e +http://os.mbed.com/users/fbob/code/CrazyflieSensors/#e07de535b86f
diff -r 50fb1af1d604 -r 8734045fab59 EstimadorVertical.lib --- a/EstimadorVertical.lib Wed Oct 17 11:46:07 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://os.mbed.com/users/yvesyuzo/code/EstimadorVertical/#4757991ef201
diff -r 50fb1af1d604 -r 8734045fab59 main.cpp --- a/main.cpp Wed Oct 17 11:46:07 2018 +0000 +++ b/main.cpp Mon Nov 05 11:42:49 2018 +0000 @@ -15,7 +15,7 @@ // Last interrupt time float last_time = 0.0f; int main() - { +{ // Wait 5s for safety wait (5); // Initialize attitude estimator @@ -23,11 +23,9 @@ // Start timer timer.start(); // Run controller for only 5s - while (timer.read () <=5.0f) - { + while (timer.read () <=5.0f) { // Wait 5ms (200 Hz) to perfom next estimate and control update - while (( timer.read () -last_time ) <= 0.005f) - { + while (( timer.read () -last_time ) <= 0.005f) { } // Reset timmer last_time = timer.read (); @@ -40,7 +38,6 @@ } // Turn off all motors mixer.actuate (0.0f ,0.0f ,0.0f ,0.0f); - while (1) - { + while (1) { } }