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:
- 63:55d32e7dcad7
- Parent:
- 60:bd1498f03319
- Child:
- 66:a5d2b8dc6b9e
- Child:
- 68:abeaa67d84f5
--- a/ACS.cpp Fri Oct 28 10:02:40 2016 +0000 +++ b/ACS.cpp Fri Oct 28 11:47:20 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; } @@ -570,6 +570,7 @@ return 0; } + int PARAMETER_TRANSFER_GYRO(int gyro_rng) { @@ -842,6 +843,7 @@ } + int SENSOR_INIT() { /// acs_pc.printf("Entered sensor init\n \r"); @@ -1021,7 +1023,7 @@ PARAMETER_TRANSFER_GYRO(0); // dont set range //PARAMETER of function sets range of gyroscope PARAMETER_TRANSFER_MAG(0); // dont set range //PARAMETER of function sets range of magnetometer - + cmd[0]=SENTRALSTATUS; ack = i2c.write(SLAVE_ADDR,cmd,1); if( ack!=0) @@ -1160,7 +1162,7 @@ event = (int)status; - //if(ACS_ATS_STATUS&0xC0 == 0x40) + //if(ACS_ATS_STATUS&0xC0 == 0x40) if(1) { ATS1_EVENT_STATUS_RGTR = (uint8_t)event; @@ -1190,7 +1192,7 @@ sentral = (int) status; - // if(ACS_ATS_STATUS&0xC0 == 0x40) + //if(ACS_ATS_STATUS&0xC0 == 0x40) if(1) { ATS1_SENTRAL_STATUS_RGTR = (uint8_t)sentral; @@ -1283,7 +1285,7 @@ } error = (int)status; - + //if(ACS_ATS_STATUS&0xC0 == 0x40) if(1) {