MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / statFile

Method statFile

GGEasy/gcode/gcfile.cpp:560–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560void File::statFile()
561{
562 if (toolType() == Tool::Laser) {
563 QString str(Settings::laserStart()); //"G21 G17 G90"); //G17 XY plane
564 m_lines.push_back(str);
565 m_lines.push_back(formated({ g0(), z(0) })); // Z0 for visible in Candle
566 } else {
567 QString str(Settings::start()); //"G21 G17 G90"); //G17 XY plane
568 str.replace(QRegularExpression("S\\?"), formated({ speed(spindleSpeed()) }));
569 m_lines.push_back(str);
570 m_lines.push_back(formated({ g0(), z(App::project()->safeZ()) })); //HomeZ
571 }
572}
573
574void File::endFile()
575{

Callers 1

Calls 3

safeZMethod · 0.80
QRegularExpressionClass · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected