From b49a69407f4f2534a2d68e77a5ebb56fdfa9be8b Mon Sep 17 00:00:00 2001 From: Bollos00 Date: Tue, 15 Feb 2022 11:43:08 -0300 Subject: [PATCH] review fix --- src/mainwindow.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 56a4ac4c..0460c905 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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 @@ -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); } } }