public abstract class TelIF
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONNECTED |
static int |
CONNECTION_FAILURE |
double |
DEC |
static int |
EXECUTION_FAILURE |
static int |
INCORRECT_RESPONSE_FORMAT |
static int |
NOT_CONNECTED |
double |
RA |
static int |
SUCCESS |
static int |
TARGET_OUT_OF_RANGE |
static int |
UNRESOLVED_ERROR |
| Constructor and Description |
|---|
TelIF()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
abort()
Stops the execution of the current command.
|
int |
close()
Closes connection to the WinTCS
|
int |
init(java.lang.String ipAddress,
int port)
Initialises connection to the TCS.
|
int |
move(RightAscension RA,
Declination dec,
double epoch)
Moves the telescope to the coordinates provided, in epoch 2000.
|
TelescopeCoords |
retrieveCoords()
Retrieves the last updated coordinates.
|
TelescopeStatus |
retrieveStatus()
Retrieves the last updated status flags.
|
int |
setTracking(double RARate,
double decRate)
Defines the tracking of the telescope by setting the rate of the RA and Dec coordinates.
|
int |
testWinTcsComnoCommand()
Send a COMNO command and get the response.
|
int |
testWinTcsCoordsCommand()
Send a COORDS command and get the response.
|
int |
testWinTcsGoCommand()
Send a GO command.
|
int |
testWinTcsSlewCommand(double RA,
double Dec,
double epoch)
Send a SLEW command.
|
int |
testWinTcsStatCommand()
Send a STAT command and get the response.
|
int |
testWinTcsStopCommand()
Send a STOP command.
|
int |
testWinTcsTrackCommand(double RARate,
double DecRate,
double auxRARate,
double auxDecRate)
Send a TRACK command.
|
int |
updateStatus()
Updates the status identifiers of the TCS.
|
public static final int NOT_CONNECTED
public static final int CONNECTED
public static final int SUCCESS
public static final int CONNECTION_FAILURE
public static final int EXECUTION_FAILURE
public static final int INCORRECT_RESPONSE_FORMAT
public static final int TARGET_OUT_OF_RANGE
public static final int UNRESOLVED_ERROR
public double RA
public double DEC
public int init(java.lang.String ipAddress,
int port)
public int move(RightAscension RA, Declination dec, double epoch)
RA - dec - public int setTracking(double RARate,
double decRate)
RARate - decRate - public int abort()
public int updateStatus()
public TelescopeStatus retrieveStatus()
public TelescopeCoords retrieveCoords()
public int close()
public int testWinTcsSlewCommand(double RA,
double Dec,
double epoch)
RA - Dec - public int testWinTcsGoCommand()
public int testWinTcsStopCommand()
public int testWinTcsTrackCommand(double RARate,
double DecRate,
double auxRARate,
double auxDecRate)
RARate - DecRate - auxRARate - auxDecRate - public int testWinTcsCoordsCommand()
public int testWinTcsStatCommand()
public int testWinTcsComnoCommand()