trabalho

Dependencies:   X_NUCLEO_IKS01A1 mbed-rtos mbed

Fork of HelloWorld_IKS01A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
stwykd
Date:
Sat May 07 19:17:45 2016 +0000
Parent:
22:e36f91afc0aa
Child:
24:527fdf64cbb0
Commit message:
Update log in MailBox

Changed in this revision

expansionBoard.cpp Show annotated file Show diff for this revision Revisions of this file
mailBox.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/expansionBoard.cpp	Sat May 07 17:56:22 2016 +0000
+++ b/expansionBoard.cpp	Sat May 07 19:17:45 2016 +0000
@@ -12,7 +12,7 @@
 static TempSensor *temp_sensor1 = mems_expansion_board->ht_sensor;
 static TempSensor *temp_sensor2 = mems_expansion_board->pt_sensor;
 
-class ExansionBoard {
+class ExpansionBoard {
     /* Retrieve the composing elements of the expansion board */
     void readIDs(){
         uint8_t id;
--- a/mailBox.cpp	Sat May 07 17:56:22 2016 +0000
+++ b/mailBox.cpp	Sat May 07 19:17:45 2016 +0000
@@ -1,5 +1,6 @@
 #include "mbed.h"
 #include "rtos.h"
+#include "main.cpp"
  
  class MailBox{
  
@@ -27,12 +28,7 @@
             log->accelerometer = newLog.accelerometer;
             log->gyroscope = newLog.gyroscope;
             log->magnetometer = newLog.magnetometer;
-            //    log->dd;
-            ////   log->mm;
-            //     log->yyyy;
-            //  log->hh;
-            //   log->min;
-            //  log->ss;
+            log->ascTime(&t);
 
             mail_box.put(log);
             Thread::wait(1000);