TMC stepper Initialization May 20, 2024 02:27PM |
Registered: 3 months ago Posts: 3 |
Re: TMC stepper Initialization May 20, 2024 11:32PM |
Admin Registered: 13 years ago Posts: 7,102 |
Re: TMC stepper Initialization May 21, 2024 03:21PM |
Registered: 3 months ago Posts: 3 |
Re: TMC stepper Initialization May 22, 2024 02:24AM |
Admin Registered: 13 years ago Posts: 7,102 |
Re: TMC stepper Initialization May 22, 2024 12:36PM |
Registered: 3 months ago Posts: 3 |
Re: TMC stepper Initialization May 22, 2024 01:21PM |
Admin Registered: 13 years ago Posts: 7,102 |
template void tmc_init(TMCMarlin<TMC5160Stepper, AXIS_LETTER, DRIVER_ID, AXIS_ID> &st, const uint16_t mA, const uint16_t microsteps, const uint32_t hyb_thrs, const bool stealth, const chopper_timing_t &chop_init, const bool interpolate, float hold_multiplier) {
Re: TMC stepper Initialization May 23, 2024 11:53AM |
Registered: 3 months ago Posts: 2 |
void GcodeSuite::M122() { [...] uint8_t enc_status = driver_x.ENC_STATUS(); // access initialized driver x/y/... and show status; that obv. does not work like it is written in the code and I have to figure out how to do this. if (enc_status & 0x01) { SERIAL_ECHOLNPGM("Encoder not ready"); } else { SERIAL_ECHOLNPGM("Encoder ready"); } [...] uint32_t enc_deviation = driver_x.ENC_DEV(); // sth. like this... SERIAL_ECHOLNPGM("deviation enc. x: ") SERIAL_ECHOLN(enc_deviation); [...] }How could I access 'driver_X' (that should be already initialized)?