Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bollos00 authored and g3force committed Jan 3, 2024
1 parent eeccdb6 commit b49a694
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,10 @@ void MainWindow::update()
{
const int index = glwidget->ssl->robotIndex(i, BLUE-1);

if(index == -1 ||
glwidget->ssl->robots[index] == nullptr)
if(index == -1 || glwidget->ssl->robots[index] == nullptr)
continue;

glwidget->ssl->robots[index]->resetSpeeds();
// glwidget->ssl->robots[index]->kicker->setRoller(0);
// glwidget->ssl->robots[index]->kicker->kick(0, 0);
}
}
// Stops yellow robots from moving if no package has been received for 1 second
Expand All @@ -436,13 +433,10 @@ void MainWindow::update()
{
const int index = glwidget->ssl->robotIndex(i, YELLOW-1);

if(index == -1 ||
glwidget->ssl->robots[index] == nullptr)
if(index == -1 || glwidget->ssl->robots[index] == nullptr)
continue;

glwidget->ssl->robots[index]->resetSpeeds();
// glwidget->ssl->robots[index]->kicker->setRoller(0);
// glwidget->ssl->robots[index]->kicker->kick(0, 0);
}
}
}
Expand Down

0 comments on commit b49a694

Please sign in to comment.