Added required scalings, added gyro to MPU6000 test, changed sensors app to read from new drivers

This commit is contained in:
Lorenz Meier
2012-08-24 02:16:26 +02:00
parent 0e44d3810e
commit 295e9da1ba
5 changed files with 235 additions and 103 deletions
+6 -1
View File
@@ -50,10 +50,15 @@
* structure.
*/
struct accel_report {
uint64_t timestamp;
float x;
float y;
float z;
uint64_t timestamp;
float range_m_s2;
float scaling;
uint16_t x_raw;
uint16_t y_raw;
uint16_t z_raw;
};
/** accel scaling factors; Vout = (Vin * Vscale) + Voffset */