JEK changes enabling proper recording of IMU/GPS datastrams - 02-APR-2013
Fork of GPS_Incremental by
Diff: ADIS16488.h
- Revision:
- 4:68268737ff89
- Parent:
- 0:c746ee34feae
- Child:
- 6:2a8486283198
--- a/ADIS16488.h Fri Mar 22 01:33:24 2013 +0000 +++ b/ADIS16488.h Fri Mar 29 20:52:24 2013 +0000 @@ -31,21 +31,7 @@ void IMUDataReadyISR(void) { - imuRec.GPSTime = GPSTimemsecs + timeFromPPS.read_us()/1000000.0; - spi.write((int) HIGH_REGISTER[0]); // next read will return results from HIGH_REGITER[0] - for (int i=0; i<6; i++) //read the 6 rate and accel variables - { - wd.pt[1] = (unsigned short)spi.write((int) LOW_REGISTER[i]) ; - if (i<5) // dont this on the last because this was pre-called - { - wd.pt[0] = (unsigned short)spi.write((int) HIGH_REGISTER[i+1]); - } - imuRec.dataWord[i] = wd.dataWord; //data word is a signed long - - } - IMUDataReady = true; - IMURecordCounter++; - + IMUDataReady = true; return; }