Skip to content

Commit

Permalink
Sync unload length adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZeroBeast committed Sep 25, 2019
1 parent 0149a3d commit bb73859
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


#define FW_VERSION 300 // example: 103 means version 1.0.3
#define FW_BUILDNR 352 // number of commits in 'master'
#define FW_BUILDNR 354 // number of commits in 'master'

#define WAKE_TIMER 300000 // 5m

Expand Down Expand Up @@ -145,7 +145,7 @@
#define TYPE_0_FEED_SPEED_PUL 760 // S/S
#define TYPE_0_L2ExStageOne 350 // S/S
#define TYPE_0_L2ExStageTwo 440 // S/S
#define TYPE_0_UnloadSpeed 855 // S/S
#define TYPE_0_UnloadSpeed 750 // S/S
// Flex
#define TYPE_1_MAX_SPPED_PUL 2500 // S/S from 300
#define TYPE_1_ACC_FEED_PUL 1800 // S/S/S
Expand All @@ -163,7 +163,7 @@
#define TYPE_2_FEED_SPEED_PUL 760 // S/S
#define TYPE_2_L2ExStageOne 350 // S/S
#define TYPE_2_L2ExStageTwo 440 // S/S
#define TYPE_2_UnloadSpeed 855 // S/S
#define TYPE_2_UnloadSpeed 750 // S/S

// number of extruders
#define EXTRUDERS 5
Expand Down
4 changes: 2 additions & 2 deletions src/motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ void unload_filament_withSensor(uint8_t extruder)
unsigned char txUFR[5] = {'U', mmPerSecSpeedUpper, mmPerSecSpeedLower, BLK, BLK};
txPayload(txUFR);
delay(40);
moveSmooth(AX_PUL, -(70*AX_PUL_STEP_MM_Ratio), filament_lookup_table[8][filament_type[extruder]],
moveSmooth(AX_PUL, -(20*AX_PUL_STEP_MM_Ratio), filament_lookup_table[8][filament_type[extruder]],
false, false, GLOBAL_ACC);
if (moveSmooth(AX_PUL, ((BOWDEN_LENGTH - 150) * -1),
if (moveSmooth(AX_PUL, ((BOWDEN_LENGTH -(20*AX_PUL_STEP_MM_Ratio)) * -1),
filament_lookup_table[0][filament_type[extruder]], false, false,
filament_lookup_table[1][filament_type[extruder]], true) == MR_Success) goto loop;
if (filament_type[extruder] == 1) unloadFINDACheckSteps = -5000;
Expand Down

0 comments on commit bb73859

Please sign in to comment.