From e290d37df51e34ce1ce0f16b7ece21a6d07a4bb0 Mon Sep 17 00:00:00 2001 From: edouard Date: Fri, 4 Mar 2011 23:22:49 +0000 Subject: [PATCH] Fix logging gadget for replay speed setting. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2969 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/openpilotgcs/src/plugins/logging/logfile.h | 2 +- ground/openpilotgcs/src/plugins/logging/logginggadgetwidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/logging/logfile.h b/ground/openpilotgcs/src/plugins/logging/logfile.h index 3f51223e3..f9e5216ab 100644 --- a/ground/openpilotgcs/src/plugins/logging/logfile.h +++ b/ground/openpilotgcs/src/plugins/logging/logfile.h @@ -27,7 +27,7 @@ public: bool stopReplay(); public slots: - void setReplaySpeed(int val) { playbackSpeed = pow(10,((double) val)/100); qDebug() << playbackSpeed; }; + void setReplaySpeed(double val) { playbackSpeed = pow(10,(val)/100); qDebug() << playbackSpeed; }; void pauseReplay(); void resumeReplay(); diff --git a/ground/openpilotgcs/src/plugins/logging/logginggadgetwidget.cpp b/ground/openpilotgcs/src/plugins/logging/logginggadgetwidget.cpp index 2d4063b66..f40213148 100644 --- a/ground/openpilotgcs/src/plugins/logging/logginggadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/logging/logginggadgetwidget.cpp @@ -58,7 +58,7 @@ void LoggingGadgetWidget::setPlugin(LoggingPlugin * p) connect(m_logging->playButton, SIGNAL(clicked()), scpPlugin, SLOT(startPlotting())); connect(m_logging->pauseButton,SIGNAL(clicked()),p->getLogfile(),SLOT(pauseReplay())); connect(m_logging->pauseButton, SIGNAL(clicked()), scpPlugin, SLOT(stopPlotting())); - connect(m_logging->playbackSpeed,SIGNAL(valueChanged(int)),p->getLogfile(),SLOT(setReplaySpeed(int))); + connect(m_logging->playbackSpeed,SIGNAL(valueChanged(double)),p->getLogfile(),SLOT(setReplaySpeed(double))); void pauseReplay(); void resumeReplay(); }