From 9a6a3ea641bd3edea9de225e5f24b9c150b3fcc1 Mon Sep 17 00:00:00 2001 From: pixhawk Date: Sat, 11 Sep 2010 10:47:27 +0200 Subject: [PATCH] Minor adjustments to increase execution speed --- qgroundcontrol.pro | 4 ++-- src/uas/UAS.cc | 2 +- src/ui/MainWindow.cc | 12 ++++++++++++ src/ui/linechart/LinechartPlot.h | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/qgroundcontrol.pro b/qgroundcontrol.pro index 76595b4..7168dd2 100644 --- a/qgroundcontrol.pro +++ b/qgroundcontrol.pro @@ -18,8 +18,8 @@ TARGET = qgroundcontrol BASEDIR = . BUILDDIR = build LANGUAGE = C++ -CONFIG += debug_and_release \ - console +CONFIG += release #debug_and_release \ + #console OBJECTS_DIR = $$BUILDDIR/obj MOC_DIR = $$BUILDDIR/moc UI_HEADERS_DIR = src/ui/generated diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 08fecb7..e34ebfd 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -222,7 +222,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) // LOW BATTERY ALARM float chargeLevel = getChargeLevel(); - if (chargeLevel <= 10.0f) + if (chargeLevel <= 20.0f) { startLowBattAlarm(); } diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index ce41602..43a7bba 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -678,6 +678,18 @@ void MainWindow::loadPixhawkView() waypointsDockWidget->show(); } + // HORIZONTAL SITUATION INDICATOR + if (hsiDockWidget) + { + HSIDisplay* hsi = dynamic_cast( hsiDockWidget->widget() ); + if (hsi) + { + hsi->start(); + addDockWidget(Qt::BottomDockWidgetArea, hsiDockWidget); + hsiDockWidget->show(); + } + } + // DEBUG CONSOLE if (debugConsoleDockWidget) { diff --git a/src/ui/linechart/LinechartPlot.h b/src/ui/linechart/LinechartPlot.h index 835c8de..dfa2b9c 100644 --- a/src/ui/linechart/LinechartPlot.h +++ b/src/ui/linechart/LinechartPlot.h @@ -107,7 +107,7 @@ class TimeSeriesData { public: - TimeSeriesData(QwtPlot* plot, QString friendlyName = "data", quint64 plotInterval = 30000, quint64 maxInterval = 0, double zeroValue = 0); + TimeSeriesData(QwtPlot* plot, QString friendlyName = "data", quint64 plotInterval = 10000, quint64 maxInterval = 0, double zeroValue = 0); ~TimeSeriesData(); void append(quint64 ms, double value);