GCode Anayzer take in account extruder offsets

This commit is contained in:
Enrico Turri 2019-03-05 15:03:56 +01:00
parent 4f122fed70
commit 8a29ec2204
4 changed files with 51 additions and 1 deletions

View file

@ -104,6 +104,9 @@ private:
State m_state;
GCodeReader m_parser;
TypeToMovesMap m_moves_map;
#if ENABLE_ANALYZER_EXTRUDER_OFFSET
std::vector<Vec2d> m_extruder_offsets;
#endif // ENABLE_ANALYZER_EXTRUDER_OFFSET
// The output of process_layer()
std::string m_process_output;
@ -111,6 +114,10 @@ private:
public:
GCodeAnalyzer();
#if ENABLE_ANALYZER_EXTRUDER_OFFSET
void set_extruder_offsets(const std::vector<Vec2d>& extruder_offsets);
#endif // ENABLE_ANALYZER_EXTRUDER_OFFSET
// Reinitialize the analyzer
void reset();