This is car control simulation by using Mbed controller and real time operating system.

Dependencies:   MCP23017 Servo WattBob_TextLCD mbed-rtos mbed

Fork of Ass3 by Muaiyd Al-Zandi

Revision:
3:4fb8cdf6ae01
Parent:
2:707ab9d39a64
diff -r 707ab9d39a64 -r 4fb8cdf6ae01 CAR.cpp
--- a/CAR.cpp	Mon Apr 07 15:31:38 2014 +0000
+++ b/CAR.cpp	Mon Apr 07 15:32:48 2014 +0000
@@ -110,6 +110,8 @@
     osEvent evt = mail_box.get(10);
     CAR_MAIL *mail = (CAR_MAIL*)evt.value.p;
     if (evt.status == osEventMail) {
+            int A = mail->size();
+            printf("\n %i @ \n\r",A);
             printf("\nAverage_Speed: %i MPH\n\r"   , mail->Mail_Average_Speed);
             printf("Accelerometer_Value: %.3f %\n\r"     , mail->Mail_Accelerometer_Value);
             printf("Brake_Value: %.3f %\n\r", mail->Mail_Brake_Value);