Skip to content

Commit b49a694

Browse files
Bollos00g3force
authored andcommitted
review fix
1 parent eeccdb6 commit b49a694

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/mainwindow.cpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,10 @@ void MainWindow::update()
420420
{
421421
const int index = glwidget->ssl->robotIndex(i, BLUE-1);
422422

423-
if(index == -1 ||
424-
glwidget->ssl->robots[index] == nullptr)
423+
if(index == -1 || glwidget->ssl->robots[index] == nullptr)
425424
continue;
426425

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

439-
if(index == -1 ||
440-
glwidget->ssl->robots[index] == nullptr)
436+
if(index == -1 || glwidget->ssl->robots[index] == nullptr)
441437
continue;
442438

443439
glwidget->ssl->robots[index]->resetSpeeds();
444-
// glwidget->ssl->robots[index]->kicker->setRoller(0);
445-
// glwidget->ssl->robots[index]->kicker->kick(0, 0);
446440
}
447441
}
448442
}

0 commit comments

Comments
 (0)