public class AuxiliaryMaster extends GenericMaster implements DitherControlling, GuiderControlling
CalibrationMaster and additionally understands the following
commands:
During execution of the
various
commands, different errors can be thrown, refer to the appropriate methods.| Modifier and Type | Class and Description |
|---|---|
private class |
AuxiliaryMaster.ContinuousExposure
A thread that continousely exposes the auxiliary camera until stopped.
|
GenericMaster.StandaloneReceiverTorso.CommandHandlerPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private int |
acquirevirgin
An int that get zero on finds, tracks reacquires.
|
private AuxiliaryGuider |
auxiliary
The encapsulating class for the STELLA guider methods.
|
private AuxiliaryCoarseUnit |
coarsetask
The acquire unit doing the coarse acquire task.
|
private OffsetCaster |
com
The adapter-to-telescope communication.
|
private AuxiliaryMaster.ContinuousExposure |
continuous
If continuous exposures are underway, this is the thread.
|
private static String |
DEFACQUIREOFFSET
The default name of the altitude parameter.
|
private static long |
DEFACQUIRETIME
The default acquire time.
|
static String |
DEFALTITUDE
The default name of the altitude parameter.
|
private static String |
DEFAUXILIARYGUIDER
The default properties file for the stella guider.
|
static String |
DEFAZIMUTH
The default name of the altitude parameter.
|
private static Rectangle |
DEFCLEARFRAME
The frame that should be cleared on a reset.
|
private static long |
DEFCLEARTIME
The time required for a clear ccd.
|
private static String |
DEFCOMMUNICATOR
The default properties file for the stella guider.
|
static String |
DEFDECTARGET
The default name of the target declination parameter.
|
static String |
DEFDEROTATOROFF
The default name of the telescope derotator parameter.
|
private static String |
DEFEXPOSUREHEAD
Default property.
|
static String |
DEFEXPOSURETIMELEFT
The default name of the paramter holding the exposure time left .
|
private static long |
DEFFINDTIME
The default recognize-find time.
|
private static long |
DEFFIXEDROTATORTIME
The default time to change the filter.
|
static String |
DEFFOCUS
The default name of the focus parameter.
|
private static long |
DEFFOCUSTIME
The default focus time.
|
private static double |
DEFFOVMISSMATCH |
static String |
DEFFRACTIONALEXPOSE
The default name of the paramter holding the fractional exposure time.
|
private static String |
DEFGUIDERCCD
The name of the CCD driver class used for guiding.
|
private static long |
DEFGUIDERDELAY
The default guider delay prior to first guiding step.
|
static float |
DEFGUIDERMAG
Guide stars must be brighter than this.
|
static String |
DEFIMAGEROTATION
The default name of the plain image rotation.
|
private static boolean |
DEFKEEPOFFSETS
If true, all guiding offsets are kept.
|
private static boolean |
DEFKEEPPIDS
If true, all guiding pids are kept.
|
static String |
DEFLOSTCOUNT
The default name of the paramter counting guidng losses
|
static String |
DEFMAGTARGET
The default name of the target magnitude parameter.
|
private static long |
DEFMOVETIME
The maximum time we wait for move telescope.
|
static String |
DEFOFFSETAVERAGE
The default name of the paramter counting arcsec offsets.
|
private static long |
DEFOFFSETDELAY
The default delay on stop guiding if offset are active.
|
private static int |
DEFOFFSETWAIT
The default delay on stop guiding if offset are active.
|
static String |
DEFRATARGET
The default name of the target right ascension parameter.
|
static String |
DEFSEEING
The default name of the paramter accumulating guiding seeing.
|
static String |
DEFSPURIOUSCOUNT
The default name of the paramter counting guidng losses
|
private static long |
DEFSTARTGUIDINGTIME
The default time till guiding starts.
|
private static long |
DEFSTARTTILINGTIME
The default time till guiding starts.
|
private static long |
DEFSTOPGUIDINGTIME
The default time till guiding stops.
|
private static long |
DEFSTOPTILINGTIME
The default time till guiding stops.
|
static String |
DEFTARGETNAME
The default name of the target name parameter.
|
static String |
DEFWINDMAX
The default name of the paramter holding windspeed max.
|
private int |
expid
The internal counter for the command id.
|
private AuxiliaryFineUnit |
finetask
The acquire unit doing the fine acquire task.
|
private int |
guidervirgin
An int that get zero on finds, tracks guider mode changes.
|
private AuxiliaryGuidingUnit |
guidetask
The guider unit doing the guiding task plus the loop.
|
static String |
KEY_ACQUIREOFFSET
Issued to the local parameter cluster as average offset.
|
static String |
KEY_ACQUIRETIME
Time for the acquire command.
|
static String |
KEY_ALTITUDE
The height of the target for calculating CCD rotation.
|
static String |
KEY_AUXILIARYGUIDER
The properties of the
Guiding class. |
static String |
KEY_AZIMUTH
The azimuth of the target for calculating CCD rotation.
|
static String |
KEY_CLEARFRAME
The entire size of the CCD.
|
static String |
KEY_CLEARTIME
The clearing exposure time.
|
static String |
KEY_COARSEUNIT
The properties of the
AcquiringUnit. |
static String |
KEY_COMMUNICATOR
The properties of the
AdapterTelescopeCaster class. |
static String |
KEY_DARKTILER
The properties of the dark tiler for dawn action.
|
static String |
KEY_DECTARGET
The internal declination of the target set on acquire,
|
static String |
KEY_DEDITHER
If a dithering offset on the de is applied, this parameter reflects it.
|
static String |
KEY_DEROTATOROFF
The name of the
Value holding the derotator offset. |
static String |
KEY_EXPOSUREBIN
If set, always set this binning on exposure requests.
|
static String |
KEY_EXPOSUREFRAME
The window on the guider ccd used on exposures, unbinned.
|
static String |
KEY_EXPOSUREHEAD
Fits file name header for single exposures.
|
static String |
KEY_EXPOSURETIMELEFT
The parameter holding the exposure time left.
|
static String |
KEY_FINDTIME
Time for the find command.
|
static String |
KEY_FINEUNIT
The properties of the
AcquiringUnit. |
static String |
KEY_FOCUS
The focus of the telescope.
|
static String |
KEY_FOCUSTIME
Time for the focus command.
|
static String |
KEY_FOCUSUNIT
The properties of the
FocussingUnit. |
static String |
KEY_FOVMISSMATCH |
static String |
KEY_FRACTIONALEXPOSE
The parameter holding the fractional exposure time.
|
static String |
KEY_GUIDERCCD
The name of the CCD driver class used for guiding.
|
static String |
KEY_GUIDERDELAY
Delay until guiding stars.
|
static String |
KEY_GUIDERMAG
The key for the faintest star to guide on.
|
static String |
KEY_GUIDESTARMERIT
This expression, with $0=mag and $1=distance merits the guide star
|
static String |
KEY_GUIDINGUNIT
The properties of the
GuidingUnit. |
static String |
KEY_IMAGEROTATION
The name of the
Value holding the plain image rotation. |
static String |
KEY_KEEPOFFSETS
If true, we record the az/alt offset in a data output stream.
|
static String |
KEY_KEEPPIDS
If true, we record the pid offset in a data output stream.
|
static String |
KEY_LOSTCOUNT
Issued to the local parameter cluster as number of target losts.
|
static String |
KEY_MAGTARGET
The internal magnitude of the target set on acquire,
|
static String |
KEY_MOVETIME
The time-out for move-telescopes.
|
static String |
KEY_OFFSETAVERAGE
Issued to the local parameter cluster as average offset.
|
static String |
KEY_OFFSETDELAY
Delay on guiding stop, if offsets are active.
|
static String |
KEY_OFFSETWAIT
Maximum offset delays waited on stop guiding.
|
static String |
KEY_RADITHER
If a dithering offset on the ra is applied, this parameter reflects it.
|
static String |
KEY_RATARGET
The internal right ascension of the target set on acquire,
|
static String |
KEY_SEEING
Issued to the local parameter cluster as the seeing estimate.
|
static String |
KEY_SPURIOUSCOUNT
Issued to the local parameter cluster as number of guiding losts.
|
static String |
KEY_STARTGUIDINGTIME
Time for starting the guiding.
|
static String |
KEY_STARTTILINGTIME
Time for starting the guiding.
|
static String |
KEY_STOPGUIDINGTIME
Time for stopping the guiding.
|
static String |
KEY_STOPTILINGTIME
Time for stopping the guiding.
|
static String |
KEY_TARGETNAME
The rmi-target name for errors on acquire,
|
static String |
KEY_WINDMAX
The wind-speed maxometer parameter.
|
private String |
lastunique
Last recorded unique.
|
private DataOutputStream |
offrecord
An object output stream were we serialize our alt/az offs in.
|
private static String |
OFFSETEXTENSION
The extension for the recorded offsets.
|
private DataOutputStream |
pidrecord
An object output stream were we serialize our pids offs in.
|
private static String |
PIDSEXTENSION
The extension for the recorded pids.
|
DEFUNIQUE, KEY_ABORTTIME, KEY_AUTOMATIC, KEY_COMMTIME, KEY_DRIVERS, KEY_HISTORYDB, KEY_INITTIME, KEY_NODB, KEY_OBSERVEDB, KEY_OVERRULEAUTO, KEY_PARKTIME, KEY_PERMISSIONDB, KEY_PROPOSALDB, KEY_QUITTIME, KEY_REAUTO, KEY_RESETTIME, KEY_SET, KEY_SHUTDOWNDELAY, KEY_STATUSTIME, KEY_TARGETDB, KEY_TASKDB, KEY_UNIQUE, KEY_USERDB, lastabort, lastinit, lastpark, lastreset, telescopeKEY_BIND, KEY_BINDNAME, KEY_COMMANDCASTER, KEY_ERRORCOOLKEY_ALIVE, KEY_EXPORTPORT, KEY_INIT, KEY_LISTENERNAME, KEY_RETRY, KEY_RETRYSLEEPKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORNAMING_EXTENSIONNAMING_EXTENSIONKEY_INITDEPTHKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Constructor and Description |
|---|
AuxiliaryMaster(Map<String,String> prop)
Constructs a new adapter master.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
abortMaster(CommandEvent ce)
Method called to abort the device.
|
boolean |
accepts(CommandEvent ce)
Checks if the command received is accepted by the adapter master.
|
private boolean |
acquire(AcquireAuxiliary com)
Brings the acquire star at the cross-hair of the guider.
|
boolean |
automatic()
Enables automatic operation.
|
boolean |
center(double[] ra,
double[] de,
float[] m,
float[] bv)
We center at a star by finding and acquiring it.
|
protected String |
coarseType()
Delivers a unique id for the currently active target in guiding mode.
|
private AuxiliaryUnit |
createAuxiliaryUnit(String unit)
Sets all required knowledge available to an adapter unit.
|
private boolean |
defineCenter(double ra,
double de)
We set the center of the science field.
|
boolean |
ditherOffset(double ra,
double de)
Sets a dither offset which is allowed only in manual mode.
|
private ErrorEvent |
doAcquire(String mode)
Acquires a star.
|
private boolean |
doSetDither(double dra,
double dde)
Applies a dithering to the auxiliarz guider.
|
private boolean |
doStartExposing(double tsec)
Starts the continuous getting of exposures with the stated exposure time.
|
private ErrorEvent |
doStartGuiding(String mode)
Starts guiding.
|
private boolean |
doStartTiling()
Stars a tiling process if a tiler is assigned.
|
private boolean |
doStopExposing()
We stop continuous exposures and join on the camera for exit.
|
private boolean |
doStopGuiding()
Stops the guiding.
|
private boolean |
doStopTiling()
Stops the tiling process if a tiler is assigned.
|
private ErrorEvent |
doSuggest(SuggestAcquireAuxiliary com)
Suggest offsets of a star as in a regular acquire, but does not apply to
the telescope.
|
private boolean |
find(FindAuxiliary cmd)
Registers a list of stars that are expected in the following acquire
field.
|
protected String |
fineType()
Delivers a unique id for the currently active target in guiding mode.
|
private boolean |
geometry(int xoff,
int yoff,
int xsize,
int ysize,
int xbin,
int ybin)
Sets the geometry of the next image on the ccd.
|
protected int |
getAcknowledgeNumber(CommandEvent cmd)
Returns the number of acknowledge events produced for each command.
|
protected long |
getCompletionTime(CommandEvent cmd,
int acknr)
Returns the individual completion times.
|
private int |
getNextExp()
Returns the next available command id.
|
private static List<Star> |
getStarDescriptions(double[] ra,
double[] de,
float[] mag,
float[] bv)
Converts an array of ra, dec, Vmag, and B-V into a list of star
descriptions.
|
private boolean |
guideStar(SimpleStar s)
We set the guiding star.
|
protected String |
guidingHead()
Delivers a unique id for the currently active target in guiding mode.
|
private void |
init2()
Additionally initializes the adapter-to-telescope communication and
defaults values for fixed rotator, guiding and acquisition time.
|
boolean |
initGuider()
Initializes the guider and prepares it for a new guider loop.
|
protected boolean |
initializeMaster(CommandEvent ce)
Initializes the adapter.
|
void |
initStep(int curstep)
Additionally initializes the filter-to-position lookup tables.
|
static void |
main(String[] arg)
Constructs a new adapter master.
|
boolean |
manual()
Disables automatic operation.
|
private boolean |
moveTelescope(double ra,
double de)
For manual access we also allow moving the telescope.
|
boolean |
offsetAzAlt(double daz,
double dalt)
Offsets the telescope for a given amount in azimuth and altitude,
degrees.
|
private boolean |
offsetTelescope(double daz,
double dalt)
For manual access to telescope offsets.
|
boolean |
offsetXY(int dx,
int dy)
Offsets the telescope for a given pixel distance on the guider ccd.
|
protected boolean |
parkMaster(CommandEvent ce)
Parks the adapter.
|
private void |
prepare()
Prepares the master for a new target.
|
private boolean |
prepareAcquire(StarCommand com)
Prepares any acquiring process by calculating and setting guide stars,
ra/de center etc.
|
protected boolean |
processCommand(CommandEvent cmd,
int acknr)
Process the command.
|
void |
quit()
Gracefully quite the adapter master.
|
protected void |
quitMaster(CommandEvent ce)
Quits the adapter.
|
protected boolean |
resetMaster(CommandEvent ce)
Resets the adapter.
|
boolean |
singleShot(double t)
If in manual mode, we take a single guider camera shot.
|
boolean |
startGuiding()
Guides on a previously acquired star.
|
private boolean |
startGuiding(StartGuidingAuxiliary sga)
Starts the guiding in the required mode.
|
protected Object |
statusMaster(CommandEvent ce)
Returns a status message.
|
boolean |
stopGuiding()
Stops guiding if active.
|
private boolean |
takeExposure(double tsec)
Take an exposure with the guiding camera.
|
addErrorListener, addRmiErrorListener, createCommunicator, createCommunicator, exit, external, formatWithGlobals, getAllDrivers, getDriver, getHistorySql, getObserveSql, getOffsetCaster, getParameterByKey, getParameterByName, getParameterCluster, getParameterValueByKey, getParameterValueByName, getPermissionSql, getProposalSql, getStatus, getTargetSql, getTaskSql, getUnique, getUniqueId, getUserSql, initialize, isAlive, isAuto, isManual, isPassive, park, reload, rescanned, reset, resetAlarm, resetAllDrivers, restartAllDrivers, revert, rmiAddParameter, rmiCommand, rmiGet, rmiGetAllParameterNames, rmiRemoveParameter, rmiSet, setLastError, setOff, setParameterValueByKey, setParameterValueByName, setPassive, shutdown, zeroAllOmcaddRmiAcknowledgeListener, addRmiDoneListener, bindDefault, containsRemoteProperty, deregisterAtCaster, equals, getLastError, getRemoteProperties, getRemoteProperty, hashCode, notifyAcknowledgeListener, notifyDoneListener, registerAtCaster, removeRmiAcknowledgeListener, removeRmiDoneListener, sendAllPrematureDone, sendPrematureDone, setRemoteProperty, toString, unbindDefaultbindToRegistry, getBindName, isValid, notifyErrorListener, removeErrorListener, removeRmiErrorListener, sendError, sendError, sendError, sendStatus, sendStatus, sendStatus, unbindFromRegistryallBound, blockBinding, blockBinding, disconnect, getIP, getListenerName, isConnected, listenerName, releaseBinding, releaseBinding, startBinding, startBindingclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesfinalize, getClass, notify, notifyAll, wait, wait, waitexternal, getStatus, initialize, park, reset, setPassivebindToRegistry, isValid, unbindFromRegistryremoveErrorListenergetListenerNamedisconnect, isConnecteddefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiesprivate static final String OFFSETEXTENSION
private static final String PIDSEXTENSION
public static final String KEY_GUIDERCCD
public static final String KEY_DARKTILER
public static final String KEY_CLEARFRAME
public static final String KEY_CLEARTIME
public static final String KEY_AUXILIARYGUIDER
Guiding class.public static final String KEY_COMMUNICATOR
AdapterTelescopeCaster class.public static final String KEY_FOCUSUNIT
FocussingUnit.public static final String KEY_COARSEUNIT
AcquiringUnit.public static final String KEY_FINEUNIT
AcquiringUnit.public static final String KEY_GUIDINGUNIT
GuidingUnit.public static final String KEY_TARGETNAME
public static final String KEY_RATARGET
public static final String KEY_DECTARGET
public static final String KEY_RADITHER
public static final String KEY_DEDITHER
public static final String KEY_MAGTARGET
public static final String KEY_DEROTATOROFF
Value holding the derotator offset.public static final String KEY_IMAGEROTATION
Value holding the plain image rotation.public static final String KEY_ALTITUDE
public static final String KEY_AZIMUTH
public static final String KEY_FOCUS
public static final String KEY_LOSTCOUNT
public static final String KEY_SPURIOUSCOUNT
public static final String KEY_OFFSETAVERAGE
public static final String KEY_ACQUIREOFFSET
public static final String KEY_SEEING
public static final String KEY_WINDMAX
public static final String KEY_EXPOSURETIMELEFT
public static final String KEY_FRACTIONALEXPOSE
public static final String KEY_FINDTIME
public static final String KEY_ACQUIRETIME
public static final String KEY_FOCUSTIME
public static final String KEY_STARTGUIDINGTIME
public static final String KEY_STOPGUIDINGTIME
public static final String KEY_STARTTILINGTIME
public static final String KEY_STOPTILINGTIME
public static final String KEY_GUIDERDELAY
public static final String KEY_OFFSETDELAY
public static final String KEY_OFFSETWAIT
public static final String KEY_KEEPOFFSETS
public static final String KEY_KEEPPIDS
public static final String KEY_MOVETIME
public static final String KEY_EXPOSUREFRAME
public static final String KEY_GUIDERMAG
public static final String KEY_GUIDESTARMERIT
public static final String KEY_FOVMISSMATCH
public static final String KEY_EXPOSUREHEAD
public static final String KEY_EXPOSUREBIN
private static final String DEFGUIDERCCD
private static final Rectangle DEFCLEARFRAME
private static final long DEFCLEARTIME
private static final String DEFAUXILIARYGUIDER
private static final String DEFCOMMUNICATOR
public static final String DEFTARGETNAME
public static final String DEFRATARGET
public static final String DEFDECTARGET
public static final String DEFMAGTARGET
public static final String DEFDEROTATOROFF
public static final String DEFIMAGEROTATION
public static final String DEFAZIMUTH
public static final String DEFALTITUDE
private static final String DEFACQUIREOFFSET
public static final String DEFFOCUS
public static final String DEFLOSTCOUNT
public static final String DEFSPURIOUSCOUNT
public static final String DEFOFFSETAVERAGE
public static final String DEFSEEING
public static final String DEFWINDMAX
public static final String DEFEXPOSURETIMELEFT
public static final String DEFFRACTIONALEXPOSE
private static final long DEFFINDTIME
private static final long DEFACQUIRETIME
private static final long DEFFOCUSTIME
private static final long DEFSTARTGUIDINGTIME
private static final long DEFSTOPGUIDINGTIME
private static final long DEFSTARTTILINGTIME
private static final long DEFSTOPTILINGTIME
private static final long DEFFIXEDROTATORTIME
private static final long DEFGUIDERDELAY
private static final long DEFOFFSETDELAY
private static final int DEFOFFSETWAIT
private static final boolean DEFKEEPOFFSETS
private static final boolean DEFKEEPPIDS
private static final long DEFMOVETIME
public static final float DEFGUIDERMAG
private static final double DEFFOVMISSMATCH
private static final String DEFEXPOSUREHEAD
private AuxiliaryCoarseUnit coarsetask
private AuxiliaryFineUnit finetask
private AuxiliaryGuidingUnit guidetask
private OffsetCaster com
private AuxiliaryGuider auxiliary
private int guidervirgin
private int acquirevirgin
private DataOutputStream offrecord
private DataOutputStream pidrecord
private String lastunique
private int expid
private AuxiliaryMaster.ContinuousExposure continuous
public AuxiliaryMaster(Map<String,String> prop) throws RemoteException
#init section of the parent class.RemoteExceptionpublic void initStep(int curstep)
throws InitException
initStep in interface StepInitializableinitStep in class GenericMasterInitExceptionprivate void init2()
private AuxiliaryUnit createAuxiliaryUnit(String unit)
public boolean automatic()
throws RemoteException
automatic in interface ListenerControllingautomatic in class GenericMasterRemoteExceptionpublic boolean manual()
throws RemoteException
doStopGuiding() method to kill any ongoing guiding.manual in interface ListenerControllingmanual in class GenericMasterRemoteExceptionpublic boolean center(double[] ra,
double[] de,
float[] m,
float[] bv)
throws RemoteException
center in interface GuiderControllingRemoteExceptionpublic boolean ditherOffset(double ra,
double de)
throws RemoteException
ditherOffset in interface DitherControllingRemoteExceptionpublic boolean initGuider()
throws RemoteException
GuiderControllinginitGuider in interface GuiderControllingRemoteExceptionpublic boolean singleShot(double t)
throws RemoteException
singleShot in interface GuiderControllingRemoteExceptionpublic boolean offsetAzAlt(double daz,
double dalt)
throws RemoteException
offsetAzAlt in interface GuiderControllingRemoteExceptionpublic boolean offsetXY(int dx,
int dy)
throws RemoteException
offsetXY in interface GuiderControllingdx - Difference in pixeldy - Difference in pixelRemoteExceptionpublic boolean startGuiding()
throws RemoteException
startGuiding in interface GuiderControllingRemoteExceptionpublic boolean stopGuiding()
throws RemoteException
stopGuiding in interface GuiderControllingRemoteExceptionpublic void quit()
throws RemoteException
quit in interface ListenerControllingquit in class GenericMasterRemoteExceptionpublic boolean accepts(CommandEvent ce) throws RemoteException
AuxiliaryCommands.accepts in interface RmiCommandListenerRemoteExceptionprotected int getAcknowledgeNumber(CommandEvent cmd)
getAcknowledgeNumber in class GenericMasterprotected long getCompletionTime(CommandEvent cmd, int acknr)
getCompletionTime in class GenericMastercmd - The command to process.acknr - The number of the acknowledge that will be sent back.protected boolean processCommand(CommandEvent cmd, int acknr)
processCommand in class GenericMasterprotected boolean initializeMaster(CommandEvent ce)
resetMaster(stella.CommandEvent).initializeMaster in class GenericMasterce - Non-null in automatic mode.protected boolean abortMaster(CommandEvent ce)
abortMaster in class GenericMasterce - Non-null in automatic mode.protected Object statusMaster(CommandEvent ce)
statusMaster in class GenericMasterce - Non-null in automatic mode.ErrorEvent.protected boolean resetMaster(CommandEvent ce)
resetMaster in class GenericMasterce - Non-null in automatic mode.protected boolean parkMaster(CommandEvent ce)
parkMaster in class GenericMasterce - Non-null in automatic mode.protected void quitMaster(CommandEvent ce)
parkMaster(stella.CommandEvent), but also deregisters
from the telescope and the registry.quitMaster in class GenericMasterce - Non-null in automatic mode, ignored in this implementationprotected String guidingHead()
protected String coarseType()
protected String fineType()
private boolean moveTelescope(double ra,
double de)
private boolean offsetTelescope(double daz,
double dalt)
private boolean doSetDither(double dra,
double dde)
private boolean find(FindAuxiliary cmd)
Guiding.RawStar
objects that can be passed into the Guiding.match(java.util.List<stella.adapter.Guiding.RawStar>, java.util.List<stella.adapter.Guiding.RawStar>, double, double) method. We
proceed as follows:
KEY_IMAGEROTATION to the current target height.#KEY_EXPOSEACQUIRE and the second in #KEY_EXPOSEGUIDE.
#KEY_GUIDERSCALE and their ra/dec.
private void prepare()
private boolean startGuiding(StartGuidingAuxiliary sga)
private boolean takeExposure(double tsec)
private boolean defineCenter(double ra,
double de)
private boolean guideStar(SimpleStar s)
private boolean prepareAcquire(StarCommand com)
private boolean acquire(AcquireAuxiliary com)
private int getNextExp()
private ErrorEvent doAcquire(String mode)
AuxiliaryUnit#NONETYPE: No acquire, return immediately with
null.AuxiliaryUnit.COARSETYPE: Acquire only with the coarse
acquire unit, return the error of the unit.AuxiliaryUnit.FINETYPE: The default modus. Acquire with
coarse unit, if this unit returns null, continue with fine unit. Return
null if both units return null.AuxiliaryUnit.PINHOLETYPE: Like fine, but use a secondary unit
for ultra-precise acquires.private ErrorEvent doSuggest(SuggestAcquireAuxiliary com)
private ErrorEvent doStartGuiding(String mode)
stopGuiding() is called.private boolean doStopGuiding()
private boolean doStartTiling()
private boolean doStopTiling()
private boolean doStartExposing(double tsec)
doStopExposing() or if a new
acquire sequence is started.private boolean doStopExposing()
private boolean geometry(int xoff,
int yoff,
int xsize,
int ysize,
int xbin,
int ybin)
MainCamera related to the size/origin/binning of the image.private static List<Star> getStarDescriptions(double[] ra, double[] de, float[] mag, float[] bv)
public static void main(String[] arg) throws RemoteException
RemoteException