From 08e11bd4dd54286e2f50c562f98cadeb8387140b Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Tue, 27 May 2025 18:38:26 +0200 Subject: [PATCH] Added some winting in main loop because controller was so much spamming the robot's main controller, it couldn't send info to the motion controller so it would make like there was some latency, even if there were not... --- Code Telecommande/src/controller.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Code Telecommande/src/controller.c b/Code Telecommande/src/controller.c index 9d160e2..98cdd57 100644 --- a/Code Telecommande/src/controller.c +++ b/Code Telecommande/src/controller.c @@ -64,6 +64,8 @@ void controller_handle_inputs_outputs(void) udp_server_send(); mutex_exit(&wifi_mutex); + sleep_us(500); + tight_loop_contents(); }