diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-01 19:55:48 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-09-01 19:56:42 +0200 |
commit | cf62c892f9a8016ee238be269ee6c4b674928e7f (patch) | |
tree | 6b0f432930c168cd20d362dd5b2358c394ccd184 /apps/drivers/drv_accel.h | |
parent | 1cebdf6fb2724b94bce53f37a516dfc913fae994 (diff) | |
download | px4-firmware-cf62c892f9a8016ee238be269ee6c4b674928e7f.tar.gz px4-firmware-cf62c892f9a8016ee238be269ee6c4b674928e7f.tar.bz2 px4-firmware-cf62c892f9a8016ee238be269ee6c4b674928e7f.zip |
Added temperature measurement, added led system command
Diffstat (limited to 'apps/drivers/drv_accel.h')
-rw-r--r-- | apps/drivers/drv_accel.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/drivers/drv_accel.h b/apps/drivers/drv_accel.h index 55b7a6b2b..6d0c8c545 100644 --- a/apps/drivers/drv_accel.h +++ b/apps/drivers/drv_accel.h @@ -52,14 +52,17 @@ */ struct accel_report { uint64_t timestamp; - float x; - float y; - float z; - float range_m_s2; + float x; /**< acceleration in the NED X board axis in m/s^2 */ + float y; /**< acceleration in the NED Y board axis in m/s^2 */ + float z; /**< acceleration in the NED Z board axis in m/s^2 */ + float temperature; /**< temperature in degrees celsius */ + float range_m_s2; /**< range in m/s^2 (+- this value) */ float scaling; + int16_t x_raw; int16_t y_raw; int16_t z_raw; + int16_t temperature_raw; }; /** accel scaling factors; Vout = (Vin * Vscale) + Voffset */ |