Add translate_starting_point function

This commit is contained in:
thewildmage
2023-07-05 21:15:24 -06:00
parent 67989cd134
commit 82abbafbf9
2 changed files with 5 additions and 0 deletions

View File

@@ -358,6 +358,10 @@ void CalibPressureAdvancePattern::starting_point(Vec3d pt)
m_last_pos = m_starting_point;
}
void CalibPressureAdvancePattern::translate_starting_point(const Vec3d displacement)
{
m_starting_point += displacement;
m_last_pos = m_starting_point;
};
CustomGCode::Info CalibPressureAdvancePattern::generate_gcodes()

View File

@@ -202,6 +202,7 @@ public:
double max_layer_z() { return m_height_first_layer + ((m_num_layers - 1) * m_height_layer); };
void starting_point(Vec3d pt);
void translate_starting_point(const Vec3d displacement);
CustomGCode::Info generate_gcodes();
protected: