|
@@ -93,6 +93,8 @@ typedef struct {
|
|
bool use_advance_lead;
|
|
bool use_advance_lead;
|
|
unsigned long abs_adv_steps_multiplier8; // Factorised by 2^8 to avoid float
|
|
unsigned long abs_adv_steps_multiplier8; // Factorised by 2^8 to avoid float
|
|
#endif
|
|
#endif
|
|
|
|
+
|
|
|
|
+ uint8_t sdlen;
|
|
} block_t;
|
|
} block_t;
|
|
|
|
|
|
#ifdef LIN_ADVANCE
|
|
#ifdef LIN_ADVANCE
|
|
@@ -111,12 +113,12 @@ void plan_init();
|
|
// millimaters. Feed rate specifies the speed of the motion.
|
|
// millimaters. Feed rate specifies the speed of the motion.
|
|
|
|
|
|
#ifdef ENABLE_AUTO_BED_LEVELING
|
|
#ifdef ENABLE_AUTO_BED_LEVELING
|
|
-void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder);
|
|
|
|
|
|
+void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder, uint8_t sdlen = 0);
|
|
|
|
|
|
// Get the position applying the bed level matrix if enabled
|
|
// Get the position applying the bed level matrix if enabled
|
|
vector_3 plan_get_position();
|
|
vector_3 plan_get_position();
|
|
#else
|
|
#else
|
|
-void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder);
|
|
|
|
|
|
+void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t &extruder, uint8_t sdlen = 0);
|
|
//void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t &extruder);
|
|
//void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t &extruder);
|
|
#endif // ENABLE_AUTO_BED_LEVELING
|
|
#endif // ENABLE_AUTO_BED_LEVELING
|
|
|
|
|
|
@@ -217,3 +219,5 @@ extern uint8_t planner_queue_min();
|
|
// Diagnostic function: Reset the minimum planner segments.
|
|
// Diagnostic function: Reset the minimum planner segments.
|
|
extern void planner_queue_min_reset();
|
|
extern void planner_queue_min_reset();
|
|
#endif /* PLANNER_DIAGNOSTICS */
|
|
#endif /* PLANNER_DIAGNOSTICS */
|
|
|
|
+
|
|
|
|
+extern uint16_t planner_calc_sd_length();
|