diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-15 08:52:17 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-15 08:52:17 +0200 |
commit | 642f3426a7aadd9fd345590a4c0881d7e64014a7 (patch) | |
tree | e01f474a4eb4ebf0671ee1fc7b509110bc643dbc /apps/drivers/drv_mag.h | |
parent | 6e4398c30d83a6de5a5085596753388d5b17fc26 (diff) | |
download | px4-firmware-642f3426a7aadd9fd345590a4c0881d7e64014a7.tar.gz px4-firmware-642f3426a7aadd9fd345590a4c0881d7e64014a7.tar.bz2 px4-firmware-642f3426a7aadd9fd345590a4c0881d7e64014a7.zip |
Added mag calibration routine, fixed minor typos without runtime effects
Diffstat (limited to 'apps/drivers/drv_mag.h')
-rw-r--r-- | apps/drivers/drv_mag.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ |