ACS data acq changed completely. Tested and working. Deals all faults.

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of QM_BAE_review_1 by Team Fox

Revision:
15:e09aaaccf134
Parent:
13:fb7facaf308b
Child:
16:cc77770d787f
--- a/ACS.cpp	Thu Apr 14 09:34:06 2016 +0000
+++ b/ACS.cpp	Tue Apr 19 21:27:07 2016 +0000
@@ -421,7 +421,7 @@
                 gyro_data[i]=(float)bit_data;
                 gyro_data[i]=gyro_data[i]/senstivity_gyro;
                 gyro_data[i]+=gyro_error[i];
-    //            pc_acs.printf("%f\t",gyro_data[i]);
+               // pc_acs.printf("%f\t",gyro_data[i]);
             }
        //     pc_acs.printf("\nMag Values:\n");
             for(int i=0; i<3; i++) {
@@ -430,7 +430,7 @@
                 mag_data[i]=(float)bit_data;
                 mag_data[i]=mag_data[i]/senstivity_mag;
                 mag_data[i]+=mag_error[i];
-      //          pc_acs.printf("%f\t",mag_data[i]);
+                //pc_acs.printf("%f\t",mag_data[i]);
             }
             for(int i=0; i<3; i++) {
                // data[i]=gyro_data[i];