More conservative Trinamic DIR delay

See #17323

This makes babystepping more reliable and may improve Trinamic motion overall.

Co-Authored-By: chgi <chgi@users.noreply.github.com>
This commit is contained in:
Scott Lahteine 2020-05-10 18:42:42 -05:00
parent 86c1125380
commit 33127f4476

View file

@ -259,11 +259,10 @@
#endif #endif
/** /**
* Driver Timings * Driver Timings (in nanoseconds)
* NOTE: Driver timing order is longest-to-shortest duration. * NOTE: Driver timing order is longest-to-shortest duration.
* Preserve this ordering when adding new drivers. * Preserve this ordering when adding new drivers.
*/ */
#ifndef MINIMUM_STEPPER_POST_DIR_DELAY #ifndef MINIMUM_STEPPER_POST_DIR_DELAY
#if HAS_DRIVER(TB6560) #if HAS_DRIVER(TB6560)
#define MINIMUM_STEPPER_POST_DIR_DELAY 15000 #define MINIMUM_STEPPER_POST_DIR_DELAY 15000
@ -278,7 +277,7 @@
#elif HAS_DRIVER(A4988) #elif HAS_DRIVER(A4988)
#define MINIMUM_STEPPER_POST_DIR_DELAY 200 #define MINIMUM_STEPPER_POST_DIR_DELAY 200
#elif HAS_TRINAMIC_CONFIG || HAS_TRINAMIC_STANDALONE #elif HAS_TRINAMIC_CONFIG || HAS_TRINAMIC_STANDALONE
#define MINIMUM_STEPPER_POST_DIR_DELAY 20 #define MINIMUM_STEPPER_POST_DIR_DELAY 60
#else #else
#define MINIMUM_STEPPER_POST_DIR_DELAY 0 // Expect at least 10µS since one Stepper ISR must transpire #define MINIMUM_STEPPER_POST_DIR_DELAY 0 // Expect at least 10µS since one Stepper ISR must transpire
#endif #endif