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
Diff: ACS.cpp
- Revision:
- 59:0fc0bfafaa9f
- Parent:
- 58:c4203e162d12
- Child:
- 60:bd1498f03319
--- a/ACS.cpp Sun Sep 04 18:05:31 2016 +0000 +++ b/ACS.cpp Sun Sep 04 19:06:02 2016 +0000 @@ -102,7 +102,7 @@ {return 0x00; } float div=max-min;div=(255.0/div);val=((val-min)*div); - printf("\n\n\n\rthe algo value is %d",val); + //printf("\n\n\n\rthe algo value is %d",val); return (uint8_t)val; } @@ -885,7 +885,8 @@ event = (int)status; - if(ACS_ATS_STATUS&0xC0 == 0x40) + //if(ACS_ATS_STATUS&0xC0 == 0x40) + if(1) { ATS1_EVENT_STATUS_RGTR = (uint8_t)event; } @@ -914,7 +915,8 @@ sentral = (int) status; - if(ACS_ATS_STATUS&0xC0 == 0x40) + // if(ACS_ATS_STATUS&0xC0 == 0x40) + if(1) { ATS1_SENTRAL_STATUS_RGTR = (uint8_t)sentral; } @@ -1007,7 +1009,8 @@ error = (int)status; - if(ACS_ATS_STATUS&0xC0 == 0x40) + //if(ACS_ATS_STATUS&0xC0 == 0x40) + if(1) { ATS1_ERROR_RGTR = (uint8_t)error; } @@ -2072,7 +2075,7 @@ if(phase_TR_z) ACS_TR_Z_PWM = float_to_uint8(-1,1,PWM3); else - ACS_TR_Z_PWM = float_to_uint8(-1,1,-PWM2); + ACS_TR_Z_PWM = float_to_uint8(-1,1,-PWM3); //-----------------------------------------exiting the function-----------------------------------//