diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-27 00:21:25 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-27 00:21:25 +0200 |
commit | 8e4c78cd2d74eb7cba5678772852a15f04b31b6e (patch) | |
tree | 88f2b46048686621882f82c0f4c1971f149ab536 /src/modules/sensors | |
parent | 5c9c058adffbf879f739002d76d992deac203049 (diff) | |
download | px4-firmware-8e4c78cd2d74eb7cba5678772852a15f04b31b6e.tar.gz px4-firmware-8e4c78cd2d74eb7cba5678772852a15f04b31b6e.tar.bz2 px4-firmware-8e4c78cd2d74eb7cba5678772852a15f04b31b6e.zip |
Load all GCS-required params
Diffstat (limited to 'src/modules/sensors')
-rw-r--r-- | src/modules/sensors/sensors.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 16e766646..aeb550fe9 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -624,13 +624,15 @@ Sensors::Sensors() : // These are parameters for which QGroundControl always expects to be returned in a list request. // We do a param_find here to force them into the list. - param_find("RC_CHAN_CNT"); - param_find("CAL_MAG0_ID"); - param_find("CAL_MAG1_ID"); - param_find("CAL_MAG2_ID"); - param_find("CAL_MAG0_ROT"); - param_find("CAL_MAG1_ROT"); - param_find("CAL_MAG2_ROT"); + (void)param_find("RC_CHAN_CNT"); + (void)param_find("RC_TH_USER"); + (void)param_find("CAL_MAG0_ID"); + (void)param_find("CAL_MAG1_ID"); + (void)param_find("CAL_MAG2_ID"); + (void)param_find("CAL_MAG0_ROT"); + (void)param_find("CAL_MAG1_ROT"); + (void)param_find("CAL_MAG2_ROT"); + (void)param_find("SYS_PARAM_VER"); /* fetch initial parameter values */ parameters_update(); |