public class VattDriver extends VattHandler implements TelescopeDriver, ParameterDepending, CommandCodes
| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFPARALLACTICANGLE
Name of the target height parameter.
|
static String |
KEY_PARALLACTICANGLE
Name of the target height parameter.
|
private Value |
parangle
Value stating parallactic angle of target.
|
KEY_ALWAYSCLOSEKEY_CLOSETIMEOUT, KEY_SOCKETPORT, KEY_SOCKETSERVER, KEY_SOCKETTIMEOUTKEY_DRIVERNAMEKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORNACKPARAMS, NCMDPARAMS, TCP_PORT, TCP_PORT_IN, TCP_PORT_OUT, VATT_CMD_CLIENT_TERM, VATT_CMD_CONVERT_COORD, VATT_CMD_ERROR_NOTIMPLEMENTED, VATT_CMD_ERROR_UNKNOWN_CMD, VATT_CMD_GUIDER_ERROR_BADAXIS, VATT_CMD_GUIDER_INIT_ALL, VATT_CMD_GUIDER_INIT_AXIS, VATT_CMD_GUIDER_MOVE_AXIS, VATT_CMD_GUIDER_STATUS_AXIS, VATT_CMD_INIT, VATT_CMD_INIT_AXES_ALL, VATT_CMD_INIT_AXES_ALT, VATT_CMD_INIT_AXES_AZ, VATT_CMD_INIT_AXES_DEROT, VATT_CMD_INIT_COORDS, VATT_CMD_INIT_DOME, VATT_CMD_INIT_GUIDER_ALL, VATT_CMD_INIT_GUIDER_CAL, VATT_CMD_INIT_GUIDER_FILT, VATT_CMD_INIT_GUIDER_FOLDM, VATT_CMD_INIT_GUIDER_GUIDE, VATT_CMD_INIT_GUIDER_SLIT, VATT_CMD_INIT_MIRROR_ALL, VATT_CMD_INIT_MIRROR_COVER, VATT_CMD_INIT_MIRROR_CTRL, VATT_CMD_INIT_MIRROR_PNEUM, VATT_CMD_INIT_MIRROR_TEMP, VATT_CMD_MISC_DISABLEMC, VATT_CMD_MISC_DISABLESLIT, VATT_CMD_MISC_SETUSERTEMP, VATT_CMD_MISC_TOGGLECELLFANS, VATT_CMD_MISC_TOGGLEELBRAKE, VATT_CMD_MISC_TOGGLEMC, VATT_CMD_MISC_TOGGLESLIT, VATT_CMD_MISC_TOGGLETEMP, VATT_CMD_MOVE_ALTAZ_ABS_A0, VATT_CMD_MOVE_ALTAZ_ABS_A01, VATT_CMD_MOVE_ALTAZ_ABS_A1, VATT_CMD_MOVE_ALTAZ_ABS_A2, VATT_CMD_MOVE_ALTAZ_ABS_ALL, VATT_CMD_MOVE_ALTAZ_ABS_STOP, VATT_CMD_MOVE_ALTAZ_REL_A0, VATT_CMD_MOVE_ALTAZ_REL_A01, VATT_CMD_MOVE_ALTAZ_REL_A1, VATT_CMD_MOVE_ALTAZ_REL_A2, VATT_CMD_MOVE_ALTAZ_REL_ALL, VATT_CMD_MOVE_ALTAZ_REL_STOP, VATT_CMD_MOVE_ERROR_DRVDSBLD, VATT_CMD_MOVE_ERROR_NOTRCK, VATT_CMD_MOVE_ERROR_OOL, VATT_CMD_MOVE_ERROR_QLCKD, VATT_CMD_MOVE_OFFSET_CLEAR, VATT_CMD_MOVE_OFFSET_FID, VATT_CMD_MOVE_OFFSET_NEW, VATT_CMD_MOVE_OFFSET_REPORT, VATT_CMD_MOVE_OFFSET_SLOT, VATT_CMD_MOVE_OFFSET_UPDATE, VATT_CMD_MOVE_PADDLEBUTTON, VATT_CMD_MOVE_RADEC_ABS_A0, VATT_CMD_MOVE_RADEC_ABS_A01, VATT_CMD_MOVE_RADEC_ABS_A1, VATT_CMD_MOVE_RADEC_ABS_A2, VATT_CMD_MOVE_RADEC_ABS_ALL, VATT_CMD_MOVE_RADEC_ABS_STOP, VATT_CMD_MOVE_RADEC_REL_A0, VATT_CMD_MOVE_RADEC_REL_A01, VATT_CMD_MOVE_RADEC_REL_A1, VATT_CMD_MOVE_RADEC_REL_A2, VATT_CMD_MOVE_RADEC_REL_ALL, VATT_CMD_MOVE_RADEC_REL_STOP, VATT_CMD_MOVE_SET_GUIDERATE, VATT_CMD_MOVE_SET_SETRATE, VATT_CMD_MOVE_STOW, VATT_CMD_MOVE_UPDATE, VATT_CMD_PMAP_CLOSE_FILE, VATT_CMD_PMAP_GO_NEXT, VATT_CMD_PMAP_OFF, VATT_CMD_PMAP_ON, VATT_CMD_PMAP_RESET_FILE, VATT_CMD_PMAP_SAVE_TDATA, VATT_CMD_PMAP_SET_ALTAZ, VATT_CMD_SECONDARY_RESET, VATT_CMD_SECONDARY_SETAUTO, VATT_CMD_SECONDARY_SETUSER, VATT_CMD_SET_RADEC_BIASRATES, VATT_CMD_STATUS_ALTABS, VATT_CMD_STATUS_ALTAZ, VATT_CMD_STATUS_CUROBJ, VATT_CMD_STATUS_RADEC, VATT_CMD_STATUS_RELAY, VATT_CMD_STATUS_SECONDARY1, VATT_CMD_STATUS_SECONDARY2, VATT_CMD_STATUS_TEMPS, VATT_CMD_STATUS_TIMES, VATT_CMD_STOP, VATT_CMD_TOGGLE_DEROT_TRACKCONFIG, KEY_CLASS| Constructor and Description |
|---|
VattDriver(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
commenceAbort()
Aborts all active commands.
|
boolean |
commenceAbsoluteOffset(double azoff,
double altoff)
Applies an absolute offset to the telescope axis.
|
boolean |
commenceAbsoluteOffset(double azoff,
double altoff,
double h)
Applies an absolute offset to the telescope axis.
|
boolean |
commenceDerotator(double position)
Sets the derotator position in the system's coordinate system, which is
in degrees.
|
boolean |
commenceDerotatorOffset(double position)
Offsets the derotator position in the system's coordinate system, which
is in degrees.
|
boolean |
commenceFocus(double position)
Sets a new focus position.
|
boolean |
commenceFocusOffset(double position)
Sets a new focus offset.
|
boolean |
commenceGuiding(boolean start)
Starts or stops tracking of the telescope and waits until the new
tracking state is reached.
|
boolean |
commenceInit()
Initializes the telescope.
|
boolean |
commenceMove(double ra,
double de)
Moves the telescope to the given ra/dec position in J2000.0 equinox.
|
boolean |
commenceMove(double ra,
double de,
double off,
boolean fol)
Moves the telescope to the given ra/dec position in J2000.0 equinox.
|
boolean |
commenceMoveAzAlt(double az,
double alt)
Moves the telescope to the desired alt/az position.
|
boolean |
commencePark()
Parks the telescope.
|
boolean |
commenceRelativeOffset(double azoff,
double altoff)
Adds a current offset to both telescope axis.
|
boolean |
commenceRelativeOffset(double azoff,
double altoff,
double h)
Adds a current offset to both telescope axis.
|
boolean |
commenceTracking(boolean start)
Starts or stops tracking of the telescope, but does not block until the
telescope is in the new state.
|
void |
registerParameter(Parameter p)
A parameter depending command should drain the necessarry information
to get valid out of a parameter value.
|
open, sendCommandauthenticate, close, exit, getInputStream, getOutputStream, getSocket, init, isOpen, setTimeoutcreateDriver, equals, getDriverName, hashCodeaugment, augment, augment, augment, augment, clone, 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, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclose, getDriverName, isOpen, openinitpublic static final String KEY_PARALLACTICANGLE
private static final String DEFPARALLACTICANGLE
private Value parangle
public boolean commenceAbort()
throws IOException,
TimeoutException
TelescopeDrivercommenceAbort in interface TelescopeDriverIOExceptionTimeoutExceptionpublic boolean commenceAbsoluteOffset(double azoff,
double altoff)
throws IOException,
TimeoutException
OffsetAccessiblecommenceAbsoluteOffset in interface OffsetAccessibleazoff - Offset of azimuth axis in degrees.altoff - Offset in altitude axis in degrees.IOExceptionTimeoutExceptionpublic boolean commenceAbsoluteOffset(double azoff,
double altoff,
double h)
throws IOException,
TimeoutException
OffsetAccessiblecommenceAbsoluteOffset in interface OffsetAccessibleazoff - Offset of azimuth axis in degrees.altoff - Offset in altitude axis in degrees.h - Height of telescope in degrees.IOExceptionTimeoutExceptionpublic boolean commenceDerotator(double position)
throws IOException,
TimeoutException
DerotatorAccessiblecommenceDerotator in interface DerotatorAccessibleIOExceptionTimeoutExceptionpublic boolean commenceDerotatorOffset(double position)
throws IOException,
TimeoutException
DerotatorAccessiblecommenceDerotatorOffset in interface DerotatorAccessibleIOExceptionTimeoutExceptionpublic boolean commenceFocus(double position)
throws IOException,
TimeoutException
FocusAccessibleUnsupportedOperationException if the telescope is not focusable.commenceFocus in interface FocusAccessibleposition - The new focus position.IOExceptionTimeoutExceptionpublic boolean commenceFocusOffset(double position)
throws IOException,
TimeoutException
FocusAccessibleUnsupportedOperationException if the telescope is not focusable.commenceFocusOffset in interface FocusAccessibleposition - The new focus offset, not cummulative.IOExceptionTimeoutExceptionpublic boolean commenceGuiding(boolean start)
throws IOException,
TimeoutException
OffsetAccessiblecommenceGuiding in interface OffsetAccessiblestart - true for start, false for stopIOExceptionTimeoutExceptionpublic boolean commenceInit()
throws IOException,
TimeoutException
TelescopeDrivercommenceInit in interface TelescopeDriverIOExceptionTimeoutExceptionpublic boolean commenceMove(double ra,
double de)
throws IOException,
TimeoutException
PointingAccessiblecommenceMove in interface PointingAccessiblera - Right ascension in degrees.de - Declination in degrees.IOExceptionTimeoutExceptionpublic boolean commenceMove(double ra,
double de,
double off,
boolean fol)
throws IOException,
TimeoutException
PointingAccessiblecommenceMove in interface PointingAccessiblera - Right ascension in degrees.de - Declination in degrees.off - The derotator offset in degressfol - If true, the derotator follows the tracking.IOExceptionTimeoutExceptionpublic boolean commenceMoveAzAlt(double az,
double alt)
throws IOException,
TimeoutException
PointingAccessiblecommenceMoveAzAlt in interface PointingAccessibleaz - Astronomical azimuth of desired telescope position.alt - Height of target of desired telescope positionIOExceptionTimeoutExceptionpublic boolean commencePark()
throws IOException,
TimeoutException
TelescopeDrivercommencePark in interface TelescopeDriverIOExceptionTimeoutExceptionpublic boolean commenceRelativeOffset(double azoff,
double altoff)
throws IOException,
TimeoutException
OffsetAccessiblecommenceRelativeOffset in interface OffsetAccessibleazoff - Offset of azimuth axis in degrees.altoff - Offset in altitude axis in degrees.IOExceptionTimeoutExceptionpublic boolean commenceRelativeOffset(double azoff,
double altoff,
double h)
throws IOException,
TimeoutException
OffsetAccessiblecommenceRelativeOffset in interface OffsetAccessibleazoff - Offset of azimuth axis in degrees.altoff - Offset in altitude axis in degrees.h - Height of telescope.IOExceptionTimeoutExceptionpublic boolean commenceTracking(boolean start)
throws IOException,
TimeoutException
PointingAccessiblecommenceTracking in interface PointingAccessiblestart - true for start, false for stopIOExceptionTimeoutExceptionpublic void registerParameter(Parameter p)
ParameterDependingregisterParameter in interface ParameterDepending