15 void i2c_writeReg(uint8_t add, uint8_t reg, uint8_t val);
31 #if defined(BMA180) || defined(BMA280) || defined(LIS3LV02) || defined(LSM303DLx_ACC) || defined(LSM330)
41 #if defined(FREEIMUv04)
50 #define ACCZ_25deg (int16_t)(ACC_1G * 0.90631) // 0.90631 = cos(25deg) (cos(theta) of accZ comparison)
51 #define ACC_VelScale (9.80665f / 10000.0f / ACC_1G)
55 #define GYRO_SCALE (4 / 16.0 * PI / 180.0 / 1000000.0) //16.4 LSB = 1 deg/s -- 16.0 apparently gives beter results than 16.4 (empirical)
57 #if defined(MPU6050) || defined(MPU3050)
58 #define GYRO_SCALE (4 / 16.4 * PI / 180.0 / 1000000.0) //16.4 LSB = 1 deg/s
61 #define GYRO_SCALE (4 / 14.375 * PI / 180.0 / 1000000.0) //ITG3200 14.375 LSB = 1 deg/s
63 #if defined(L3G4200D) || defined(LSM330) || defined(LSM9DS0)
64 #define GYRO_SCALE ((4.0f * PI * 70.0f)/(1000.0f * 180.0f * 1000000.0f)) // 70 milli deg/s /digit => 1 deg/s = 1000/70 LSB
67 #define GYRO_SCALE (1.0f/200e6f)
void initSensors()
Definition: Sensors.cpp:1977
void Sonar_update()
Definition: Sensors.cpp:1964
void i2c_stop(void)
Definition: Sensors.cpp:103
uint8_t Baro_update()
Definition: Sensors.cpp:756
tuple buf
Definition: DeviceGeneric.py:119
void ACC_getADC()
Definition: Sensors.cpp:1658
void i2c_rep_start(uint8_t address)
Definition: Sensors.cpp:97
tuple size
Definition: unpack-test.py:15
tuple data
Definition: ser-mon-AS7265X.py:40
void Gyro_getADC()
Definition: Sensors.cpp:1695
uint8_t i2c_readReg(uint8_t add, uint8_t reg)
Definition: Sensors.cpp:145
void i2c_writeReg(uint8_t add, uint8_t reg, uint8_t val)
Definition: Sensors.cpp:138
void i2c_write(uint8_t data)
Definition: Sensors.cpp:108
uint8_t i2c_readNak()
Definition: Sensors.cpp:118
uint8_t i2c_readAck()
Definition: Sensors.cpp:113
void i2c_read_reg_to_buf(uint8_t add, uint8_t reg, uint8_t *buf, uint8_t size)
Definition: Sensors.cpp:125