-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added acceleration MCode support to go with https://github.com/jetty8…
…40/G3Firmware MCodes: 201, 203, 204, 205, 206, 207, 208, 209, 215
- Loading branch information
Showing
16 changed files
with
477 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/replicatorg/drivers/commands/SetAccelerationControl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package replicatorg.drivers.commands; | ||
|
||
import replicatorg.drivers.Driver; | ||
import replicatorg.drivers.RetryException; | ||
|
||
public class SetAccelerationControl implements DriverCommand { | ||
|
||
double s; | ||
|
||
public SetAccelerationControl(double s) { | ||
this.s = s; | ||
} | ||
@Override | ||
public void run(Driver driver) throws RetryException { | ||
driver.setAccelerationControl(s); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package replicatorg.drivers.commands; | ||
|
||
import replicatorg.drivers.Driver; | ||
import replicatorg.drivers.RetryException; | ||
|
||
public class SetAdvanceK implements DriverCommand { | ||
|
||
double s; | ||
|
||
public SetAdvanceK(double s) { | ||
this.s = s; | ||
} | ||
@Override | ||
public void run(Driver driver) throws RetryException { | ||
driver.setAdvanceK(s); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package replicatorg.drivers.commands; | ||
|
||
import replicatorg.drivers.Driver; | ||
import replicatorg.drivers.RetryException; | ||
|
||
public class SetAdvancedSettings implements DriverCommand { | ||
|
||
double s, t, x, z; | ||
|
||
public SetAdvancedSettings(double s, double t, double x, double z) { | ||
this.s = s; | ||
this.t = t; | ||
this.x = x; | ||
this.z = z; | ||
} | ||
@Override | ||
public void run(Driver driver) throws RetryException { | ||
driver.setAdvancedSettings(s,t,x,z); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package replicatorg.drivers.commands; | ||
|
||
import replicatorg.drivers.Driver; | ||
import replicatorg.drivers.RetryException; | ||
|
||
public class SetAxisStepsPerMM implements DriverCommand { | ||
|
||
double x, y, z, a; | ||
|
||
public SetAxisStepsPerMM(double x, double y, double z, double a) { | ||
this.x = x; | ||
this.y = y; | ||
this.z = z; | ||
this.a = a; | ||
} | ||
@Override | ||
public void run(Driver driver) throws RetryException { | ||
driver.setAxisStepsPerMM(x,y,z,a); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/replicatorg/drivers/commands/SetDefaultAcceleration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package replicatorg.drivers.commands; | ||
|
||
import replicatorg.drivers.Driver; | ||
import replicatorg.drivers.RetryException; | ||
|
||
public class SetDefaultAcceleration implements DriverCommand { | ||
|
||
double s, t; | ||
|
||
public SetDefaultAcceleration(double s, double t) { | ||
this.s = s; | ||
this.t = t; | ||
} | ||
@Override | ||
public void run(Driver driver) throws RetryException { | ||
driver.setDefaultAcceleration(s, t); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/replicatorg/drivers/commands/SetExtruderStepsPerMM.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package replicatorg.drivers.commands; | ||
|
||
import replicatorg.drivers.Driver; | ||
import replicatorg.drivers.RetryException; | ||
|
||
public class SetExtruderStepsPerMM implements DriverCommand { | ||
|
||
double a; | ||
|
||
public SetExtruderStepsPerMM(double a) { | ||
this.a = a; | ||
} | ||
@Override | ||
public void run(Driver driver) throws RetryException { | ||
driver.setExtruderStepsPerMM(a); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package replicatorg.drivers.commands; | ||
|
||
import replicatorg.drivers.Driver; | ||
import replicatorg.drivers.RetryException; | ||
|
||
public class SetFilamentDiameter implements DriverCommand { | ||
|
||
double s; | ||
|
||
public SetFilamentDiameter(double s) { | ||
this.s = s; | ||
} | ||
@Override | ||
public void run(Driver driver) throws RetryException { | ||
driver.setFilamentDiameter(s); | ||
} | ||
} |
Oops, something went wrong.