aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/drv_mag.h
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-08-18 09:22:40 +0200
committerJulian Oes <julian@oes.ch>2013-08-18 09:24:27 +0200
commit408eaf0ad1c8aa87c74f83281de3a7c25fc4b4e6 (patch)
tree5fd9e9674f76ec1a32fe22a0a5ee242b5cceb35b /src/drivers/drv_mag.h
parent061be7f7fed430d1c235809f1e1dce61e8b7aa01 (diff)
downloadpx4-firmware-408eaf0ad1c8aa87c74f83281de3a7c25fc4b4e6.tar.gz
px4-firmware-408eaf0ad1c8aa87c74f83281de3a7c25fc4b4e6.tar.bz2
px4-firmware-408eaf0ad1c8aa87c74f83281de3a7c25fc4b4e6.zip
Add ioctl to find out if mag is external or onboard
Diffstat (limited to 'src/drivers/drv_mag.h')
-rw-r--r--src/drivers/drv_mag.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/drv_mag.h b/src/drivers/drv_mag.h
index 9aab995a1..e95034e8e 100644
--- a/src/drivers/drv_mag.h
+++ b/src/drivers/drv_mag.h
@@ -111,4 +111,7 @@ ORB_DECLARE(sensor_mag);
/** perform self test and report status */
#define MAGIOCSELFTEST _MAGIOC(7)
+/** determine if mag is external or onboard */
+#define MAGIOCGEXTERNAL _MAGIOC(8)
+
#endif /* _DRV_MAG_H */