aboutsummaryrefslogtreecommitdiff
path: root/apps/drivers/drv_mag.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/drivers/drv_mag.h')
-rw-r--r--apps/drivers/drv_mag.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/drivers/drv_mag.h b/apps/drivers/drv_mag.h
index fe1addaeb..a59291778 100644
--- a/apps/drivers/drv_mag.h
+++ b/apps/drivers/drv_mag.h
@@ -48,6 +48,8 @@
/**
* mag report structure. Reads from the device must be in multiples of this
* structure.
+ *
+ * Output values are in gauss.
*/
struct mag_report {
float x;
@@ -99,4 +101,10 @@ ORB_DECLARE(sensor_mag);
/** set the mag scaling constants to the structure pointed to by (arg) */
#define MAGIOCSSCALE _MAGIOC(5)
+/** copy the mag scaling constants to the structure pointed to by (arg) */
+#define MAGIOCGSCALE _MAGIOC(6)
+
+/** perform self-calibration, update scale factors to canonical units */
+#define MAGIOCCALIBRATE _MAGIOC(7)
+
#endif /* _DRV_MAG_H */