|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.foce.devices.elmo.base.ElmoImpl
public class ElmoImpl
| Field Summary | |
|---|---|
protected int |
_countsPerRevolution
Motor counts per motor revolution (before gear rection) |
protected Elmo |
_elmo
Elmo implementation (ElmoSolo, etc.; Elmo is abstract) |
protected double |
_gearRatio
default gear reduction ratio |
protected static org.apache.log4j.Logger |
_log4j
Log4j logger |
protected int |
_maxMotorCounts
|
protected int |
_minMotorCounts
|
protected gnu.io.SerialPort |
_motorSerialPort
forward controller serial port |
protected long |
_tsElapsedMS
|
protected long |
_tsStartTimeMS
|
protected int |
_tsState
|
protected long |
_tsTriggerCount
|
protected boolean |
_turnSensorEnabled
|
protected boolean |
_turnSensorReset
|
static boolean |
ABOVE
constant indicates next highest (logical) hall sensor boundary |
static boolean |
BELOW
constant indicates next lowest (logical) hall sensor boundary |
static double |
DOUBLE_LIMIT_ZERO
|
static int |
HALL_ACTIVE_MASK
mask for bits indicating digitial input logical pin state |
static int |
HALL_DISTANCE_COUNTS
Distance (in motor counts) between louver feedback hall sensors |
static int |
HALL_PINSTATE_MASK
mask for bits indicating digital input physical pin state |
static int |
HALL_PINSTATE_START_BIT
first bit of pin state in digital input port (used for bit shifting) |
static int |
INT_LIMIT_ZERO
|
static long |
LONG_LIMIT_ZERO
|
static long |
LOUVER_COUNTS_LIMIT_MAX
|
static long |
LOUVER_COUNTS_LIMIT_MIN
|
static double |
LOUVER_DEGREES_LIMIT_MAX
|
static double |
LOUVER_DEGREES_LIMIT_MIN
|
static int |
LOUVER_HALL_LIMIT_MAX
|
static int |
LOUVER_HALL_LIMIT_MIN
|
static double |
LOUVER_PERCENT_LIMIT_MAX
|
static double |
LOUVER_PERCENT_LIMIT_MIN
|
static int |
MAX_DIGITAL_INPUT_BIT
|
static long |
serialVersionUID
serial version, for Serializable interface |
static int |
TS_DISABLED
|
static int |
TS_ERROR
|
static int |
TS_PENDING
|
static int |
TS_READ_ERROR
|
static int |
TS_RESET
|
static int |
TS_TIMEOUT
|
static int |
TS_TRIGGERED
|
static int |
TS_UNKNOWN
|
| Constructor Summary | |
|---|---|
ElmoImpl()
No-arg Constructor |
|
ElmoImpl(Elmo elmo)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
armTurnsSensorTrigger()
|
void |
beginMotion()
Start motion according to currently set parameters. |
long |
center(int speedCounts)
Find the center of the current Hall effect feedback position. |
gnu.io.SerialPort |
configurePort(java.lang.String serialPortName)
Configure the serial ports used to communicate with the motor controllers. |
double |
counts2orpm(int counts)
Convert output shaft speed (counts/sec) to (rpm) (at output after gear train) (using gear ratio and counts per revolution) |
double |
counts2rpm(int counts)
Convert motor speed (counts/sec) to (rpm) (before gear train) (using countsPerRevolution) |
double |
countsPerUnitTravel()
Get number of motor counts per unit of travel (varies with lead screw gear ratio, counts per revolution and displacement revolution per units) |
double |
degrees2percent(double degreesValue)
Convert louver position value (engineering units) to percent value This routine does not validate, so may return values that are not physically valid for invalid input |
void |
delay(long delayMsec)
delay for specified number of milliseconds |
boolean |
disarmTurnsSensorTrigger()
Disarm the turn sensor homing function |
long |
findBoundary(boolean positive,
int speedCounts)
Find and stop at the nearest Hall sensor feedback transition location. |
int |
getCountsPerRevolution()
Get commutation counts per motor revolution. |
int |
getDIHall_Bit(int bit)
|
long |
getDisplacementCounts(double louverPositionDegrees)
compute displacement (motor counts) for given louver position (degrees). |
double |
getDisplacementRPU()
|
int |
getEncoderVelocity()
Get motor velocity (in counts/sec, from motor feedback sensors, i.e., before gear train) The encoder velocity is very noisy and typically reads 0 at very low speeds (<15 counts/sec). |
int |
getEncoderVelocity(int nSamples)
get (average of nSamples) motor feedback velocity in counts/sec. |
int |
getFaultRegister()
return detailed motor fault information.. |
double |
getGearRatio()
Get the gear ratio between the motor and the output shaft. |
int |
getHomingSpeedCounts()
|
boolean |
getInvertHallPosition()
If invertHallPosition is true, the order of the feedback readings is reversed, ranging from 15-0 instead of 0-15. |
int |
getJoggingVelocity()
get motor jogging (commanded) velocity in counts/sec. |
long |
getLouverCountsMax()
|
long |
getLouverCountsMin()
|
double |
getLouverDegreesMax()
|
double |
getLouverDegreesMin()
|
int |
getLouverHallMax()
|
int |
getLouverHallMin()
|
int |
getLouverHallPhyMax()
|
int |
getLouverHallPhyMin()
|
double |
getLouverLinkageLength()
|
double |
getLouverPercentMax()
|
double |
getLouverPercentMin()
|
double |
getLouverPositionDegrees()
Get louver position (in engineering units) This derives from the kinematic position equations for the louvers (an offset crank-slider mechanism). |
double |
getLouverPositionDegrees(long positionCounts)
|
double |
getLouverPositionPercent()
Get louver position (as a percent of full travel) |
double |
getLouverPositionPercent(long positionCounts)
Get louver position (as a percent of full travel) |
java.lang.String |
getLouverSampleMessage()
return a (terse) message indicating the state of several motor registers |
java.lang.String |
getLouverStatusMessage()
return a message indicating the state of several motor registers |
double |
getMaxDisplacementTravel()
|
int |
getMaxMotorCounts()
|
double |
getMinDisplacementTravel()
|
int |
getMinMotorCounts()
|
double |
getModelMaxDisplacement()
|
long |
getMotionDistanceOffsetMsec()
|
double |
getMotionDistanceScale()
|
long |
getMotionTimeoutOffsetMsec()
|
double |
getMotionTimeoutScale()
|
Elmo |
getMotor()
get (Elmo) motor controller |
int |
getMotorAcceleration()
|
int |
getMotorDeceleration()
|
int |
getMotorStopDeceleration()
|
long |
getPositionCounter()
Get motor position counter for position modes fulfills ElmoIF interface |
long |
getPositionError()
Get difference (counts) between commanded and actual position if available |
double |
getSliderLinkageLength()
|
double |
getSliderOffset()
|
double |
getSliderPivotOffset()
|
int |
getStatusRegister()
Get motor status code. |
java.lang.String |
getThrusterSampleMessage()
return thruster sample string |
long |
getTSElapsedMsec()
Return the elapsed time since last turns sensor trigger (msec) |
int |
getTSState()
Return the turns sensor state |
static java.lang.String |
getTSStateMnemonic(int stateValue)
|
java.lang.String |
getTSStateName()
return a mnemonic for turns sensor state |
long |
getTSTriggerCount()
Return number of times the turns sensor has been triggered since the last reset |
int |
getTurnSensorInputBit()
|
int |
getTurnSensorOutputBit()
|
long |
getTurnSensorTimeoutMillis(double velocityRPM,
double gearRatio)
Compute the time for one rotation at the current speed |
long |
getTurnSensorTimeoutMSec()
|
void |
home(int position)
Home to one of the louver's 16 Hall effect position feedback switches. |
void |
home(int position,
boolean setCounter,
long counterValue,
int vLo,
int vHi)
Home to one of the louver's 16 Hall effect position feedback switches. |
void |
home(int position,
int velocityCounts)
Home to one of the louver's 16 Hall effect position feedback switches. |
void |
initializeController()
Initialize motor controller satisfies ElmoIF |
void |
initializeController(int serialMode,
int countsPerRevolution,
double gearRatio,
int unitMode,
int acceleration,
int deceleration,
int stopDeceleration)
|
void |
initializeTurnSensor()
|
boolean |
isEnabled()
return motor enabled (MO) status. |
void |
jog(int counts)
Command motor velocity (in counts/sec) fulfills ElmoIF interface |
int |
orpm2counts(double rpm)
Convert output shaft speed (rpm) to (counts/sec) (at output after gear train) (using gear ratio and counts per revolution) |
double |
percent2degrees(double percentValue)
Convert louver position value (percent) to (engineering) units value This routine does not validate, so may return values that are not physically valid for invalid input |
void |
ptpAbsolute(long position,
boolean wait)
Move motor to absolute position Motion may be subject to modulo position counting modes in effect. |
void |
ptpAbsolute(long position,
int velocityCounts,
boolean wait)
Move motor to absolute position at specified velocity Motion may be subject to modulo position counting modes in effect. |
void |
ptpRelative(long distanceCounts,
boolean wait)
Move motor relative to current position |
void |
ptpRelative(long distanceCounts,
int velocityCounts,
boolean wait)
Move motor relative to current position at specified velocity |
protected int |
readLogicalLouverPosition(boolean invertScale)
|
protected int |
readPhysicalLouverPosition()
read and return louver position, expressed as one of the Hall sensor feedback values |
java.lang.String |
readRegister(java.lang.String register)
read an Elmo register value |
int |
readTurnSensor()
return DISABLED, TRIGGERED, PENDING, READ_ERROR, RESET |
int |
rpm2counts(double rpm)
Convert motor speed (rpm) to (counts/sec) (before gear train) (using countsPerRevolution) |
void |
setCountsPerRevolution(int value)
Set commutation counts per motor revolution. |
void |
setDigitalInputFunction(int pin,
int function)
|
void |
setDIHallBit(int bit,
int value)
|
void |
setDisplacementRPU(double value)
|
void |
setEnable(boolean value,
long timeoutMsec)
Enable or disable the motor fulfills ElmoIF interface |
void |
setGearRatio(double value)
Set the gear ratio between the motor and the output shaft. |
void |
setHomingSpeedCounts(int value)
|
void |
setInvertHallPosition(boolean value)
If invertHallPosition is true, the order of the feedback readings is reversed, ranging from 15-0 instead of 0-15. |
void |
setJoggingVelocity(int counts)
Set motor velocity (in counts) Do not initiate motion fulfills ElmoIF interface |
void |
setJoggingVelocityRPM(double rpm)
Set motor velocity (in rpm) Do not initiate motion fulfills ElmoIF interface |
void |
setLouverCountsMax(long value)
|
void |
setLouverCountsMin(long value)
|
void |
setLouverDegrees(double positionDegrees)
Set an interpolated louver position between _louverDegreesMin and _louverDegreesMax. |
void |
setLouverDegreesMax(double value)
|
void |
setLouverDegreesMin(double value)
|
void |
setLouverHallMax(int value)
|
void |
setLouverHallMin(int value)
|
void |
setLouverHallPhyMax(int value)
|
void |
setLouverHallPhyMin(int value)
|
void |
setLouverLinkageLength(double value)
|
void |
setLouverPercent(double positionPercent)
Set an interpolated louver position between _louverDegreesMin and _louverDegreesMax. |
void |
setLouverPercentMax(double value)
|
void |
setLouverPercentMin(double value)
|
void |
setMaxDisplacementTravel(double value)
|
void |
setMaxMotorCounts(int value)
|
void |
setMinDisplacementTravel(double value)
|
void |
setMinMotorCounts(int value)
|
void |
setModelMaxDisplacement(double value)
|
void |
setMotionDistanceOffsetMsec(long value)
|
void |
setMotionDistanceScale(double value)
|
void |
setMotionTimeoutOffsetMsec(long value)
|
void |
setMotionTimeoutScale(double value)
|
void |
setMotor(Elmo elmo)
get (Elmo) motor controller |
void |
setMotorAcceleration(int value)
|
void |
setMotorDeceleration(int value)
|
void |
setMotorStopDeceleration(int value)
|
void |
setPositionCounter(long positionCounts)
Set motor position counter for position modes |
void |
setPTPSpeed(int counts)
Set motor velocity (in counts) Do not initiate motion fulfills ElmoIF interface |
void |
setPTPSpeedRPM(double rpm)
Set motor velocity (in rpm) Do not initiate motion fulfills ElmoIF interface |
void |
setReferenceLimit(int ll,
int hl)
|
void |
setReferenceSpeed(int vl,
int vh)
|
void |
setSerialMode(int mode)
Set serial port mode (MODE_SERIAL_LOCAL, MODE_SERIAL_RFC2217) |
void |
setSliderLinkageLength(double value)
|
void |
setSliderOffset(double value)
|
void |
setSliderPivotOffset(double value)
|
void |
setTurnSensorInputBit(int value)
|
void |
setTurnSensorOutputBit(int value)
|
protected void |
setTurnSensorState(int state,
long triggerCount,
long elapsedTime)
|
void |
setTurnSensorTimeoutMSec(long value)
|
void |
setTurnsSensorEnable(boolean value)
Enable or disable the turns sensor |
java.lang.String |
showConfiguration()
show current configuration information [ a configuration class may be worth doing at some point - klh] |
protected int |
updateTurnSensorState()
Read turn sensor and update sensor state. |
void |
validateAbsolute(long position)
|
boolean |
validateCounts(long value)
validate a louver position expressed in motor counts |
boolean |
validateDegrees(double value)
Validate an louver position value expressed in engineering units |
boolean |
validatePercent(double value)
Validate an louver position value expressed as a percentage of fully open |
boolean |
validatePosition(int value)
validate a louver position expressed as one of the Hall sensor feedback values |
void |
validateRelative(long distanceCounts)
|
void |
validateSpeed(double rpm)
Validates specified speed against configured limits |
void |
validateSpeed(int counts)
Validates specified speed against configured limits |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger _log4j
public static final long serialVersionUID
protected Elmo _elmo
protected gnu.io.SerialPort _motorSerialPort
protected int _countsPerRevolution
protected double _gearRatio
protected int _maxMotorCounts
protected int _minMotorCounts
public static final int HALL_DISTANCE_COUNTS
public static final int HALL_ACTIVE_MASK
public static final int HALL_PINSTATE_MASK
public static final int HALL_PINSTATE_START_BIT
public static final double LOUVER_DEGREES_LIMIT_MIN
public static final double LOUVER_DEGREES_LIMIT_MAX
public static final double LOUVER_PERCENT_LIMIT_MIN
public static final double LOUVER_PERCENT_LIMIT_MAX
public static final long LOUVER_COUNTS_LIMIT_MIN
public static final long LOUVER_COUNTS_LIMIT_MAX
public static final int LOUVER_HALL_LIMIT_MIN
public static final int LOUVER_HALL_LIMIT_MAX
public static final double DOUBLE_LIMIT_ZERO
public static final int INT_LIMIT_ZERO
public static final long LONG_LIMIT_ZERO
public static final int MAX_DIGITAL_INPUT_BIT
public static final boolean ABOVE
public static final boolean BELOW
public static final int TS_UNKNOWN
public static final int TS_DISABLED
public static final int TS_PENDING
public static final int TS_TRIGGERED
public static final int TS_ERROR
public static final int TS_READ_ERROR
public static final int TS_TIMEOUT
public static final int TS_RESET
protected long _tsStartTimeMS
protected long _tsElapsedMS
protected long _tsTriggerCount
protected int _tsState
protected boolean _turnSensorEnabled
protected boolean _turnSensorReset
| Constructor Detail |
|---|
public ElmoImpl()
public ElmoImpl(Elmo elmo)
| Method Detail |
|---|
public Elmo getMotor()
public void setMotor(Elmo elmo)
public gnu.io.SerialPort configurePort(java.lang.String serialPortName)
public void setMinMotorCounts(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getMinMotorCounts()
public void setMaxMotorCounts(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getMaxMotorCounts()
public void setMotorAcceleration(int value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getMotorAcceleration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setMotorDeceleration(int value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getMotorDeceleration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setMotorStopDeceleration(int value)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getMotorStopDeceleration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setDigitalInputFunction(int pin,
int function)
throws java.lang.IllegalArgumentException,
TimeoutException,
java.io.IOException
java.lang.IllegalArgumentException
TimeoutException
java.io.IOException
public void setReferenceSpeed(int vl,
int vh)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setReferenceLimit(int ll,
int hl)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void validateSpeed(int counts)
throws java.lang.IllegalArgumentException
counts - - speed in counts
java.lang.IllegalArgumentException
public void validateSpeed(double rpm)
throws java.lang.IllegalArgumentException
rpm - - speed in rpm
java.lang.IllegalArgumentException
public void validateRelative(long distanceCounts)
throws java.lang.Exception
java.lang.Exception
public void validateAbsolute(long position)
throws java.lang.Exception
java.lang.Exception
public void initializeController()
throws TimeoutException,
java.io.IOException,
java.lang.Exception
initializeController in interface ElmoIFTimeoutException
java.io.IOException
java.lang.Exception
public void initializeController(int serialMode,
int countsPerRevolution,
double gearRatio,
int unitMode,
int acceleration,
int deceleration,
int stopDeceleration)
throws TimeoutException,
java.io.IOException,
java.lang.Exception
initializeController in interface ElmoIFTimeoutException
java.io.IOException
java.lang.Exception
public int rpm2counts(double rpm)
throws java.lang.Exception
rpm2counts in interface ElmoIFjava.lang.Exception
public double counts2rpm(int counts)
throws java.lang.Exception
counts2rpm in interface ElmoIFjava.lang.Exception
public int orpm2counts(double rpm)
throws java.lang.Exception
orpm2counts in interface ElmoIFjava.lang.Exception
public double counts2orpm(int counts)
throws java.lang.Exception
counts2orpm in interface ElmoIFjava.lang.Exception
public java.lang.String readRegister(java.lang.String register)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
readRegister in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setSerialMode(int mode)
throws java.lang.IllegalArgumentException
ElmoIF
setSerialMode in interface ElmoIFjava.lang.IllegalArgumentException
public void setCountsPerRevolution(int value)
throws java.lang.IllegalArgumentException
ElmoIF
setCountsPerRevolution in interface ElmoIFjava.lang.IllegalArgumentExceptionpublic int getCountsPerRevolution()
ElmoIF
getCountsPerRevolution in interface ElmoIF
public void setEnable(boolean value,
long timeoutMsec)
throws TimeoutException
setEnable in interface ElmoIFTimeoutException
public void setGearRatio(double value)
throws java.lang.IllegalArgumentException
setGearRatio in interface ElmoIFjava.lang.IllegalArgumentExceptionpublic double getGearRatio()
getGearRatio in interface ElmoIF
public void setPositionCounter(long positionCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
setPositionCounter in interface ElmoIFpositionCounts - new value of position counter (counts)
fulfills ElmoIF interface
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public long getPositionCounter()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
getPositionCounter in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public int getJoggingVelocity()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception,
java.rmi.RemoteException
getJoggingVelocity in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
java.rmi.RemoteException
public int getEncoderVelocity()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
getEncoderVelocity in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getEncoderVelocity(int nSamples)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
ElmoIF
getEncoderVelocity in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public boolean isEnabled()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
isEnabled in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public int getStatusRegister()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
getStatusRegister in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.ExceptionElmo.getStatusRegister()
public int getFaultRegister()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
getFaultRegister in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.ExceptionElmo.getMotorFault()
public long getPositionError()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
getPositionError in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void setJoggingVelocityRPM(double rpm)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setJoggingVelocity(int counts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
setJoggingVelocity in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setPTPSpeed(int counts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
setPTPSpeed in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setPTPSpeedRPM(double rpm)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public java.lang.String showConfiguration()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
showConfiguration in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void beginMotion()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
beginMotion in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void jog(int counts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
jog in interface ElmoIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpRelative(long distanceCounts,
int velocityCounts,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
distanceCounts - distance to move (counts)
fulfills ElmoIF interface
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpRelative(long distanceCounts,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
ptpRelative in interface ElmoIFdistanceCounts - distance to move (counts)
fulfills ElmoIF interface
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpAbsolute(long position,
int velocityCounts,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
position - to move to (counts)
fulfills ElmoIF interface
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void ptpAbsolute(long position,
boolean wait)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
ptpAbsolute in interface ElmoIFposition - to move to (counts)
fulfills ElmoIF interface
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exceptionpublic void delay(long delayMsec)
delay in interface ElmoIFdelayMsec - delay duration in millisecondspublic double getLouverDegreesMax()
public void setLouverDegreesMax(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getLouverDegreesMin()
public void setLouverDegreesMin(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic long getLouverCountsMax()
public void setLouverCountsMax(long value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic long getLouverCountsMin()
public void setLouverCountsMin(long value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getLouverPercentMax()
public void setLouverPercentMax(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getLouverPercentMin()
public void setLouverPercentMin(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getLouverHallPhyMin()
public void setLouverHallPhyMin(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getLouverHallPhyMax()
public void setLouverHallPhyMax(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getLouverHallMax()
public void setLouverHallMax(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getLouverHallMin()
public void setLouverHallMin(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getDisplacementRPU()
public void setDisplacementRPU(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getSliderLinkageLength()
public void setSliderLinkageLength(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getSliderOffset()
public void setSliderOffset(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getModelMaxDisplacement()
public void setModelMaxDisplacement(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getLouverLinkageLength()
public void setLouverLinkageLength(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getSliderPivotOffset()
public void setSliderPivotOffset(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getMinDisplacementTravel()
public void setMinDisplacementTravel(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getMaxDisplacementTravel()
public void setMaxDisplacementTravel(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getDIHall_Bit(int bit)
public void setDIHallBit(int bit,
int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getHomingSpeedCounts()
public void setHomingSpeedCounts(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic long getMotionTimeoutOffsetMsec()
public void setMotionTimeoutOffsetMsec(long value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getMotionTimeoutScale()
public void setMotionTimeoutScale(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic long getMotionDistanceOffsetMsec()
public void setMotionDistanceOffsetMsec(long value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double getMotionDistanceScale()
public void setMotionDistanceScale(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic double countsPerUnitTravel()
public boolean validatePercent(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public boolean validateDegrees(double value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public boolean validateCounts(long value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public boolean validatePosition(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public double percent2degrees(double percentValue)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public double degrees2percent(double degreesValue)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected int readPhysicalLouverPosition()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
protected int readLogicalLouverPosition(boolean invertScale)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exceptionpublic long getDisplacementCounts(double louverPositionDegrees)
public boolean getInvertHallPosition()
getInvertHallPosition in interface ElmoLouverIFpublic void setInvertHallPosition(boolean value)
setInvertHallPosition in interface ElmoLouverIF
public long findBoundary(boolean positive,
int speedCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
findBoundary in interface ElmoLouverIFpositive - If positive is true, find the transition by moving in the positive direction,
otherwise move in the negative direction.speedCounts - operate at speedCounts counts/sec
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public long center(int speedCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
center in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void home(int position)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void home(int position,
int velocityCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
ElmoLouverIF
home in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void home(int position,
boolean setCounter,
long counterValue,
int vLo,
int vHi)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
home in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public void setLouverPercent(double positionPercent)
throws java.lang.IllegalArgumentException,
java.lang.Exception
setLouverPercent in interface ElmoLouverIFjava.lang.IllegalArgumentException
java.lang.Exception
public void setLouverDegrees(double positionDegrees)
throws java.lang.IllegalArgumentException,
java.lang.Exception
setLouverDegrees in interface ElmoLouverIFjava.lang.IllegalArgumentException
java.lang.Exception
public double getLouverPositionDegrees()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
getLouverPositionDegrees in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public double getLouverPositionDegrees(long positionCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public double getLouverPositionPercent()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
getLouverPositionPercent in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public double getLouverPositionPercent(long positionCounts)
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public java.lang.String getLouverStatusMessage()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.IllegalArgumentException,
java.lang.Exception
getLouverStatusMessage in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.Exception
public java.lang.String getLouverSampleMessage()
throws TimeoutException,
java.io.IOException,
java.lang.Exception
getLouverSampleMessage in interface ElmoLouverIFTimeoutException
java.io.IOException
java.lang.Exceptionpublic void initializeTurnSensor()
public long getTurnSensorTimeoutMSec()
public void setTurnSensorTimeoutMSec(long value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getTurnSensorInputBit()
public void setTurnSensorInputBit(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic int getTurnSensorOutputBit()
public void setTurnSensorOutputBit(int value)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic boolean armTurnsSensorTrigger()
public boolean disarmTurnsSensorTrigger()
public long getTurnSensorTimeoutMillis(double velocityRPM,
double gearRatio)
public int readTurnSensor()
protected void setTurnSensorState(int state,
long triggerCount,
long elapsedTime)
protected int updateTurnSensorState()
public java.lang.String getThrusterSampleMessage()
throws TimeoutException,
java.io.IOException,
java.lang.Exception
getThrusterSampleMessage in interface ElmoThrusterIFTimeoutException
java.io.IOException
java.lang.Exceptionpublic void setTurnsSensorEnable(boolean value)
setTurnsSensorEnable in interface ElmoThrusterIFpublic long getTSTriggerCount()
ElmoThrusterIF
getTSTriggerCount in interface ElmoThrusterIFpublic long getTSElapsedMsec()
ElmoThrusterIF
getTSElapsedMsec in interface ElmoThrusterIFpublic int getTSState()
ElmoThrusterIF
getTSState in interface ElmoThrusterIFpublic static java.lang.String getTSStateMnemonic(int stateValue)
public java.lang.String getTSStateName()
ElmoThrusterIF
getTSStateName in interface ElmoThrusterIF
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||