|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.subsystems.shutter.driver.BladeSetDrvr
public class BladeSetDrvr
Routines to perform shutter blade operations
| Nested Class Summary | |
|---|---|
static class |
BladeSetDrvr.Hall
Inner class to hold a set of raw Hall sensor data |
static class |
BladeSetDrvr.HallItem
Inner class to hold an item of raw Hall sensor data |
static class |
BladeSetDrvr.SampData
Inner class to hold a set of special move data samples |
static class |
BladeSetDrvr.Sample
Inner class to hold an item of sampled data |
| Field Summary | |
|---|---|
static int |
HOM_OPT_NDIRN
Public constants |
static int |
HOM_OPT_PFINAL
Public constants |
static int |
MOV_TYP_SCURVE
Public constants |
static int |
MOV_TYP_TRAP
Public constants |
static float |
TORQUE_LIM
|
| Constructor Summary | |
|---|---|
BladeSetDrvr()
|
|
| Method Summary | |
|---|---|
void |
addHallSensorListener(HallSensorListener l)
Adds a Hall sensor listener |
void |
addMovementHistoryListener(MovementHistoryListener l)
Adds a movement history listener |
BladeSetCalibration |
calibNew(float dist,
float time)
Calibrates the Hall switch positions (new test) |
BladeSetCalibration |
calibrate(float dist,
float step,
float time)
Calibrates the Hall switch positions, moving in both directions |
void |
disableDrive()
Disables the drive |
void |
enableDrive()
Enables the drive |
org.lsst.ccs.drivers.iocard.AccesDio |
getAcces()
Returns the AccesDio object being used |
float |
getAmbientTemperature()
Gets the ambient temperature |
BladeSetConfiguration |
getBladeSetConfiguration()
Returns the configuration object being used |
BladeSetCalibration |
getCalib()
Gets the Hall calibration data |
org.lsst.ccs.drivers.parker.AcrComm |
getComm()
Returns the motor communications object being used |
BladeSetConfiguration |
getConfig()
Returns the configuration object being used |
float |
getCurrentPosition()
Returns the current blade set relative (i.e. |
float |
getDriveTemperature()
Gets the drive temperature |
org.lsst.ccs.drivers.iocard.Helios |
getHelios()
Returns the Helios object being used |
int |
getIndex()
Gets the blade set index |
float |
getPosition()
Gets the current blade set position as a distance |
int |
home(int optns,
float vel)
Homes the shutter |
int |
move(int type,
float dist,
float time,
float mvFract)
Performs a move |
BladeSetDrvr.SampData |
moveD(int type,
float dist,
float time,
float mvFract,
int nSamp,
int[] iParms,
int[] fParms)
Performs a move, recording various parameters periodically |
MovementHistory |
moveH(int type,
float dist,
float time,
float mvFract,
int nSamp)
Performs a move, recording both Hall switch transitions and periodic encoder values |
MovementHistory |
moveP(int type,
float dist,
float time,
float mvFract,
int nSamp)
Performs a move, sampling the position periodically |
int |
moveStatus()
Gets the status of a move: normal; or premature stop reason |
void |
moveToPosition(float relPosition,
float time)
Moves the blade set to a given relative (i.e. |
void |
removeHallSensorListener(HallSensorListener l)
Removes a Hall sensor listener |
void |
removeMovementHistoryListener(MovementHistoryListener l)
Removes a movement history listener |
void |
setCalib(BladeSetCalibration list)
Sets the Hall calibration data |
void |
setDriveOff()
Turns the drive off |
void |
setDriveOn()
Turns the drive on and leaves it on |
void |
setIndex(int index)
Sets the blade set index, and hence its configuration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MOV_TYP_SCURVE
public static final int MOV_TYP_TRAP
public static final int HOM_OPT_NDIRN
public static final int HOM_OPT_PFINAL
public static final float TORQUE_LIM
| Constructor Detail |
|---|
public BladeSetDrvr()
| Method Detail |
|---|
public void setIndex(int index)
setIndex in interface BladeSetpublic int getIndex()
getIndex in interface BladeSet
public void moveToPosition(float relPosition,
float time)
moveToPosition in interface BladeSetrelPosition - Position of the leading blade to move to.
This is a number [0,1] where 0 means fully open and
1 is fully closed.time - How long it should take in seconds reach the position.public float getCurrentPosition()
getCurrentPosition in interface BladeSetpublic BladeSetConfiguration getBladeSetConfiguration()
getBladeSetConfiguration in interface BladeSetpublic void addMovementHistoryListener(MovementHistoryListener l)
addMovementHistoryListener in interface BladeSetpublic void removeMovementHistoryListener(MovementHistoryListener l)
removeMovementHistoryListener in interface BladeSetpublic void addHallSensorListener(HallSensorListener l)
addHallSensorListener in interface BladeSetpublic void removeHallSensorListener(HallSensorListener l)
removeHallSensorListener in interface BladeSetpublic float getPosition()
public void setDriveOn()
public void setDriveOff()
public void enableDrive()
public void disableDrive()
public BladeSetCalibration calibrate(float dist,
float step,
float time)
public BladeSetCalibration calibNew(float dist,
float time)
public void setCalib(BladeSetCalibration list)
public BladeSetCalibration getCalib()
public int move(int type,
float dist,
float time,
float mvFract)
public BladeSetDrvr.SampData moveD(int type,
float dist,
float time,
float mvFract,
int nSamp,
int[] iParms,
int[] fParms)
public MovementHistory moveH(int type,
float dist,
float time,
float mvFract,
int nSamp)
public MovementHistory moveP(int type,
float dist,
float time,
float mvFract,
int nSamp)
public int home(int optns,
float vel)
public BladeSetConfiguration getConfig()
public org.lsst.ccs.drivers.iocard.AccesDio getAcces()
public org.lsst.ccs.drivers.iocard.Helios getHelios()
public org.lsst.ccs.drivers.parker.AcrComm getComm()
public int moveStatus()
public float getDriveTemperature()
public float getAmbientTemperature()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||