From 295e9da1bac6598d91efeba10b0302fdee19ac0d Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 24 Aug 2012 02:16:26 +0200 Subject: Added required scalings, added gyro to MPU6000 test, changed sensors app to read from new drivers --- apps/drivers/drv_mag.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/drivers/drv_mag.h') diff --git a/apps/drivers/drv_mag.h b/apps/drivers/drv_mag.h index a59291778..f87cb7704 100644 --- a/apps/drivers/drv_mag.h +++ b/apps/drivers/drv_mag.h @@ -52,10 +52,16 @@ * Output values are in gauss. */ struct mag_report { + uint64_t timestamp; float x; float y; float z; - uint64_t timestamp; + float range_ga; + float scaling; + + uint16_t x_raw; + uint16_t y_raw; + uint16_t z_raw; }; /** mag scaling factors; Vout = (Vin * Vscale) + Voffset */ -- cgit v1.2.3