-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDevice.cs
More file actions
27 lines (24 loc) · 819 Bytes
/
Copy pathDevice.cs
File metadata and controls
27 lines (24 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
namespace gcodeparser
{
public abstract class Device
{
public float mCurrentX;
public float mCurrentY;
public float mCurrentZ;
public void ResetAxis()
{
mCurrentX = 0;
mCurrentY = 0;
mCurrentZ = 0;
}
public abstract void MoveAbsoluteLinear(float x, float y, float z);
public abstract void Print(string s);
public abstract void MoveRawX(int steps);
public abstract void MoveRawY(int steps);
public abstract void MoveRawZ(int steps);
public abstract void Calibrate(float xStepsPerMm, float yStepsPerMm, float zStepsPerMm);
public abstract void SetPosition(float x, float y, float z);
public abstract void SetFeedRate(float mmPerMinute);
}
}