Mario Bambagini / Mbed 2 deprecated car_chassis

Dependencies:   Servo mbed-rtos mbed

Revision:
3:bfc20ec72b15
Parent:
2:7dfc8dd6aab3
--- a/main.cpp	Thu Oct 08 13:36:17 2015 +0000
+++ b/main.cpp	Sun Oct 11 21:17:42 2015 +0000
@@ -1,3 +1,5 @@
+//this project implements the body/engine devices
+
 #include "mbed.h"
 #include "car_config.hpp"
 #include "rtos.h"
@@ -6,11 +8,11 @@
 #include "led.hpp"
 #include "body.hpp"
 #include "engine.hpp"
-#include "driver.hpp"
+#include "diag.hpp"
 #include "clock.hpp"
 
 //initialize the system:
-//- single components: body, clock, driver (diagnosis), engine
+//- single components: body, clock, diagnosis, engine
 //- hardware: leds, can
 //- threads
 int init();
@@ -27,7 +29,7 @@
 Thread *th_body;
 Thread *th_can;
 Thread *th_engine;
-Thread *th_driver;
+Thread *th_diag;
 Thread *th_clock;
 
 void init_threads ()
@@ -35,7 +37,7 @@
   th_body = new Thread(thread_body);
   th_engine = new Thread(thread_engine);
   th_can = new Thread(thread_can);
-  th_driver = new Thread(thread_driver);
+  th_diag = new Thread(thread_diag);
   th_clock = new Thread(thread_clock);
 }
 
@@ -43,7 +45,7 @@
 {
   init_body();
   init_clock();
-  init_driver();
+  init_diag();
   init_engine();
 
   //printf("INIT LED\r\n");