aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-07-16 11:26:32 +0200
committerAnton Babushkin <anton.babushkin@me.com>2014-07-16 11:26:32 +0200
commitd39d5cc9da99ec17251428d57d232c30564a663b (patch)
treef50ebac913ccd0885df40e15906a1db7420ecf14 /src/modules
parent1dd4282099cbca9c04f23c7b097bad66b3bb4681 (diff)
downloadpx4-firmware-d39d5cc9da99ec17251428d57d232c30564a663b.tar.gz
px4-firmware-d39d5cc9da99ec17251428d57d232c30564a663b.tar.bz2
px4-firmware-d39d5cc9da99ec17251428d57d232c30564a663b.zip
SYS_EXT_MAG parameter added for magnetometer selection
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/systemlib/system_params.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/systemlib/system_params.c b/src/modules/systemlib/system_params.c
index 702e435ac..8cb923620 100644
--- a/src/modules/systemlib/system_params.c
+++ b/src/modules/systemlib/system_params.c
@@ -82,3 +82,14 @@ PARAM_DEFINE_INT32(SYS_USE_IO, 1);
* @group System
*/
PARAM_DEFINE_INT32(SYS_RESTART_TYPE, 2);
+
+/**
+* Set usage of external magnetometer
+*
+* Set to 1 to use external magnetometer instead of internal one.
+*
+* @min 0
+* @max 1
+* @group System
+*/
+PARAM_DEFINE_INT32(SYS_EXT_MAG, 0);