![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
Diff: CAR.cpp
- Revision:
- 3:4fb8cdf6ae01
- Parent:
- 2:707ab9d39a64
--- 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);