Enabled arcs render after adapting OpenCNCPilot code.

Started porting iosender to C++
This commit is contained in:
2023-05-16 09:18:06 +03:00
parent c05a6a1ad2
commit 42aefe8ed8
23 changed files with 2200 additions and 18 deletions
+48
View File
@@ -0,0 +1,48 @@
#pragma once
#include <vector>
#include "gcode.h"
namespace iosender {
class CoordinateSystem {
};
class Tool {
};
class Machine {
public:
void Reset() {
// // Sync with controller
// if (GrblInfo.IsGrblHAL) {
// GrblParserState.Get();
// GrblWorkParameters.Get();
// } else {
// GrblParserState.Get(true);
// }
// coordinateSystems.Clear();
// for (CoordinateSystem c : GrblWorkParameters.CoordinateSystems) {
// coordinateSystems.Add(c);
// }
}
protected:
double rpm_ = 0;
bool isRelative = false;
int _tool = 0;
double offsets[9];
double origin[9];
double scaleFactors[9];
double toolOffsets[9];
std::vector<CoordinateSystem> coordinateSystems;
std::vector<Tool> toolTable;
Point6D machinePos;
private:
};
}