Skip to content

Commit

Permalink
Fixed merge to work with 16 bit again
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrbrtz committed Feb 7, 2016
1 parent 6102886 commit 34a85e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Arduino/Razor_AHRS/Sensors.ino
Expand Up @@ -3,9 +3,9 @@
// I2C code to read the sensors

// Sensor I2C addresses
#define ACCEL_ADDRESS ((uint16_t) 0x53) // 0x53 = 0xA6 / 2
#define MAGN_ADDRESS ((uint16_t) 0x1E) // 0x1E = 0x3C / 2
#define GYRO_ADDRESS ((uint16_t) 0x68) // 0x68 = 0xD0 / 2
#define ACCEL_ADDRESS ((int16_t) 0x53) // 0x53 = 0xA6 / 2
#define MAGN_ADDRESS ((int16_t) 0x1E) // 0x1E = 0x3C / 2
#define GYRO_ADDRESS ((int16_t) 0x68) // 0x68 = 0xD0 / 2

// Arduino backward compatibility macros
#if ARDUINO >= 100
Expand Down

1 comment on commit 34a85e3

@ChrisLongub
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello ptrbrtz,

Im using your razor's firmware and, for my personal use, i changed your firmware (output datas) to receive AccX, AccY, AccZ, Yaw, Pitch, Roll, MagnX, magnY, magnZ in one line with 5Hz sampling. And i have some nan-issue on yaw,pitch,roll after 20h of acquisition.

Do you have an idea for what razor work fine for some hours and send nan after ? And i don't know if i must modify type "int" to "int16_t" as Jewang. I use Beaglebone Black (debian) Rx/Tx pin for communication.
If you want i can send you the piece of code that i modified for output.
(Sorry for my english)

Lot of thanks for help and firmware.

Regards, Christophe.

Please sign in to comment.