From 26d2c9f2ca11af7782bd6df7114ea2f789bf0d4c Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Sat, 22 Jan 2022 15:00:37 +0100 Subject: [PATCH] Fix SG_thrs and tcoolthrs parameters --- src/config/config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.h b/src/config/config.h index 9499579..2eb4a04 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -178,7 +178,7 @@ static constexpr AxisConfig idler = { .iHold = 23, /// 398mA .stealth = false, .stepsPerUnit = (200 * 16 / 360.), - .sg_thrs = 8, + .sg_thrs = 5, }; /// Idler motion limits @@ -212,7 +212,7 @@ static constexpr U_deg_s idlerFeedrate = 300._deg_s; // static constexpr int8_t tmc2130_sg_thrs = 3; // static_assert(tmc2130_sg_thrs >= -64 && tmc2130_sg_thrs <= 63, "tmc2130_sg_thrs out of range"); -static constexpr uint32_t tmc2130_coolStepThreshold = 5000; ///< step-based 20bit uint +static constexpr uint32_t tmc2130_coolStepThreshold = 450; ///< step-based 20bit uint static_assert(tmc2130_coolStepThreshold <= 0xfffff, "tmc2130_coolStepThreshold out of range"); static constexpr uint32_t tmc2130_PWM_AMPL = 240;