Skip to content

Commit

Permalink
- tune a little bit GYRO_SCALE for ITG3050
Browse files Browse the repository at this point in the history
git-svn-id: http://multiwii.googlecode.com/svn/trunk/MultiWii_shared@1722 02679b44-d973-9852-f2fa-63770883b36c
  • Loading branch information
dubusal committed Nov 4, 2014
1 parent b87c228 commit 405f1d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sensors.h
Expand Up @@ -51,7 +51,10 @@ void i2c_read_reg_to_buf(uint8_t add, uint8_t reg, uint8_t *buf, uint8_t size);
#define ACC_VelScale (9.80665f / 10000.0f / ACC_1G)

// GYRO SCALE: we ignore the last 2 bits and convert it for rad/s
#if defined(ITG3050) || defined(MPU6050) || defined(MPU3050)
#if defined(ITG3050)
#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)
#endif
#if defined(MPU6050) || defined(MPU3050)
#define GYRO_SCALE (4 / 16.4 * PI / 180.0 / 1000000.0) //16.4 LSB = 1 deg/s
#endif
#if defined(ITG3200)
Expand Down

0 comments on commit 405f1d0

Please sign in to comment.