From dd8a95b9fcce45bd5eb43cc92fb87e127bde3e5d Mon Sep 17 00:00:00 2001 From: Tassilo Schweyer Date: Mon, 29 Dec 2025 01:31:57 +0100 Subject: [PATCH] Disable deadtime --- shittyrobot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shittyrobot.py b/shittyrobot.py index 07d2dc7..0f3e2e6 100644 --- a/shittyrobot.py +++ b/shittyrobot.py @@ -52,8 +52,8 @@ MOTOR_A0 = Pin(0, Pin.OUT, drive=Pin.DRIVE_0) MOTOR_A1 = Pin(1, Pin.OUT, drive=Pin.DRIVE_0) MOTOR_B0 = Pin(2, Pin.OUT, drive=Pin.DRIVE_0) MOTOR_B1 = Pin(3, Pin.OUT, drive=Pin.DRIVE_0) -LED_DAT = Pin(6, Pin.OUT, drive=Pin.DRIVE_3) -LED_NP = neopixel.NeoPixel(LED_DAT, 6, timing=1, bpp=4) +#LED_DAT = Pin(6, Pin.OUT, drive=Pin.DRIVE_3) +#LED_NP = neopixel.NeoPixel(LED_DAT, 6, timing=1, bpp=4) #do_connect() @@ -69,10 +69,10 @@ def controlloop(last_start, next_action): if debug: print('CTRL: ', last_start, next_action) - if time.ticks_diff(now, time.ticks_add(last_start, 100000)) < 0: - if debug: - print(' DEADTIME -> ignore') - return last_start + #if time.ticks_diff(now, time.ticks_add(last_start, 100000)) < 0: + # if debug: + # print(' DEADTIME -> ignore') + # return last_start if next_action is None and time.ticks_diff(time.ticks_add(last_start, 601000), now) > 0: if debug: