明石高専ロボ研 mbedライブラリ
Dependents: MDD_L432KC USB2RS485 pathtracking odometry ... more
Diff: gy521.cpp
- Revision:
- 4:39ef4d91dc34
- Parent:
- 3:28c77df7c0b6
diff -r 28c77df7c0b6 -r 39ef4d91dc34 gy521.cpp --- a/gy521.cpp Mon Jan 06 11:06:26 2020 +0000 +++ b/gy521.cpp Fri Jul 24 14:12:15 2020 +0000 @@ -2,20 +2,6 @@ const double GY521_LSB_MAP[4] = {131, 65.5, 32.8, 16.4}; const unsigned int dev_id = 0x68 << 1; -enum GY521RegisterMap { - WHO_AM_I = 0x75, - PWR_MGMT_1 = 0x6B, - LPF = 0x1A, - FS_SEL = 0x1B, - AFS_SEL = 0x1C, - ACCEL_XOUT_H = 0x3B, - ACCEL_YOUT_H = 0x3D, - ACCEL_ZOUT_H = 0x3F, - //TEMPERATURE = 0x41, - //GYRO_XOUT_H = 0x43, - //GYRO_YOUT_H = 0x45, - GYRO_ZOUT_H = 0x47 -}; GY521::GY521(I2C &i2c,int bit,int calibration,double user_reg):i2c_(i2c),bit_(bit),calibration_(calibration){ char check;