Fix SG_thrs and tcoolthrs parameters

pull/154/head
Alex Voinea 2022-01-22 15:00:37 +01:00 committed by DRracer
parent f9addb0d7a
commit 26d2c9f2ca
1 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ static constexpr AxisConfig idler = {
.iHold = 23, /// 398mA .iHold = 23, /// 398mA
.stealth = false, .stealth = false,
.stepsPerUnit = (200 * 16 / 360.), .stepsPerUnit = (200 * 16 / 360.),
.sg_thrs = 8, .sg_thrs = 5,
}; };
/// Idler motion limits /// 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 constexpr int8_t tmc2130_sg_thrs = 3;
// static_assert(tmc2130_sg_thrs >= -64 && tmc2130_sg_thrs <= 63, "tmc2130_sg_thrs out of range"); // 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_assert(tmc2130_coolStepThreshold <= 0xfffff, "tmc2130_coolStepThreshold out of range");
static constexpr uint32_t tmc2130_PWM_AMPL = 240; static constexpr uint32_t tmc2130_PWM_AMPL = 240;