From 1cdcf8b5ddb4c69cebeaca0eef13b4a2ec74a3fb Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 30 Aug 2015 00:09:49 +0200 Subject: [PATCH] Commander: Update to new sensors combined topic --- src/modules/commander/commander.cpp | 2 +- src/modules/commander/module.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 397083a3b5..0be086f16d 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -1435,7 +1435,7 @@ int commander_thread_main(int argc, char *argv[]) * vertical separation from other airtraffic the operator has to know when the * barometer is inoperational. * */ - if (hrt_elapsed_time(&sensors.baro_timestamp) < FAILSAFE_DEFAULT_TIMEOUT) { + if (hrt_elapsed_time(&sensors.baro_timestamp[0]) < FAILSAFE_DEFAULT_TIMEOUT) { /* handle the case where baro was regained */ if (status.barometer_failure) { status.barometer_failure = false; diff --git a/src/modules/commander/module.mk b/src/modules/commander/module.mk index c16a606711..e4fcea2c69 100644 --- a/src/modules/commander/module.mk +++ b/src/modules/commander/module.mk @@ -55,6 +55,6 @@ MODULE_STACKSIZE = 5000 MAXOPTIMIZATION = -Os ifeq ($(PX4_TARGET_OS),nuttx) -EXTRACXXFLAGS = -Wframe-larger-than=2200 +EXTRACXXFLAGS = -Wframe-larger-than=2400 endif