Skip to content

Commit

Permalink
Tool representation rotation speed fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Denvi committed Aug 10, 2015
1 parent 4b08f38 commit 43c105f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified bin/grblControl_0.1.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion frmmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ void frmMain::resizeEvent(QResizeEvent *re)
void frmMain::timerEvent(QTimerEvent *te)
{
if (te->timerId() == m_timerToolAnimation.timerId()) {
m_toolDrawer.rotate(-20 * (double)ui->txtSpindleSpeed->value() / 100);
m_toolDrawer.rotate(-40 * (double)(ui->txtSpindleSpeed->value())
/ (ui->txtSpindleSpeed->maximum() - ui->txtSpindleSpeed->minimum()));
// ui->glwVisualizator->update();
} else {
QMainWindow::timerEvent(te);
Expand Down

0 comments on commit 43c105f

Please sign in to comment.