kstars
celestronprotocol.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef CELESTRON_PROTOCOL_H
00013 #define CELESTRON_PROTOCOL_H
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #define LOWER 90.
00024
00025
00026
00027
00028 #define HIGHER 0.
00029
00030
00031
00032
00033 #define REVERSE_NS 0
00034
00035
00036
00037
00038 #define MAXSLEWRATE 4
00039
00040
00041
00042
00043
00044
00045
00046
00047 #define SLEW 0
00048 #define FIND 1
00049 #define CENTER 2
00050 #define GUIDE 3
00051
00052 #if REVERSE_NS > 0
00053 #define NORTH 3
00054 #define SOUTH 0
00055 #else
00056 #define NORTH 0
00057 #define SOUTH 3
00058 #endif
00059
00060 #define EAST 2
00061 #define WEST 1
00062
00063
00064
00065 # define SLEWRATE8 8
00066 # define SLEWRATE4 4
00067 # define SLEWRATE3 3
00068 # define SLEWRATE2 2
00069
00070
00071
00072 #define BRIGHTER 16
00073 #define DIMMER 8
00074 #define BLINK0 0
00075 #define BLINK1 1
00076 #define BLINK2 2
00077 #define BLINK3 4
00078
00079
00080
00081
00082 #define FOCUSOUT 8
00083 #define FOCUSIN 4
00084 #define FOCUSSTOP 0
00085 #define FOCUSSLOW 1
00086 #define FOCUSFAST 2
00087
00088
00089
00090
00091 #define ROTATORON 1
00092 #define ROTATOROFF 0
00093
00094
00095
00096
00097 #define FANON 1
00098 #define FANOFF 0
00099
00100 #ifdef __cplusplus
00101 extern "C" {
00102 #endif
00103
00104 int ConnectTel(char *port);
00105 void DisconnectTel(void);
00106 int CheckConnectTel(void);
00107
00108 void SetRate(int newRate);
00109 void SetLimits(double limitLower, double limitHigher);
00110 void StartSlew(int direction);
00111 void StopSlew(int direction);
00112 double GetRA(void);
00113 double GetDec(void);
00114 int SlewToCoords(double newRA, double newDec);
00115 int SyncToCoords(double newRA, double newDec);
00116 int CheckCoords(double desRA, double desDec);
00117
00118 void StopNSEW(void);
00119 int SetSlewRate(void);
00120
00121 int SyncLST(double newTime);
00122 int SyncLocalTime();
00123
00124 void Reticle(int reticle);
00125 void Focus(int focus);
00126 void Derotator(int rotate);
00127 void Fan(int fan);
00128
00129 #ifdef __cplusplus
00130 }
00131 #endif
00132
00133 #endif
00134