public class MotorControllerNew extends java.lang.Object implements MotorController
MotorController.MotorState
Modifier and Type | Field and Description |
---|---|
static int |
HISTOGRAM_BUCKETS |
int |
HISTOGRAM_SIZE |
MachState |
m_MachState |
static int |
NUMBER_OF_MOTORS |
Constructor and Description |
---|
MotorControllerNew(int NUMBER_OF_AXIS,
ToadComm toadcomm,
MachState machState,
PluginMethods pluginMethods) |
Modifier and Type | Method and Description |
---|---|
void |
abortAll() |
void |
armProbe() |
void |
forceConfig() |
MotorControllerOld.ConnectionState |
getConnectionStatus() |
int[] |
getHistogram() |
int |
getMachTimeInMillis() |
int[] |
getMotorPosition() |
int |
getMotorPosition(int motor) |
MotorController.MotorState |
getMotorState(int motor) |
int[] |
getProbePosition() |
double |
getVelocityUnit() |
java.lang.String |
getVersion() |
void |
queueMove(int[] move) |
void |
resetHistogram() |
void |
setConnectionStatus(MotorControllerOld.ConnectionState requestedStatus) |
void |
setPosition(int motor,
int position) |
void |
startHoming(int motor) |
boolean |
startJogging(int motor,
boolean forward) |
void |
stopJogging(int motor) |
public static final int NUMBER_OF_MOTORS
public int HISTOGRAM_SIZE
public static final int HISTOGRAM_BUCKETS
public MachState m_MachState
public MotorControllerNew(int NUMBER_OF_AXIS, ToadComm toadcomm, MachState machState, PluginMethods pluginMethods)
public void queueMove(int[] move) throws java.lang.Exception
queueMove
in interface MotorController
java.lang.Exception
public MotorController.MotorState getMotorState(int motor)
getMotorState
in interface MotorController
public double getVelocityUnit()
getVelocityUnit
in interface MotorController
public int getMachTimeInMillis()
public int[] getMotorPosition()
getMotorPosition
in interface MotorController
public int[] getProbePosition()
getProbePosition
in interface MotorController
public MotorControllerOld.ConnectionState getConnectionStatus()
getConnectionStatus
in interface MotorController
public void setConnectionStatus(MotorControllerOld.ConnectionState requestedStatus)
setConnectionStatus
in interface MotorController
public int getMotorPosition(int motor)
public boolean startJogging(int motor, boolean forward) throws java.lang.Exception
startJogging
in interface MotorController
java.lang.Exception
public void stopJogging(int motor) throws java.lang.Exception
stopJogging
in interface MotorController
java.lang.Exception
public void startHoming(int motor)
startHoming
in interface MotorController
public void setPosition(int motor, int position)
setPosition
in interface MotorController
public void abortAll()
abortAll
in interface MotorController
public int[] getHistogram()
public void resetHistogram()
public void armProbe()
armProbe
in interface MotorController
public java.lang.String getVersion()
getVersion
in interface MotorController
public void forceConfig()
forceConfig
in interface MotorController