mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-17 02:52:12 +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:
parent
63d919dbbe
commit
e290d37df5
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user