drv_mag: added devtypes for magnetometers

This commit is contained in:
Andrew Tridgell
2014-07-08 21:09:26 +10:00
committed by Lorenz Meier
parent 93d444d1aa
commit a2739707bb
+7
View File
@@ -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
*/