Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of workinQM_5thJan_azad by
Revision 100:54514f9d3de2, committed 2017-03-06
- 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