diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-12-16 16:31:17 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-12-16 16:31:17 +0100 |
commit | 97a94e3b899edf13aa6cf668e71895ef73004d03 (patch) | |
tree | eea30709cffce87c3fdfd34a39174b49bcbd1fea /apps/commander/commander.c | |
parent | df5c09ead1e69d2f3d01bab635c765531a6af1b2 (diff) | |
download | px4-firmware-97a94e3b899edf13aa6cf668e71895ef73004d03.tar.gz px4-firmware-97a94e3b899edf13aa6cf668e71895ef73004d03.tar.bz2 px4-firmware-97a94e3b899edf13aa6cf668e71895ef73004d03.zip |
Fixed MAV_TYPE parameter readout
Diffstat (limited to 'apps/commander/commander.c')
-rw-r--r-- | apps/commander/commander.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/commander/commander.c b/apps/commander/commander.c index 52412e20a..43219c9f9 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -1324,7 +1324,9 @@ int commander_thread_main(int argc, char *argv[]) /* update parameters */ if (!current_status.flag_system_armed) { - current_status.system_type = param_get(_param_sys_type, &(current_status.system_type)); + if (param_get(_param_sys_type, &(current_status.system_type)) != OK) { + warnx("failed setting new system type"); + } /* disable manual override for all systems that rely on electronic stabilization */ if (current_status.system_type == MAV_TYPE_QUADROTOR || |