Skip to content

Commit

Permalink
block marker is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 13, 2024
1 parent 0109cd7 commit 96a04bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions Marlin/src/module/ft_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ constexpr uint32_t BATCH_SIDX_IN_WINDOW = (FTM_WINDOW_SIZE) - (FTM_BATCH_SIZE);

// Public functions.

static bool markBlockStart = false;

// Controller main, to be invoked from non-isr task.
void FTMotion::loop() {

Expand Down Expand Up @@ -145,7 +143,6 @@ void FTMotion::loop() {
continue;
}
loadBlockData(stepper.current_block);
markBlockStart = true;
blockProcRdy = true;
// Some kinematics track axis motion in HX, HY, HZ
#if ANY(CORE_IS_XY, CORE_IS_XZ, MARKFORGED_XY, MARKFORGED_YX)
Expand Down Expand Up @@ -806,12 +803,6 @@ void FTMotion::convertToSteps(const uint32_t idx) {
// Init all step/dir bits to 0 (defaulting to reverse/negative motion)
cmd = 0;

// Mark the start of a new block
if (markBlockStart) {
cmd = _BV(FT_BIT_START);
markBlockStart = false;
}

// Accumulate the errors for all axes
err_P += delta;

Expand Down
1 change: 0 additions & 1 deletion Marlin/src/module/ft_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ typedef struct XYZEarray<float, FTM_BATCH_SIZE> xyze_trajectoryMod_t;

// TODO: Convert ft_command_t to a struct with bitfields instead of using a primitive type
enum {
FT_BIT_START,
LIST_N(DOUBLE(LOGICAL_AXES),
FT_BIT_DIR_E, FT_BIT_STEP_E,
FT_BIT_DIR_X, FT_BIT_STEP_X, FT_BIT_DIR_Y, FT_BIT_STEP_Y, FT_BIT_DIR_Z, FT_BIT_STEP_Z,
Expand Down

0 comments on commit 96a04bc

Please sign in to comment.