summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-19 22:50:02 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-19 23:07:04 -0800
commit0ca12c36011804eb4b2c3034269bab51ad04a500 (patch)
treec65fa118622154f60572ed54674bebb16ff41b07 /qt-ui/mainwindow.cpp
parent36cb50fb37f8cede4f334b268406ebd55c12ece6 (diff)
downloadsubsurface-0ca12c36011804eb4b2c3034269bab51ad04a500.tar.gz
Collect per tank SAC rate
This is a bit painful, but we basically walk the samples and pick the valid tank from the events. And then we do a simple discrete integration to figure out the mean depth per tank and duration per tank. And then we assemble all that into per tank statistics. Strangely the value calculated here seems slightly higher than one would expect from the overall SAC rate. This inconsistency should be investigated a bit further, but my guess it it's based on the assumption that the DC provided mean depth is possibly more accurate than what we can calculate from the profile. Fixes #284 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index a1c8d290f..1edd8be67 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -437,12 +437,14 @@ void MainWindow::saveSplitterSizes(){
void MainWindow::on_actionPreviousDC_triggered()
{
dc_number--;
+ ui.InfoWidget->updateDiveInfo(selected_dive);
redrawProfile();
}
void MainWindow::on_actionNextDC_triggered()
{
dc_number++;
+ ui.InfoWidget->updateDiveInfo(selected_dive);
redrawProfile();
}