diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-07-03 15:34:29 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-07-03 15:35:28 +0200 |
commit | 0f390b743634ef4cdda03da8cb3f175524d59bd0 (patch) | |
tree | 829dd7907fdf11190cb8b153d76bab0a3e8d1c1a /itg3200.h | |
parent | 1a8771c5d0e23fb91cb926614933405f39049d63 (diff) |
Removed old stuff.
Diffstat (limited to 'itg3200.h')
-rw-r--r-- | itg3200.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/itg3200.h b/itg3200.h deleted file mode 100644 index 90cc4b3..0000000 --- a/itg3200.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef ITG3200_H -#define ITG3200_H - -#include "i2csensor.h" - -class ITG3200 : public I2CSensor { - public: - int16_t x, y, z; - - void init() { - i2c_address = 0x68; - write(0x3e, 0x03); // Select clock reference. - write(0x16, 0x18 | 0x02); // 2000 deg/sec range, 98 Hz bandwidth. - } - - void update() { - read(0x1d, 6); - x = (rxdata[0] << 8 | rxdata[1]) - -50; - y = (rxdata[2] << 8 | rxdata[3]) - 36; - z = (rxdata[4] << 8 | rxdata[5]) - 2; - } -}; - -#endif |