
public interface BladeSet
| Modifier and Type | Method and Description |
|---|---|
double |
absoluteToEncoder(double absolute)
The inverse of
encoderToAbsolute(double). |
double |
absoluteToRelative(double abs)
Converts an absolute position along the camera X axis to a relative
blade set position in the range [0.0, 1.0], where 0.0 means fully retracted
(open) and 1.0 means fully extended (closed).
|
double |
encoderToAbsolute(double encoderValue)
Converts a motor position encoder value to an absolute position in mm of the leading
edge of the blade set on the camera X axis.
|
BladeSetConfiguration |
getBladeSetConfiguration()
Gets the configuration of the BladeSet.
|
double |
getRelativePosition()
Gets the current position of the BladeSet.
|
ShutterSide |
getSide()
Gets the side of the shutter to which the blade set belongs.
|
boolean |
isFullyExtended()
Is the blade set fully extended? That is, is its absolute position within the
shutter tolerance of the closed position?
|
boolean |
isFullyRetracted()
Is the blade set fully retracted? That is, is its absolute position within the
shutter tolerance of the open position?
|
MovementHistory |
moveToPosition(double position,
double moveTime)
Moves the blade set to the specified position.
|
double |
relativeToAbsolute(double rel)
The inverse of
absoluteToRelative(double). |
double getRelativePosition()
BladePositionMovementHistory moveToPosition(double position, double moveTime)
position - the desired relative position of the leading edge of the blade setmoveTime - the move duration in secondsUpon return getCurrentPosition() will reflect the final position of the move in any thread.
IllegalArgumentException - if position is not validShutterSide getSide()
BladeSetConfiguration getBladeSetConfiguration()
double encoderToAbsolute(double encoderValue)
encoderValue - the value read from the encoder.double absoluteToEncoder(double absolute)
encoderToAbsolute(double).absolute - the absolute position.double absoluteToRelative(double abs)
relative = (absolute - absoluteOpen) / (absoluteClosed - absoluteOpen).abs - the absolute position.BladeSetConfigurationdouble relativeToAbsolute(double rel)
absoluteToRelative(double).rel - the relative position.BladeSetConfigurationboolean isFullyRetracted()
ShutterConfiguration,
BladeSetConfigurationboolean isFullyExtended()
ShutterConfiguration,
BladeSetConfigurationCopyright © 2016 LSST. All rights reserved.