diff options
author | Andrew Tridgell <tridge@samba.org> | 2014-07-08 21:09:26 +1000 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-12 16:25:50 +0200 |
commit | a2739707bb18a1aed0dcc0f809badce606aaed51 (patch) | |
tree | 22608c71d1500d6f5cbd0e5ad52e67dd373effa5 /src/drivers | |
parent | 93d444d1aade59b5e88f41b71c842a00ab950c64 (diff) | |
download | px4-firmware-a2739707bb18a1aed0dcc0f809badce606aaed51.tar.gz px4-firmware-a2739707bb18a1aed0dcc0f809badce606aaed51.tar.bz2 px4-firmware-a2739707bb18a1aed0dcc0f809badce606aaed51.zip |
drv_mag: added devtypes for magnetometers
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/drv_mag.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/drv_mag.h b/src/drivers/drv_mag.h index 06107bd3d..a259ac9c0 100644 --- a/src/drivers/drv_mag.h +++ b/src/drivers/drv_mag.h @@ -81,6 +81,13 @@ struct mag_scale { */ ORB_DECLARE(sensor_mag); + +/* + * mag device types, for _device_id + */ +#define DRV_MAG_DEVTYPE_HMC5883 1 +#define DRV_MAG_DEVTYPE_LSM303D 2 + /* * ioctl() definitions */ |