From 1fac8a7a7a1ef61dfc865b228cde25e6a8fcfa63 Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Wed, 20 Dec 2023 13:32:01 +0100 Subject: [PATCH] Finalize last TODO with must_stop --- libs/BehaviorKit/source/behaviors/AutochargeSeal.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/BehaviorKit/source/behaviors/AutochargeSeal.cpp b/libs/BehaviorKit/source/behaviors/AutochargeSeal.cpp index 91f658074a..db7f1a696b 100644 --- a/libs/BehaviorKit/source/behaviors/AutochargeSeal.cpp +++ b/libs/BehaviorKit/source/behaviors/AutochargeSeal.cpp @@ -24,11 +24,10 @@ auto AutochargeSeal::convertToPwmFrom(float angle) const -> float void AutochargeSeal::run() { - must_stop = true; // TODO: Update for UT - - do { + must_stop = false; + while (!must_stop) { loop(); - } while (!must_stop); + } } void AutochargeSeal::loop()