
public final class BladeSetSimulator extends Object implements BladeSet
At present the simulation doesn't use a blade set configuration and so calculates only relative blade set positions for both the motor samples and the Hall transitions. The motor simulation calculates position samples at intervals of roughly 50 milliseconds.
The index tells which side of the shutter the blade set is on and is also used to determine
the initial relative position of the blade set's edge: 0.0 for index 0 and 1.0 for index 1.
See BladePosition.
Thread publication policy: shared, thread-safe. Instances can be accessed safely through the public interface by multiple threads.
| Constructor and Description |
|---|
BladeSetSimulator(int index)
Sets the index and initial relative position of the blade set.
|
| Modifier and Type | Method and Description |
|---|---|
BladeSetConfiguration |
getBladeSetConfiguration()
Not yet supported.
|
double |
getCurrentPosition()
Gets the current relative position of the edge of the blade set.
|
int |
getIndex()
Gets the index.
|
MovementHistory |
moveToPosition(double targetPosition,
double moveTimeSeconds)
Performs a simulated motion of the blade set.
|
public BladeSetSimulator(int index)
index - the blade set indexpublic BladeSetConfiguration getBladeSetConfiguration()
getBladeSetConfiguration in interface BladeSetUnsupportedOperationException - alwayspublic double getCurrentPosition()
getCurrentPosition in interface BladeSetBladePositionpublic int getIndex()
public MovementHistory moveToPosition(double targetPosition, double moveTimeSeconds)
moveToPosition in interface BladeSettargetPosition - The desired final relative position of the blade set's edge.moveTimeSeconds - How long the move should take.After returning the current position will be seen to be targetPosition in any thread.
Copyright © 2016 LSST. All rights reserved.