Team Fox / Mbed 2 deprecated BAE_CODE_MARCH_2017

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of workinQM_5thJan_azad by Team Fox

Files at this revision

API Documentation at this revision

Comitter:
Bragadeesh153
Date:
Mon Mar 06 19:18:56 2017 +0000
Parent:
99:df6f43921af4
Commit message:
sw_TM

Changed in this revision

ACS.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ACS.cpp	Fri Feb 17 15:39:16 2017 +0000
+++ b/ACS.cpp	Mon Mar 06 19:18:56 2017 +0000
@@ -1836,8 +1836,8 @@
         
         if(( (ACS_ATS_STATUS & 0xC0) == 0x00))
     {
-        ATS2_SW_ENABLE = 1;
-        ATS1_SW_ENABLE = 0;
+        ATS2_SW_ENABLE = 0;
+        ATS1_SW_ENABLE = 1;
         wait_ms(10);
         acq = SENSOR_DATA_ACQ();
         if(acq == 3)
@@ -2008,8 +2008,8 @@
     
     if(( (ACS_ATS_STATUS & 0x0C) == 0x00))
         {
-            ATS1_SW_ENABLE = 1;
-            ATS2_SW_ENABLE = 0;
+            ATS1_SW_ENABLE = 0;
+            ATS2_SW_ENABLE = 1;
             wait_ms(10);
             acq = SENSOR_DATA_ACQ();                           //make ATS2 on  //acquire data 3 full success, 0 full failure , 1 gyro only , 2 mag only
             if(acq == 3)                                        //Both available read and exit