|
@@ -1,9 +1,8 @@
|
|
|
-
|
|
|
- * first_lay_cal.cpp
|
|
|
- *
|
|
|
- * Created on: Jun 10, 2019
|
|
|
- * Author: marek
|
|
|
- */
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
#include "first_lay_cal.h"
|
|
|
#include "Configuration_prusa.h"
|
|
|
#include "language.h"
|
|
@@ -32,6 +31,7 @@ static const char * const preheat_cmd[] PROGMEM =
|
|
|
cmd_preheat_6,
|
|
|
};
|
|
|
|
|
|
+
|
|
|
void lay1cal_preheat()
|
|
|
{
|
|
|
for (uint8_t i = 0; i < (sizeof(preheat_cmd)/sizeof(preheat_cmd[0])); ++i)
|
|
@@ -73,6 +73,9 @@ static const char * const intro_mmu_cmd[] PROGMEM =
|
|
|
cmd_intro_mmu_12,
|
|
|
};
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
void lay1cal_intro_line(char *cmd_buffer, uint8_t filament)
|
|
|
{
|
|
|
if (mmu_enabled)
|
|
@@ -115,6 +118,7 @@ static const char * const cmd_pre_meander[] PROGMEM =
|
|
|
cmd_pre_meander_7,
|
|
|
};
|
|
|
|
|
|
+
|
|
|
void lay1cal_before_meander()
|
|
|
{
|
|
|
for (uint8_t i = 0; i < (sizeof(cmd_pre_meander)/sizeof(cmd_pre_meander[0])); ++i)
|
|
@@ -171,11 +175,13 @@ static constexpr float count_e(float layer_heigth, float extrusion_width, float
|
|
|
return (extrusion_length * layer_heigth * extrusion_width / (M_PI * pow(1.75, 2) / 4));
|
|
|
}
|
|
|
|
|
|
-static const float width = 0.4;
|
|
|
-static const float length = 20 - width;
|
|
|
-static const float heigth = 0.2;
|
|
|
-static const float extr = count_e(heigth, width, length);
|
|
|
+static const float width = 0.4;
|
|
|
+static const float length = 20 - width;
|
|
|
+static const float heigth = 0.2;
|
|
|
+static const float extr = count_e(heigth, width, length);
|
|
|
|
|
|
+
|
|
|
+
|
|
|
void lay1cal_meander(char *cmd_buffer)
|
|
|
{
|
|
|
for (uint8_t i = 0; i < (sizeof(cmd_meander)/sizeof(cmd_meander[0])); ++i)
|
|
@@ -190,8 +196,8 @@ void lay1cal_meander(char *cmd_buffer)
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
void lay1cal_square(char *cmd_buffer, uint8_t i)
|
|
|
{
|
|
|
const float extr_short_segment = count_e(heigth, width, width);
|