
public final class BladePosition extends Object implements Serializable
Blade set positions come in absolute and relative flavors. Absolute positions are in mm along an axis common to both blade sets with a single origin. Relative positions are dimensionless and use a separate axis for each blade set; 0.0 means fully retracted (open) and 1.0 means fully extended (closed). Each instance of this class contains both types of position.
| Constructor and Description |
|---|
BladePosition(double position,
double relPosition)
Constructs given the position values.
|
BladePosition(long time,
double position,
double relPosition)
Constructs given all three values.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getPosition()
Gets the sampled absolute position.
|
double |
getRelPosition()
Gets the relative position calculated from the absolute position.
|
long |
getTime()
Gets the time at which the position sample was taken..
|
public BladePosition(long time,
double position,
double relPosition)
time - a system time stamp (in microseconds)position - the absolute positionrelPosition - the relative positionpublic BladePosition(double position,
double relPosition)
position - the absolute positionrelPosition - the relative positionpublic long getTime()
public double getPosition()
public double getRelPosition()
Copyright © 2016 LSST. All rights reserved.