From 32663d6fbe8cf0d831529d0e2a7215855f90bbac Mon Sep 17 00:00:00 2001 From: Wastl Kraus Date: Tue, 29 Jun 2021 22:31:00 +0200 Subject: [PATCH] Update DShot_Lib.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ...make sure 25µs pause between dshot packets is used ....bidir or not --- src/DShot_Lib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DShot_Lib.h b/src/DShot_Lib.h index 5def015..f66285d 100644 --- a/src/DShot_Lib.h +++ b/src/DShot_Lib.h @@ -19,8 +19,8 @@ constexpr auto DSHOT_THROTTLE_MIN = 48; constexpr auto DSHOT_THROTTLE_MAX = 2047; constexpr auto DSHOT_NULL_PACKET = 0b0000000000000000; -constexpr auto DSHOT_PAUSE = (DSHOT_PACKET_LENGTH * 21); // ...21bit is recommended -constexpr auto DSHOT_PAUSE_BIDIRECTIONAL = DSHOT_PACKET_LENGTH; +constexpr auto DSHOT_PAUSE = 65; // ...25µs break between dshot packets +constexpr auto DSHOT_PAUSE_BIDIRECTIONAL = DSHOT_PAUSE; // ...same constexpr auto DSHOT_PAUSE_BIT = 16; constexpr auto F_CPU_RMT = 80000000L;