private class OffAxisTracker.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.
|
| 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 |
fromPinholeFits(File fitsfile,
GuiderMode mode,
Object objid,
Point2D shift)
Before reducing the entire star field, we try to see if enough signal
can be extracted from around the pinhole.
|
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 long start
private long lastsent
private boolean cancel
protected GuiderLoop()
public boolean cancel()
public void run()
private Vector2D fromPinholeFits(File fitsfile, GuiderMode mode, Object objid, Point2D shift)
fitsfile - mode - objid - shift - private 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)