From f4e6283be63a21bcfc1bcf8f691bd42bd2513445 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Mon, 23 May 2022 18:54:18 +0200 Subject: [PATCH] debug: add debug logs on message receive --- donkeycar/parts/actuator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/donkeycar/parts/actuator.py b/donkeycar/parts/actuator.py index 232c811..dd9bc11 100644 --- a/donkeycar/parts/actuator.py +++ b/donkeycar/parts/actuator.py @@ -141,6 +141,7 @@ class PWMSteering: self.pulse = dk.utils.map_range(angle, self.LEFT_ANGLE, self.RIGHT_ANGLE, self.left_pulse, self.right_pulse) + logger.debug(f"new steering value {angle} -> {self.pulse}") def run(self, angle): self.run_threaded(angle) @@ -197,6 +198,7 @@ class PWMThrottle: else: self.pulse = dk.utils.map_range(throttle, self.MIN_THROTTLE, 0, self.min_pulse, self.zero_pulse) + logger.debug(f"new steering value {throttle} -> {self.pulse}") def run(self, throttle): self.run_threaded(throttle)