TMCStepper icon indicating copy to clipboard operation
TMCStepper copied to clipboard

can't go from StallGuard to StealthChop.

Open Rezaasghariir opened this issue 4 years ago • 0 comments
trafficstars

hi i can't switch between StallGuard to StealthChop. this my code: switch (_mode) { case TrinamicMode ::StealthChop: grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "StealthChop"); tmcstepper->push(); tmcstepper->en_pwm_mode(true); tmcstepper->pwm_autoscale(true); tmcstepper->diag1_stall(false); break; case TrinamicMode ::CoolStep: grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Coolstep"); tmcstepper->push(); tmcstepper->en_pwm_mode(false); tmcstepper->pwm_autoscale(false); tmcstepper->TCOOLTHRS(NORMAL_TCOOLTHRS); // when to turn on coolstep tmcstepper->THIGH(NORMAL_THIGH); break; case TrinamicMode ::StallGuard: grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "Stallguard"); tmcstepper->push(); tmcstepper->en_pwm_mode(false); tmcstepper->pwm_autoscale(false); tmcstepper->TCOOLTHRS(calc_tstep(homing_feed_rate->get(), 150.0)); tmcstepper->THIGH(calc_tstep(homing_feed_rate->get(), 60.0)); tmcstepper->sfilt(1); tmcstepper->diag1_stall(true); // stallguard i/o is on diag1 tmcstepper->sgt(constrain(axis_settings[_axis_index]->stallguard->get(), -64, 63)); break; default: grbl_msg_sendf(CLIENT_SERIAL, MsgLevel::Info, "TRINAMIC_MODE_UNDEFINED"); } can you help me?

Rezaasghariir avatar Oct 18 '21 17:10 Rezaasghariir