library for chair for mpu
Revision 2:66660dcf55fb, committed 2018-07-22
- Comitter:
- ryanlin97
- Date:
- Sun Jul 22 18:46:12 2018 +0000
- Parent:
- 1:ff1d286b3cf4
- Commit message:
- updated for mpu9250
Changed in this revision
chair_MPU9250.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ff1d286b3cf4 -r 66660dcf55fb chair_MPU9250.cpp --- a/chair_MPU9250.cpp Sun Jul 22 06:14:48 2018 +0000 +++ b/chair_MPU9250.cpp Sun Jul 22 18:46:12 2018 +0000 @@ -32,13 +32,13 @@ if (whoami == 0x71) { // WHO_AM_I should always be 0x68 usb->printf("MPU9250 is online...\n\r"); - wait(.1); + wait(1); imu->resetMPU9250(); // Reset registers to default in preparation for device calibration imu->calibrateMPU9250(imu->gyroBias, imu->accelBias); // Calibrate gyro and accelerometers, load biases in bias registers imu->initMPU9250(); imu->initAK8963(imu->magCalibration); - wait(.1); + wait(2); } else { usb->printf("Could not connect to MPU9250: \n\r"); usb->printf("%#x \n", whoami);