From b9d133a007ab4850479361a7df55a739448c10ad Mon Sep 17 00:00:00 2001 From: Wout Rombouts Date: Wed, 3 May 2023 20:14:38 +0200 Subject: [PATCH] s --- Software/threads/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Software/threads/main.py b/Software/threads/main.py index f67986a..20411c1 100644 --- a/Software/threads/main.py +++ b/Software/threads/main.py @@ -172,17 +172,17 @@ def transform_centerangle_to_angle(self, centerangle): ### Controller functions ### def controller_add(self, joy): - logging.debug('Controller connected: ', joy) + logging.debug('Controller connected: ', str(joy)) def controller_remove(self, joy): - logging.debug('Controller disconnected: ', joy) + logging.debug('Controller disconnected: ', str(joy)) # Robot sould stop here or at least continue in a very slow safe mode logging.warning('Controller disconnected, no controls available. Stopping for safety!') self.stop_event.set() def controller_process(self, key): try: - logging.debug("Controller key event: " + key) + logging.debug("Controller key event: " + str(key)) if key.keytype == "Axis" and key.number == 0: # Left joystick, left - right # Steering