1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Fix logging gadget for replay speed setting.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2969 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2011-03-04 23:22:49 +00:00 committed by edouard
parent 63d919dbbe
commit e290d37df5
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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();
}