|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RotatorOrbProcess
ORB process on rotators.
Method Summary | |
---|---|
RotatorCapabilities |
getCapabilities(long rotatorId)
Returns all capabilities of a rotator. |
RotatorCharacteristics |
getCharacteristics(long rotatorId)
Returns all characteristics of a rotator. |
float |
getPosition(long rotatorId)
Returns the current instantaneous rotator position. |
boolean |
getReverse(long rotatorId)
Returns TRUE if the rotation and angular direction must be reversed for the
optics. |
float |
getTargetPosition(long rotatorId)
Returns the destination position angle for move(long, float) and
moveAbsolute(long, float) . |
void |
halt(long rotatorId)
Immediately stops any rotator motion due to a previous move(long, float) or
moveAbsolute(long, float) method call. |
boolean |
isMoving(long rotatorId)
Returns TRUE if the rotator is currently moving. |
void |
move(long rotatorId,
float position)
Causes the rotator to move position degrees relative to the current getPosition(long) value. |
void |
moveAbsolute(long rotatorId,
float position)
Causes the rotator to move the absolute position of getPosition(long) degrees. |
void |
setReverse(long rotatorId,
boolean reverse)
Sets TRUE if the rotation and angular direction must be reversed for the optics. |
Methods inherited from interface org.minetti.astrodevice.common.orb.DeviceOrbProcess |
---|
action, commandBlind, commandBoolean, commandString, getDescription, getDeviceList, getDeviceName, getDriverInfo, getDriverVersion, getInterfaceVersion, getPluginName, getSupportedActions, isConnected, setConnected, showSetupDialog |
Method Detail |
---|
RotatorCharacteristics getCharacteristics(long rotatorId) throws RemoteException
rotatorId
- Rotator identifier.
RemoteException
- Exception if an error occurred.RotatorCapabilities getCapabilities(long rotatorId) throws RemoteException
rotatorId
- Rotator identifier.
RemoteException
- Exception if an error occurred.float getPosition(long rotatorId) throws RemoteException
The position is expressed as an angle from 0 up to but not including 360 degrees, counter-clockwise against the sky. This is the standard definition of Position Angle. However, the rotator does not need to (and in general will not) report the true Equatorial Position Angle, as the attached imager may not be precisely aligned with the rotator's indexing. It is up to the client to determine any offset between mechanical rotator position angle and the true Equatorial Position Angle of the imager, and compensate for any difference.
The optional getReverse(long)
/setReverse(long, boolean)
methods is provided
in order to manage rotators being used on optics with odd or even number of reflections. With
the setReverse(long, boolean)
calling in the correct position for the optics, the
reported position angle must be counter-clockwise against the sky.
rotatorId
- Rotator identifier.
RemoteException
- Exception if an error occurred.float getTargetPosition(long rotatorId) throws RemoteException
move(long, float)
and
moveAbsolute(long, float)
.
Upon calling move(long, float)
or moveAbsolute(long, float)
, this value
immediately changes to the position angle to which the rotator is moving. The value is
retained until a subsequent call to move(long, float)
or
moveAbsolute(long, float)
.
rotatorId
- Rotator identifier.
move(long, float)
and
moveAbsolute(long, float)
.
RemoteException
- Exception if an error occurred.boolean getReverse(long rotatorId) throws RemoteException
TRUE
if the rotation and angular direction must be reversed for the
optics.
See the definition of getPosition(long)
. Raises an error if not supported.
rotatorId
- Rotator identifier.
TRUE
if the rotation and angular direction must be reversed for the
optics.
RemoteException
- Exception if an error occurred.void setReverse(long rotatorId, boolean reverse) throws RemoteException
TRUE
if the rotation and angular direction must be reversed for the optics.
See the definition of getPosition(long)
. Raises an error if not supported.
rotatorId
- Rotator identifier.reverse
- TRUE
if the rotation and angular direction must be reversed for
the optics.
RemoteException
- Exception if an error occurred.
PropertyNotImplementedException
- Throw a PropertyNotImplementedException if the
rotator cannot reverse.boolean isMoving(long rotatorId) throws RemoteException
TRUE
if the rotator is currently moving.
Rotation is asynchronous, that is, when the move(long, float)
method is called, it
starts the rotation, then returns immediately. During rotation, isMoving must be
TRUE
, else it must be FALSE
.
rotatorId
- Rotator identifier.
TRUE
if the rotator is moving to a new position. FALSE
if
the rotator is stationary.
RemoteException
- Exception if an error occurred.void move(long rotatorId, float position) throws RemoteException
getPosition(long)
value.
Calling move causes the return value of getTargetPosition(long)
method to change to
the sum of the current angular position and the return value by getPosition(long)
method (modulo 360 degrees), then starts rotation to getTargetPosition(long)
.
rotatorId
- Rotator identifier.position
- Relative position to move in degrees from current getPosition(long)
.
RemoteException
- Exception if an error occurred.void moveAbsolute(long rotatorId, float position) throws RemoteException
getPosition(long)
degrees.
Calling moveAbsolute causes the return value of getTargetPosition(long)
method to
change to the value of the return value by getPosition(long)
method, then starts
rotation to getTargetPosition(long)
.
rotatorId
- Rotator identifier.position
- Absolute position in degrees.
RemoteException
- Exception if an error occurred.void halt(long rotatorId) throws RemoteException
move(long, float)
or
moveAbsolute(long, float)
method call.
This is an optional method. Raises an error if not supported.
rotatorId
- Rotator identifier.
RemoteException
- Exception if an error occurred.
MethodNotImplementedException
- Throw a MethodNotImplementedException if the rotator
cannot halt.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |