what is meaning of GYRO_SF in EMD v5.1

By pranavab , 11 February 2013

I am using the preprocessor define flag EMPL_NO_64BIT, however there are still some operations that are "out of range." Specifically the GYRO_SF macro uses a long long integer with value 46850825LL.

#define DMP_SAMPLE_RATE (200)
#define GYRO_SF (46850825LL * 200 / DMP_SAMPLE_RATE)

What is the meaning of the GYRO_SF value? How was the value 46850825LL determined for this constant?

The specific problem is the calculation of 46850825LL * 200 exceeds the capacity of a 32-bit value, thus requiring 64-bit operations, which EMPL_NO_64BIT is intended to avoid.

phpbb Topic ID
15057