From 642f3426a7aadd9fd345590a4c0881d7e64014a7 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 15 Oct 2012 08:52:17 +0200 Subject: Added mag calibration routine, fixed minor typos without runtime effects --- apps/drivers/drv_mag.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/drivers/drv_mag.h') diff --git a/apps/drivers/drv_mag.h b/apps/drivers/drv_mag.h index 1f5bb998e..88381aaaa 100644 --- a/apps/drivers/drv_mag.h +++ b/apps/drivers/drv_mag.h @@ -99,7 +99,10 @@ ORB_DECLARE(sensor_mag); /** copy the mag scaling constants to the structure pointed to by (arg) */ #define MAGIOCGSCALE _MAGIOC(3) +/** set the measurement range to handle (at least) arg Gauss */ +#define MAGIOCSRANGE _MAGIOC(4) + /** perform self-calibration, update scale factors to canonical units */ -#define MAGIOCCALIBRATE _MAGIOC(4) +#define MAGIOCCALIBRATE _MAGIOC(5) #endif /* _DRV_MAG_H */ -- cgit v1.2.3