|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
stella.adapter.SpillageGuider.GuiderLoop
private class SpillageGuider.GuiderLoop
The timer task that does the actual guiding. If the guider mode was automatic, we are allowed to send back guider-mode change request, which are normal error events. The master mind will as a response stop the guiding in the master mind, thus we do not stop the guiding in this case.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
SpillageGuider.GuiderLoop()
Start a new guider loop and records the start time. |
| Method Summary | |
|---|---|
private Vector2D |
averageAzAltShift(List 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. |
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. |
| Methods inherited from class java.util.TimerTask |
|---|
scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long start
private long lastsent
private boolean cancel
| Constructor Detail |
|---|
protected SpillageGuider.GuiderLoop()
| Method Detail |
|---|
public boolean cancel()
cancel in class TimerTaskpublic void run()
run in interface Runnablerun in class TimerTask
private final boolean check(Value v,
double above)
private Vector2D averageAzAltShift(List shifts)
private void writeRecord(DataOutputStream record,
double az,
double alt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||