private class SpillageGuider.GuiderLoop extends TimerTask
| Modifier and Type | Field and Description |
|---|---|
private boolean |
cancel
If cancel was called lately.
|
private long |
lastsent
The time of the last PID query.
|
private long |
start
The starting time of the guider loop.
|
private static String |
XPINHOLE |
private static String |
XPINHOLEREM |
private static String |
YPINHOLE |
private static String |
YPINHOLEREM |
| Modifier | Constructor and Description |
|---|---|
protected |
GuiderLoop()
Start a new guider loop and records the start time.
|
| Modifier and Type | Method and Description |
|---|---|
private Vector2D |
averageAzAltShift(List<Vector2D> shifts)
Averages a list of az/alt offsets stored as two-dimensional vectors.
|
boolean |
cancel()
Also allow immediate exits in our loop.
|
private boolean |
check(Value v,
double above)
Check, if the value is non-null, its value is non-null and if this
value is higher than the supplied double.
|
private Vector2D |
fromSpillageFits(MImageHDU adu,
Point2D pinhole,
GuiderMode mode,
Point2D shift) |
private Vector2D |
fromStarField(List<Guiding.RawStar> found,
Object objid,
Point2D shift) |
void |
run()
First, check if we are running.
|
private void |
writeRecord(DataOutputStream record,
double az,
double alt)
If the record file is non null, write the two doubles as floats into
it.
|
scheduledExecutionTimeprivate static final String YPINHOLEREM
private static final String YPINHOLE
private static final String XPINHOLEREM
private static final String XPINHOLE
private long start
private long lastsent
private boolean cancel
protected GuiderLoop()
public boolean cancel()
public void run()
private Vector2D fromSpillageFits(MImageHDU adu, Point2D pinhole, GuiderMode mode, Point2D shift) throws BasicFitsException
adu - Must contain datapinhole - Must not be nullmode - Must not be nullshift - The recovered pixel shift is put into this, if non-null.BasicFitsExceptionprivate Vector2D fromStarField(List<Guiding.RawStar> found, Object objid, Point2D shift)
private final boolean check(Value v, double above)
private Vector2D averageAzAltShift(List<Vector2D> shifts)
private void writeRecord(DataOutputStream record, double az, double alt)