aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/drv_accel.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/drivers/drv_accel.h')
-rw-r--r--apps/drivers/drv_accel.h11
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 */