Log measurements on SD card added on DISCO-L476VG board acceleration, omega, compass & 5 Analog values

Dependencies:   BSP_DISCO_L476VG COMPASS_DISCO_L476VG ConfigFile GYRO_DISCO_L476VG SDFileSystem mbed

Revision:
1:e1f3b4b8b99b
Parent:
0:0861bf46efe4
Child:
2:f53340e49cc0
--- a/main.cpp	Fri Feb 12 20:54:38 2016 +0000
+++ b/main.cpp	Sat Feb 13 14:29:40 2016 +0000
@@ -1,35 +1,53 @@
+
+/* --------------------------------------------------------
+
+                    MothLogger
+                    
+Version 2.0  February 12th 2016 Florent HADDAD
+
+
+Save on SD card 
+    Acceleration, 
+    Gyroscope, 
+    Compass 
+    5 Analog input (PA_0..PA_5 except PA_4)
+
+SdCard connected on :
+    PE_12 to PE_15 for SPI
+    3.3V
+    
+Start/Stop switch between 3V and PD_0
+
+Green led blinks during log
+
+tested up to 100Hz acquisition frequency
+For any unknown reason, may need to be downloaded twice to run properly !
+
+
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+-------------------------------------------------------*/
+
+
 #include "mbed.h"
-
 #include "DefinitionIO.h"
 
- 
-    
 
 
 int main()
 {
     
-    Init();
-  
-    
-    
-  
-    while(1) {
-      Mesures.Update();
+    Init(); //initialization of I/O
+    Mesures.Update(); //required to start safely IOs
     
-      CheckEnreg();
-        // Read acceleremoter and magnetometer values
-        
-        // Display values      
-       /* printf("Acc X = %d\n", lAcc[0]);
-        printf("Acc Y = %d\n", lAcc[1]);
-        printf("Acc Z = %d\n", lAcc[2]);
-        printf("Mag X = %d\n", lMag[0]);
-        printf("Mag Y = %d\n", lMag[1]);
-        printf("Mag Z = %d\n", lMag[2]);
-        printf("\n\r"); */
-      
-      
-        wait(1);
+   
+    while(1) 
+    {
+        //main loop is actually performed in a ticker defined in "DefinitionIO/Init()"
     }
-}
+}
\ No newline at end of file