Skip to content

Commit

Permalink
Issue #162 idler home tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZeroBeast committed Nov 1, 2019
1 parent 1a51a05 commit 4d8e90c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/config.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// config.h - main configuration file


#define FW_VERSION 302 // example: 103 means version 1.0.3
#define FW_BUILDNR 362 // number of commits in 'master'
#define FW_VERSION 303 // example: 103 means version 1.0.3
#define FW_BUILDNR 363 // number of commits in 'master'

#define WAKE_TIMER 300000 // 5m

Expand Down Expand Up @@ -67,7 +67,7 @@
#define CURRENT_HOLDING_NORMAL_LOADING { 1, 10, 40}
#define CURRENT_RUNNING_STEALTH {35, 35, 40}
#define CURRENT_RUNNING_NORMAL {30, 35, 40}
#define CURRENT_HOMING { 1, 35, 35}
#define CURRENT_HOMING { 1, 35, 30}

// speeds and accelerations
#define MAX_SPEED_SEL_DEF_NORMAL 6000 // micro steps
Expand Down
7 changes: 3 additions & 4 deletions src/motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,16 +464,15 @@ MotReturn homeSelectorSmooth()
MotReturn homeIdlerSmooth(bool toLastFilament)
{
uint32_t acc_backup = GLOBAL_ACC;

tmc2130_init(tmc2130_mode); // trinamic, normal
moveSmooth(AX_IDL, -250, MAX_SPEED_IDLER, false);
for (uint8_t c = 2; c > 0; c--) { // touch end 2 times
tmc2130_init(HOMING_MODE); // trinamic, homing
GLOBAL_ACC = GLOBAL_ACC_DEF_NORMAL;
moveSmooth(AX_IDL, 2600, 7000, false, true, 80000);
GLOBAL_ACC = acc_backup;
moveSmooth(AX_IDL, 2600, 6350, false, true);
tmc2130_init(tmc2130_mode); // trinamic, homing
if (c > 1) moveSmooth(AX_IDL, -400, MAX_SPEED_IDLER, false, true, GLOBAL_ACC);
GLOBAL_ACC = acc_backup;
if (c > 1) moveSmooth(AX_IDL, -600, MAX_SPEED_IDLER, false);
delay(50);
}
isIdlerParked = false;
Expand Down

0 comments on commit 4d8e90c

Please sign in to comment.