MorningRope
MorningRope copied to clipboard
Calculation for TCOOLTHRS
Hi,
Sorry for opening an issue when it's not one, I have a question about this line https://github.com/Valar-Systems/MorningRope/blob/b9655630370ad189113ce66e0d19736aa7dc62da/firmware/production/Memory.h#L11C1-L11C70
int tcools = (3089838.00 * pow(float(max_speed), -1.00161534)) * 1.5;
You are doing this calculation for finding the TCOOLTHRS for the stepper driver depending on max_speed, however I have a hard time figuring where those numbers come from. Looking at the TMC2209 datasheet, nothing obvious jumps to my eyes either.
Would you be able to explain where the formula comes from ?
Thanks