basic version
Dependencies: C12832_lcd USBHost mbed
Diff: main.cpp
- Revision:
- 9:88d70b0c1b8b
- Parent:
- 8:b22ef9f44549
- Child:
- 10:6059097698f7
- Child:
- 11:f4639eb91e5f
diff -r b22ef9f44549 -r 88d70b0c1b8b main.cpp --- a/main.cpp Mon Jan 26 23:01:46 2015 +0000 +++ b/main.cpp Thu Jan 29 16:18:19 2015 +0000 @@ -2,6 +2,9 @@ #include "rtos.h" #include "C12832_lcd.h" + + + //Varible float sonarDistance; float servoPosition; @@ -43,9 +46,11 @@ int Size=16; float Average_4[16]; //number of value in the array float Average_Sum=0; + + + while(true) { - for(int i=0;i<Size;i++) { @@ -62,7 +67,6 @@ servoPosition_mutex.unlock(); //Mutex unlock for the servo value }//end for loop - }//end of while loop }//End of thread