aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/drv_gyro.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-09-01 19:55:48 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-09-01 19:56:42 +0200
commitcf62c892f9a8016ee238be269ee6c4b674928e7f (patch)
tree6b0f432930c168cd20d362dd5b2358c394ccd184 /apps/drivers/drv_gyro.h
parent1cebdf6fb2724b94bce53f37a516dfc913fae994 (diff)
downloadpx4-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_gyro.h')
-rw-r--r--apps/drivers/drv_gyro.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/drivers/drv_gyro.h b/apps/drivers/drv_gyro.h
index 9c34ac314..5c646f243 100644
--- a/apps/drivers/drv_gyro.h
+++ b/apps/drivers/drv_gyro.h
@@ -52,15 +52,17 @@
*/
struct gyro_report {
uint64_t timestamp;
- float x;
- float y;
- float z;
+ float x; /**< angular velocity in the NED X board axis in rad/s */
+ float y; /**< angular velocity in the NED Y board axis in rad/s */
+ float z; /**< angular velocity in the NED Z board axis in rad/s */
+ float temperature; /**< temperature in degrees celcius */
float range_rad_s;
float scaling;
int16_t x_raw;
int16_t y_raw;
int16_t z_raw;
+ int16_t temperature_raw;
};
/** gyro scaling factors; Vout = (Vin * Vscale) + Voffset */