X2 Standard  Version 1.24
sberrorx.h
1 //Copyright Software Bisque 2017
2 
3 #ifndef SBERRORX_H
4 #define SBERRORX_H
5 
6 
7 #define SB_OK 0 //No error.
8 #define ERR_NOERROR 0 //|No error.|
9 
10 
11 #define ERR_COMMNOLINK 200 //|The operation failed because there is no connection to the device.|
12 #define ERR_COMMOPENING 201 //|Could not open communications port. The port is either in use by another application or not recognized by the system.|
13 #define ERR_COMMSETTINGS 202 //|The communications port could not support the specified settings.|
14 #define ERR_NORESPONSE 203 //|No response from the device.|
15 #define ERR_MEMORY 205 //|Error: memory error.|
16 #define ERR_CMDFAILED 206 //|Error: command failed.|
17 #define ERR_DATAOUT 207 //|Transmit time-out.|
18 #define ERR_TXTIMEOUT 208 //|Transmission time-out.|
19 #define ERR_RXTIMEOUT 209 //|Receive time-out.|
20 #define ERR_POSTMESSAGE 210 //|Post message failed.|
21 #define ERR_POINTER 211 //|Pointer error.|
22 #define ERR_ABORTEDPROCESS 212 //|Process aborted.|
23 #define ERR_AUTOTERMINATE 213 //|Error, poor communication, connection automatically terminated.|
24 #define ERR_INTERNETSETTINGS 214 //|Error, cannot connect to host.|
25 #define ERR_NOLINK 215 //|No connection to the device.|
26 #define ERR_DEVICEPARKED 216 //|Error, the device is parked and must be unparked using the Unpark command before proceeding.|
27 #define ERR_DRIVERNOTFOUND 217 //|A necessary driver was not found.|
28 #define ERR_LIMITSEXCEEDED 218 //|Limits exceeded.|
29 #define ERR_COMMANDINPROGRESS 219 //|Command in progress.|
30 
31 
32 #define ERR_CMD_IN_PROGRESS_MODELESSDLG 110 //|A Window command is already in progress.|
33 #define ERR_CMD_IN_PROGRESS_DBQRY 111 //|A Database Query command is already in progress.|
34 #define ERR_CMD_IN_PROGRESS_IMGSYS 112 //|An Imaging System command is already in progress.|
35 #define ERR_CMD_IN_PROGRESS_FW 113 //|A Filter Wheel command is already is in progress.|
36 #define ERR_CMD_IN_PROGRESS_SATTRACK 114 //|A Satellite Tracking command is already is in progress.|
37 #define ERR_CMD_IN_PROGRESS_CAL_RUN 115 //|A TPoint calibration run is already in progress.|
38 #define ERR_CMD_IN_PROGRESS_THEATER 116 //|A Theater Suite Command in already in progress.|
39 #define ERR_CMD_IN_PROGRESS_FOC 117 //|A Focuser command is already is in progress.|
40 #define ERR_CMD_IN_PROGRESS_OTA 118 //|An OTA command is already in progress.|
41 #define ERR_CMD_IN_PROGRESS_APR 119 //|An Automated Pointing Calibration run is already in progress.|
42 #define ERR_CMD_IN_PROGRESS_CAM 120 //|A Camera command is already in progress.|
43 #define ERR_CMD_IN_PROGRESS_MNT 121 //|A Mount command is already in progress.|
44 #define ERR_CMD_IN_PROGRESS_CLS 122 //|A Closed Loop Slew command already in progress.|
45 #define ERR_CMD_IN_PROGRESS_DOME 123 //|A Dome command is already in progress.|
46 #define ERR_CMD_IN_PROGRESS_ROT 124 //|A Rotator command is already in progress.|
47 
48 
49 #define ERR_WAITING_CAM_CMD 130 //|Error waiting on camera command to complete.|
50 #define ERR_UNEXPECTED_CALLING_THREAD 131 //|Unexpected error.|
51 #define ERR_WAITING_FOR_CAM_TEMP 132 //|Error waiting on camera temperature to complete.|
52 #define ERR_EXITING_CAM 133 //|Error deleting camera.|
53 #define ERR_MISSED_CLOCK_SYNC_TIME 134 //|Error missed syncing exposure start on unix time stamp.|
54 
55 
56 #define ERR_FOCUSERNOTHOMED 140 //|The operation failed because the focuser is not yet homed.|
57 #define ERR_ROTATORNOTHOMED 141 //|The operation failed because the rotator is not yet homed.|
58 
59 
60 #define ERR_DEVICENOTSUPPORTED 220 //|Device not supported.|
61 #define ERR_NOTPOINT 221 //|TPoint model not available.|
62 #define ERR_MOUNTNOTSYNCED 222 //|The operation failed because the mount not yet been synchronized to a known star.|
63 #define ERR_USERASCLIENT 223 //|You must use the RASClient application to connect to a remote observatory.|
64 #define ERR_THESKYNOTRUNNING 224 //|The attempted operation requires the TheSky5 Level IV or TheSky6/TheSkyX Professional Edition and it must be running.|
65 #define ERR_NODEVICESELECTED 225 //|No device has been selected.|
66 #define ERR_CANTLAUNCHTHESKY 226 //|Unable to launch TheSky.|
67 #define ERR_NOTINITIALIZED 227 //|Telescope not initialized. The telescope must be initialized in order to perform this operation.|
68 #define ERR_COMMANDNOTSUPPORTED 228 //|This command is not supported by the selected device.|
69 #define ERR_LX200DESTBELOWHORIZ 229 //|The Slew command failed because the LX200/Autostar reports that the destination coordinates are below the horizon.|
70 #define ERR_LX200OUTSIDELIMIT 230 //|The Slew command failed because the LX200/Autostar reports that slewing to the destination coordinates is not possible. Was the telescope synchronized?|
71 #define ERR_MOUNTNOTHOMED 231 //|The operation failed because the mount is not yet homed.|
72 #define ERR_TPOINT_NO_MORE_SAMPLES 232 //|TPoint not accepting additional pointing samples.|
73 #define ERR_JOYSTICKING 233 //|The operation failed because the joystick is being activated or the device is under manual control.|
74 #define ERR_NOPARKPOSITION 234 //|Error, no park position has been set.|
75 #define ERR_BADPOINTINGSAMPLE 235 //|The pointing sample was rejected because it is too far out to be valid.This error is typically the result of an exceedingly poor polar alignment or an improperly initialized mount, for example an incorrect star synchronization.To avoid this error, double check your polar alignment with the 'Rough Polar Alignment' (Paramount's only) and or telescope initialization.|
76 #define ERR_DSSRXTIMEOUT 236 //|Time-out downloading DSS photo.|
77 #define ERR_BADSYNCINTOMODEL 237 //|The 'Sync mount into the existing model' is rejected because it is too far out.Double check polar alignment, date and time and location.|
78 #define ERR_MOUNT1NOTPARKED 238 //|The mount is not parked.|
79 #define ERR_MOUNT2NOTPARKED 239 //|The mount number 2 is not parked.|
80 #define ERR_MOUNT3NOTPARKED 240 //|The mount number 3 is not parked.|
81 
82 
83 #define FLASH_REPROGRAMMED 3015 //|Turn off power, move dip switches to off position, then turn power on and reconnect.|
84 #define FLASH_NEEDSREPROGRAMMED 3016 //|Firmware needs re-programmed. This will reset all limit minimum and maximum values.|
85 #define FIRMWARE_NOT_SUPPORTED 3017 //|Firmware version is not supported.|
86 #define FLASH_IN_PROGRAM_MODE 3018 //|The mount firmware in is program mode and cannot be communicated with.Please turn the mount off.Wait at least 5 seconds.Then turn it back on to proceed.|
87 #define FLASH_NOT_IN_PROGRAM_MODE 3019 //|The mount firmware is not in the correct state to be re-programmed.|
88 
89 
90 #define ERR_OBJECTNOTFOUND 250 //|Object not found.|
91 #define ERR_OBJECTTOOLOW 251 //|Object too low.|
92 #define ERR_MISSING_NIGHTVISIONMODE_THEME 252 //|Setting Night Vision Mode failed.On Windows, make sure the required file 'TheSkyX Night Vision Mode.Theme' is available to the Windows Display Properties dialog.|
93 #define ERR_DISPLAY_PROPS_ALREADY_RUNNING 253 //|The Windows Display Properties dialog is open. Please close it and try again.|
94 #define ERR_THEME_NOT_SAVED 254 //|Night Vision cannot be invoked because the current theme has been modified without being saved. Please save the current theme by clicking Start, Control Panel, Display, and from the Themes tab, click Save As.|
95 #define ERR_NOOBJECTSELECTED 255 //|The command failed because there is no target. Find or click on a target.|
96 #define ERR_BADDOMEGEOMETRY 256 //|Invalid dome geometry.|
97 
98 
99 #define ERR_BADPACKET 300 //|Bad packet.|
100 #define ERR_BADCHECKSUM 301 //|Bad checksum.|
101 #define ERR_UNKNOWNRESPONSE 302 //|Unknown response.|
102 #define ERR_UNKNOWNCMD 303 //|Unknown command.|
103 #define ERR_BADSEQUENCENUM 304 //|Bad sequence number.|
104 #define ERR_ENCRYPTION 305 //|Packet encryption failed.|
105 
106 
107 #define ERR_TASHIFT 400 //|Track and Accumulate Shift Error.|
108 #define ERR_TAACCUM 401 //|Track and Accumulate Accumulation Error.|
109 #define ERR_TACENTROID 402 //|Track and Accumulate Centroid Error.|
110 #define ERR_TAREMOVEPEDESTAL 403 //|Track and Accumulate Pedestal Error.|
111 #define ERR_TASUBOFFSET 404 //|Track and Accumulate Subtract Offset.|
112 #define ERR_TARESIZEIMAGE 405 //|Track and Accumulate Resize Error.|
113 #define ERR_TACLEARBUF 406 //|Track and Accumulate Clear Buffer.|
114 #define ERR_TAFINDMINMAX 407 //|Track and Accumulate find min/max error.|
115 #define ERR_TASTARBRTDOWN50 408 //|Track and Accumulate star brightness down 50%.|
116 #define ERR_TAUSERRECTNOTFOUND 409 //|Track and Accumulate rectangle not found.|
117 
118 
119 #define ERR_COMBINE_BPP 500 //|Combine not available for the image bits-per-pixel.|
120 #define ERR_COMBINE_FILETYPE 501 //|Incorrect file type for this combine function.|
121 #define ERR_COMBINE_READTRKLST 502 //|Error reading track list.|
122 #define ERR_OUTOFDISKSPACE 503 //|Out of disk space.|
123 #define ERR_SATURATEDPIXELS 504 //|Cannot proceed, saturated pixels found. If possible lower your exposure time.|
124 #define ERR_FILEAREREADONLY 505 //|Unable to complete the operation because one or more files are read only (Windows) or locked (Mac).|
125 #define ERR_PATHNOTFOUND 506 //|Unable to create or access the folder.|
126 #define ERR_FILEMUSTBESAVED 507 //|Please save the photo before using this command.|
127 #define ERR_FILEISSTALE 508 //|The data file is stale.|
128 
129 
130 #define ERR_STARTOODIM1 550 //|Star too dim. Lost during +X move.|
131 #define ERR_STARTOODIM2 551 //|Star too dim. Lost during -X move.|
132 #define ERR_STARTOODIM3 552 //|Star too dim. Lost during +Y move.|
133 #define ERR_STARTOODIM4 553 //|Star too dim. Lost during -Y move.|
134 #define ERR_MOVEMENTTOOSMALL1 554 //|Motion too small during +X move. Increase calibration time.|
135 #define ERR_MOVEMENTTOOSMALL2 555 //|Motion too small during -X move. Increase calibration time.|
136 #define ERR_MOVEMENTTOOSMALL3 556 //|Motion too small during +Y move. Increase calibration time.|
137 #define ERR_MOVEMENTTOOSMALL4 557 //|Motion too small during -Y move. Increase calibration time.|
138 #define ERR_STARTOOCLOSETOEDGE1 558 //|Star too close to edge after +X move.|
139 #define ERR_STARTOOCLOSETOEDGE2 559 //|Star too close to edge after -X move.|
140 #define ERR_STARTOOCLOSETOEDGE3 560 //|Star too close to edge after +Y move.|
141 #define ERR_STARTOOCLOSETOEDGE4 561 //|Star too close to edge after -Y move.|
142 #define ERR_AXISNOTPERPENDICULAR1 562 //|Invalid motion in X axis.|
143 #define ERR_AXISNOTPERPENDICULAR2 563 //|Invalid motion in Y axis.|
144 #define ERR_BOTHAXISDISABLED 564 //|Unable to calibrate, both axis are disabled. At least one axis must be enabled to calibrate.|
145 #define ERR_RECALIBRATE 565 //|Autoguider calibration is required. The Declination at calibration is unknown, but declination is now known.|
146 #define ERR_NOBRIGHTOBJECTFOUND 566 //|No bright object found on image.|
147 #define ERR_INSUFFICIENTCORRELATION 567 //|Insufficient correlation between target image and image under analysis.|
148 #define ERR_ROTATORCONNECTED 568 //|Autoguider calibration is required. A camera rotator was connected after calibration was performed.|
149 #define ENUM_ERR_ROTATORDISCONNECTED 569 //|Autoguider calibration is required. A camera rotator was disconnected after calibration was performed.|
150 #define ERR_IMAGESIZECHANGED 570 //|Autoguider calibration is required. Image size changed since most recent calibration.|
151 #define ENUM_ERR_PARAMOUNT_SYNC_NOT_REQ 572 //|The Paramount does not require star synchronization.|
152 
153 
154 #define ERR_DSSNAMETOLONG 600 //|The file name and/or path is too long.|
155 #define ERR_DSSNOTINITED 601 //|The Digitized Sky Survey Setup is not properly initialized, please check Digitized Sky Survey Setup parameters.|
156 #define ERR_DSSSYSERROR 602 //|System error. Please verify Digitized Sky Survey Setup parameters are correct and make sure the data is present.|
157 #define ERR_DSSWRONGDISK 603 //|Wrong Disk.|
158 #define ERR_DSSNOIMAGE 604 //|No image found to extract.|
159 #define ERR_DSSINVALIDCOORDINATE 605 //|Invalid coordinate(s).|
160 #define ERR_DSSINVALIDSIZE 606 //|Invalid size.|
161 #define ERR_DSSDLLOLD 607 //|The file DSS_DLL.DLL is old and not compatible with this program. Please obtain the latest DSS_DLL.DLL.|
162 #define ERR_DSSCDROM 608 //|Unable to access the Digitized Sky Survey data. Make sure the volume or drive is valid.|
163 #define ERR_DSSHEADERSPATH 609 //|Unable to access the headers path specified in Digitized Sky Survey Setup. Please correct the path.|
164 #define ERR_DSSNODSSDISK 610 //|The Digitized Sky Survey data is not present in the specified location.|
165 #define ERR_DSSNOTINSURVEY 611 //|Not in survey.|
166 #define ERR_SE_INTERNAL_ERROR 612 //|An error occurred within Source Extraction.|
167 
168 
169 #define ERR_ILINK_NOSCALE 650 //|Image Link has no image scale.|
170 #define ERR_ILINK_TOOFEWBMP 651 //|Image Link failed because there are not enough stars in the photo. Possible solutions include:<ol><li>Try a longer exposure.</li> <li>Lower the <b><i>Detection Threshold</i></b> in the <b><i>Source Extraction Setup</i></b> window to detect fainter stars in the photo.</li><li>Lower the <b><i>Minimum Number of Pixels Above Threshold</i></b> in the <b><i>Source Extraction Setup</i></b> window to extract stars near the background.</li></ol>|
171 #define ERR_ILINK_TOOFEWSKY 652 //|Image Link failed because there are an insufficient number of matching cataloged stars. There must be at least eight cataloged stars in each image to perform an Image Link. Verify which star databases are active.|
172 #define ERR_ILINK_NOMATCHFOUND 653 //|Image Link failed, no pattern matching found. Make sure the RA/Dec coordinates in the FITS header are correct, and double-check the image scale.|
173 #define ERR_ILINK_NOIMAGE 654 //|Image Link failed because there is no FITS photo to compare. Click the <b>Open Fits</b> button on the <b>Search</b> tab to proceed.|
174 #define ERR_ILINK_ERR_ASTROM_SOLN_FAILED 655 //|The astrometric solution failed.|
175 #define ERR_ILINK_TOO_FEW_PAIRS 656 //|Not enough photo-catalog pairs for an astrometric solution.|
176 #define ERR_ILINK_INVALID_SCALE 657 //|The astrometric solution returned an invalid image scale.|
177 #define ERR_ILINK_SOLN_QUESTIONABLE 658 //|The astrometric solution appears invalid.|
178 #define ERR_ILINK_RMS_POOR 659 //|The astrometric solution RMS appears invalid.|
179 #define ERR_ILINK_WRITING_INTERMEDIATE_FILE 660 //|Error writing intermediate astrometry file.|
180 #define ERR_ILINK_TOO_MANY_OBJECTS 661 //|Too many light sources were found in the photo, increase the Source Extraction Setup's <b>Detection threshold</b> setting (Setup tab).|
181 #define ERR_ILINK_REQUIRED 662 //|This operation requires a successful Image Link and one has not been performed.|
182 
183 
184 #define ERR_SKIPIMAGE 700 //|Skip image error.|
185 #define ERR_BADFORMAT 701 //|Unrecognized or bad file format.|
186 #define ERR_OPENINGFILE 702 //|Unable to open file.|
187 #define ERR_FEATURENAINLEVEL 703 //|This edition does not support the requested feature.|
188 #define ERR_SOCKETEXCEPTION 704 //|An error occurred during a network call.|
189 #define ERR_CANTCREATETHREAD 705 //|Unable to create a new thread.|
190 
191 
192 #define ERR_F_DOESNOTEXIST 709 //|The file or folder does not exist.|
193 #define ERR_F_ACCESS_WRITE 707 //|Access denied. You do not have write access to the file or folder or item.|
194 #define ERR_F_ACCESS_READ 706 //|Access denied. You do not have read access to the file or folder or item.|
195 #define ERR_F_ACCESS_RW 708 //|Access denied. You do not have read/write access to the file or folder or item.|
196 
197 
198 #define ERR_OPENGL_NOT_COMPAT 711 //|A newer version of OpenGL is required to run this application.|
199 
200 
201 #define ERR_CHANGE_PASSWORD 730 //|You are required to change your password before you can access this site.|
202 #define ERR_OP_REQUIRES_OPENGL 732 //|This feature requires hardware 3D acceleration.<br><br>Click <a href='http://www.bisque.com/videocards'>here</a> for a list of recommended video cards.<br><br>|
203 #define ERR_INDEX_OUT_OF_RANGE 733 //|The index is out of range.|
204 #define ERR_TRIAL_EXPIRED 734 //|The trial period has expired.|
205 #define ERR_INVALID_SNUM 735 //|Invalid serial number.|
206 #define ERR_OP_REQUIRES_OPENGL2PLUS 736 //|This feature requires <b>advanced capabilities</b> of OpenGL 2.0 or later.<br><br>Go to Preferences, Advanced tab (on Mac, TheSkyX Menu, on Windows Tools Menu) and enable 'OpenGL 2 Plus Features' to see if it works with your video card hardware.<br><br><div style='color:OliveDrab'>Warning, your video card might not be capable of this feature.</div> <br><br>Click <a href='http://www.bisque.com/videocards'>here</a> for a list of recommended video cards. |
207 #define ERR_BADWEATHER 737 //|Bad weather prohibits this operation.|
208 #define ERR_WEATHERSTATION_NOT_READY1 738 //|The weather station is not connected.|
209 #define ERR_WEATHERSTATION_NOT_READY2 739 //|The weather station is still initializing.|
210 #define ERR_WEATHERSTATION_NOT_READY3 740 //|Communication with the weather station is poor or lost.|
211 #define ERR_WEATHERSTATION_NOT_READY4 741 //|The weather station is in an unknown state.|
212 
213 
214 #define ERR_SGSTARBRTDOWN50 800 //|Self-guide star brightness down 50%.|
215 #define ERR_SGNEXT 801 //|Self-guide next error.|
216 #define ERR_SGNEXT2 802 //|Self-guide next two error.|
217 
218 
219 #define ERR_MM_DOME_NOT_CONNECTED 805 //|The mount motion has been prohibitied because the dome is not connected. The software is configured to prohibit mount motion unless the dome is open. Connect the dome so that the software can determine if the dome is open.|
220 #define ERR_MM_DOME_NOT_OPEN 806 //|The mount motion has been prohibitied because the dome is not open. The software is configured to prohibit mount motion unless the dome is open. Open the dome to allow mount motion.|
221 
222 
223 #define ERR_MNCPFIRSTERROR 900 //|MNCP first error.|
224 
225 
226 #define ERR_MNCPLASTERROR 999 //|MNCP last error.|
227 
228 
229 #define ERR_AUTOSAVE 1130 //|Auto-save error.|
230 
231 
232 #define ERR_UPLOADNOTST6FILE 1150 //|Unable to load ST-6 file.|
233 #define ERR_NOHEADADJNEEDED 1151 //|No head adjustment needed.|
234 #define ERR_NOTCFW6A 1152 //|Not a CFW 6A.|
235 #define ERR_NOINTERFACE 1153 //|No interface has been selected.|
236 #define ERR_CAMERANOTFOUND 1154 //|Camera not found.|
237 #define ERR_BAUDSWITCHFAILED 1155 //|Baud switch failed.|
238 #define ERR_CANNOTUPLOADDARK 1156 //|Unable to upload dark frame.|
239 #define ERR_SKIPPINGDARK 1157 //|Skipping dark.|
240 #define ERR_SKIPPINGLIGHT 1158 //|Skipping light.|
241 #define ERR_SELFGUIDENA 1159 //|Self guide not available.|
242 #define ERR_TRACKLOGNA 1160 //|Tracking log not available.|
243 #define ERR_AOREQUIREST78 1161 //|AO not available for this camera.|
244 #define ERR_CALIBRATEAONOTON 1162 //|AO not calibrated.|
245 #define ERR_WRONGCAMERAFOUND 1163 //|A camera was detected, but it does not match the one selected.|
246 #define ERR_PIXEL_MATH_OPERAND 1164 //|Cannot multiply or divide the image pixels by an operand less than 0.001.|
247 #define ERR_IMAGE_SIZE 1165 //|Enlarged image would exceed maximum image size. Try cropping it first.|
248 #define ERR_CANNOT_COLORGRAB 1166 //|There is not a color filter wheel attached.|
249 #define ERR_WRONGCFWFOUND 1167 //|A filter wheel was detected, but it does not match the one selected.|
250 #define FILTERNOTFOUND 1168 //|The filter name is not valid, please correct it.|
251 
252 
253 #define ERR_APOGEECFGNAME 1200 //|A required initialization file was not found. Go to Camera, Setup, and press the Settings button to choose the correct file.|
254 #define ERR_APOGEECFGDATA 1201 //|Error in Apogee INI file.|
255 #define ERR_APOGEELOAD 1202 //|Error transferring APCCD.INI data to camera.|
256 
257 
258 #define ERR_APOGEEOPENOFFSET 1220 //|Invalid base I/O address passed to function.|
259 #define ERR_APOGEEOPENOFFSET1 1221 //|Register access operation error.|
260 #define ERR_APOGEEOPENOFFSET2 1222 //|Invalid CCD geometry.|
261 #define ERR_APOGEEOPENOFFSET3 1223 //|Invalid horizontal binning factor.|
262 #define ERR_APOGEEOPENOFFSET4 1224 //|Invalid vertical binning factor.|
263 #define ERR_APOGEEOPENOFFSET5 1225 //|Invalid AIC value.|
264 #define ERR_APOGEEOPENOFFSET6 1226 //|Invalid BIC value.|
265 #define ERR_APOGEEOPENOFFSET7 1227 //|Invalid line offset value.|
266 #define ERR_APOGEEOPENOFFSET8 1228 //|CCD controller sub-system not initialized.|
267 #define ERR_APOGEEOPENOFFSET9 1229 //|CCD cooler failure.|
268 #define ERR_APOGEEOPENOFFSET10 1230 //|Failure reading image data.|
269 #define ERR_APOGEEOPENOFFSET11 1231 //|Invalid buffer pointer specified.|
270 #define ERR_APOGEEOPENOFFSET12 1232 //|File not found or not valid.|
271 #define ERR_APOGEEOPENOFFSET13 1233 //|Camera configuration data is invalid.|
272 #define ERR_APOGEEOPENOFFSET14 1234 //|Invalid CCD handle passed to function.|
273 #define ERR_APOGEEOPENOFFSET15 1235 //|Invalid parameter passed to function.|
274 
275 
276 #define ERR_GPSTFPNOTRUNNING 1300 //|Shutter timing is enabled, but the GPSTFP application is not running.|
277 
278 
279 #define ERR_IMAGECALWRONGBPP 5000 //|Unable to reduce. The image being reduced doesn't have the same bits per pixel as the reduction frames.|
280 #define ERR_IMAGECALWRONGSIZE 5001 //|Unable to reduce. The image being reduced is larger than the reduction frames.|
281 #define ERR_IMAGECALWRONGBIN 5002 //|Unable to reduce. The image being reduced doesn't have the same bin mode as the reduction frames.|
282 #define ERR_IMAGECALWRONGSUBFRAME 5003 //|Unable to reduce. The image being reduced doesn't entirely overlap the reduction frames. Make sure the subframes overlap.|
283 #define ERR_IMAGECALGROUPINUSE 5004 //|Unable to proceed. The image reduction group is currently in use.|
284 #define ERR_IMAGECALNOSUCHGROUP 5005 //|Unable to proceed. The selected image reduction group no longer exists.|
285 #define ERR_IMAGECALNOFRAMES 5006 //|Unable to proceed. The selected image reduction group does not contain any reduction frames.|
286 
287 
288 #define ERR_WRONGBPP 5020 //|Unable to proceed. The images don't have the same bits per pixel.|
289 #define ERR_WRONGSIZE 5021 //|Unable to proceed. The images don't have the same dimensions.|
290 #define ERR_WRONGTYPE 5022 //|Unable to proceed. The images don't have the same format.|
291 
292 
293 #define ERR_NOIMAGESINFOLDER 5050 //|Unable to proceed. The folder doesn't contain any readable images.|
294 #define ERR_NOPATTERNMATCH 5051 //|The files could not be aligned. No pattern match was found.|
295 
296 
297 #define ERR_NOTFITS 5070 //|This operation requires a FITS file.|
298 
299 
300 #define ERR_KVW_NOMINIMA 6000 //|KVW_NOMINIMA.|
301 #define ERR_KVW_DETERMINANTZERO 6001 //|KVW_DETERMINANTZERO.|
302 #define ERR_KVW_DIVISIONBYZERO 6002 //|KVW_DIVISIONBYZERO.|
303 #define ERR_KVW_NOTENOUGHPOINTS 6003 //|KVW_NOTENOUGHPOINTS.|
304 
305 
306 #define ERR_AF_ERRORFIRST 7000 //|@Focus error.|
307 #define ERR_AF_DIVERGED 7001 //|@Focus diverged. |
308 #define ERR_AF_UNDERSAMPLED 7003 //|Insufficient data to measure focus, increase exposure time. |
309 
310 
311 #define ERR_LT_TARGET_LOST_DEC_TOO_HIGH 7500 //|Target lost, declination too high to maintain tracking.|
312 #define ERR_LT_TARGET_LOST_CANNOT_TRACK 7501 //|Target lost, unable to maintain tracking.|
313 #define ERR_LT_TARGET_LOST_BELOW_HORIZON 7502 //|Target lost, below horizon.|
314 #define ERR_LT_TARGET_NOT_A_SATELLITE 7503 //|Target not a satellite.|
315 
316 
317 #define ERR_FLICCD_E_FIRST 8000 //|ERR_FLICCD_E_FIRST|
318 #define ERR_FLICCD_E_NOTSUPP 8001 //|ERR_FLICCD_E_NOTSUPP|
319 #define ERR_FLICCD_E_INVALID_PARAMETER 8002 //|ERR_FLICCD_E_INVALID_PARAMETER|
320 #define ERR_FLICCD_E_INVALID_COMPORT 8003 //|ERR_FLICCD_E_INVALID_COMPORT|
321 #define ERR_FLICCD_E_COMPORT_ERROR 8004 //|ERR_FLICCD_E_COMPORT_ERROR|
322 #define ERR_FLICCD_E_FAILED_RESET 8005 //|ERR_FLICCD_E_FAILED_RESET|
323 #define ERR_FLICCD_E_COMMTIMEOUT 8006 //|ERR_FLICCD_E_COMMTIMEOUT|
324 #define ERR_FLICCD_E_BADDATA 8007 //|ERR_FLICCD_E_BADDATA|
325 #define ERR_FLICCD_E_NOCALIBRATE 8008 //|ERR_FLICCD_E_NOCALIBRATE|
326 #define ERR_FLICCD_E_DEVICE_NOT_CONFIGURED 8009 //|ERR_FLICCD_E_DEVICE_NOT_CONFIGUR|
327 #define ERR_FLICCD_E_COMMWRITE 8010 //|ERR_FLICCD_E_COMMWRITE|
328 #define ERR_FLICCD_E_INVALID_DEVICE 8011 //|ERR_FLICCD_E_INVALID_DEVICE|
329 #define ERR_FLICCD_E_FUNCTION_NOT_SUPPORTED 8012 //|ERR_FLICCD_E_FUNCTION_NOT_SUPPORTED|
330 #define ERR_FLICCD_E_BAD_BOUNDS 8013 //|ERR_FLICCD_E_BAD_BOUNDS|
331 #define ERR_FLICCD_E_GRABTIMEOUT 8014 //|ERR_FLICCD_E_GRABTIMEOUT|
332 #define ERR_FLICCD_E_TODATAHB 8015 //|ERR_FLICCD_E_TODATAHB|
333 #define ERR_FLICCD_E_TODATALB 8016 //|ERR_FLICCD_E_TODATALB|
334 #define ERR_FLICCD_E_ECPNOTREADY 8017 //|ERR_FLICCD_E_ECPNOTREADY|
335 #define ERR_FLICCD_E_ECPREADTIMEOUTHB 8018 //|ERR_FLICCD_E_ECPREADTIMEOUTHB|
336 #define ERR_FLICCD_E_ECPREADTIMEOUTLB 8019 //|ERR_FLICCD_E_ECPREADTIMEOUTLB|
337 #define ERR_FLICCD_E_ECPREADTIMEOUT 8020 //|ERR_FLICCD_E_ECPREADTIMEOUT|
338 #define ERR_FLICCD_E_ECPREVERSETIMEOUT 8021 //|ERR_FLICCD_E_ECPREVERSETIMEOUT|
339 #define ERR_FLICCD_E_ECPWRITETIMEOUTHB 8022 //|ERR_FLICCD_E_ECPWRITETIMEOUTHB|
340 #define ERR_FLICCD_E_ECPWRITETIMEOUTLB 8023 //|ERR_FLICCD_E_ECPWRITETIMEOUTLB|
341 #define ERR_FLICCD_E_ECPWRITETIMEOUT 8024 //|ERR_FLICCD_E_ECPWRITETIMEOUT|
342 #define ERR_FLICCD_E_FORWARDTIMEOUT 8025 //|ERR_FLICCD_E_FORWARDTIMEOUT|
343 #define ERR_FLICCD_E_NOTECP 8026 //|ERR_FLICCD_E_NOTECP|
344 #define ERR_FLICCD_E_FUNCTIONNOTSUPP 8027 //|ERR_FLICCD_E_FUNCTIONNOTSUPP|
345 #define ERR_FLICCD_E_NODEVICES 8028 //|ERR_FLICCD_E_NODEVICES|
346 #define ERR_FLICCD_E_WRONGOS 8029 //|ERR_FLICCD_E_WRONGOS|
347 #define ERR_TEMMA_RAERROR 8030 //|Slew/sync error: Temma reports the right ascension is incorrect for go to or synchronization.|
348 #define ERR_TEMMA_DECERROR 8031 //|Slew/sync error: Temma reports the declination is incorrect for go to or synchronization.|
349 #define ERR_TEMMA_TOOMANYDIGITS 8032 //|Slew/sync error: Temma reports the format error for go to or synchronization.|
350 #define ERR_TEMMA_BELOWHORIZON 8033 //|Slew/sync error: Temma reports the object is below the horizon.|
351 #define ERR_TEMMA_STANDBYMODE 8034 //|Slew error: Temma reports the mount is in standby mode.|
352 
353 
354 #define ERR_ACLUNDEFINEDERR 1 //|ACL undefined error.|
355 #define ERR_ACLSYNTAX 2 //|ACL syntax error.|
356 
357 
358 #define ERR_ACLTYPEMISMATCH 10 //|ACL type mismatch error.|
359 #define ERR_ACLRANGE 11 //|ACL range error.|
360 #define ERR_ACLVALREADONLY 12 //|ACL value is read only.|
361 #define ERR_ACLCMDUNSUPPORTED 13 //|ACL command is unsupported.|
362 #define ERR_ACLUNSUPPORTID 14 //|ACL unsupported id.|
363 #define ERR_ACLCMDINACTIVE 15 //|ACL command inactive.|
364 
365 
366 #define ERR_ACLGOTOILLEGAL 100 //|ACL illegal go to command.|
367 #define ERR_ACLGOTOBELOWHRZ 101 //|ACL error: destination is below the horizon.|
368 #define ERR_ACLGOTOLIMITS 102 //|ACL go to limit.|
369 
370 
371 #define ERR_NOT_IMPL 11000 //|This command is not supported.|
372 #define ERR_NOT_IMPL_IN_MODEL 11001 //|This command is not implemented in the model.|
373 #define ERR_OPENING_FOVI_FILES 11002 //|One of the Field of View Indicator database files cannot be found. (Abnormal installation.)|
374 #define ERR_NO_IRIDIUM_SATELLITES 11003 //|No Iridium satellite two-line elements are currently loaded.|
375 #define ERR_ACCESS_DENIED 11004 //|Access is denied. Check your username and or password.|
376 #define ERR_ALL_TLES_DATE_REJECTED 11005 //|All TLEs were date rejected, so no satellites will be loaded. Check the date of the TLEs and make sure TheSkyX's date is within 45 days of this date.|
377 
378 
379 #define ERR_SBSCODEBASE 1000 //|Base offset for creating wire safe scodes|
380 
381 
382 #define ERR_SBIGST7FIRST 30000 //|SBIG ST7 first error.|
383 
384 
385 #define ERR_SBIGCCCFWFIRST 31000 //|SBIG first cfw error.|
386 
387 
388 #define ENUM_ERR_CFISIOFIRST 33000 //|CFITSIO first error.|
389 
390 
391 #define ERR_CUSTOMAPIFIRST 1400 //|Custom api error code first.|
392 
393 
394 #define ERR_CUSTOMAPILAST 1499 //|Custom api error code last.|
395 #define ERR_IPLSUITEERR 1500 //|IPL suite error first|
396 
397 
398 #define ERR_GDIERR_BASE 1600 //|GDI error base|
399 
400 
401 #define ERR_SBIGTCEEXTFIRST 1050 //|SBIG TCE error first.|
402 
403 
404 #define ERR_SBIGTCEEXTLAST 1099 //|SBIG TCE error last.|
405 #define ERR_SBIGSERIALFIRST 1100 //|SBIG serial error first.|
406 
407 
408 #define ERR_SBIGSERIALLAST 1125 //|SBIG serial error last.|
409 
410 
411 #define ERR_MKS_ERROR_FIRST 20000 //|MKS first error.|
412 
413 
414 #define ERR_MKS_ERROR_LAST 25000 //|MKS last error.|
415 
416 
417 #define ERR_SOCKET_ERROR_FIRST 27000 //|Socket first error.|
418 
419 
420 #define ERR_SOCKET_ERROR_LAST 27100 //|Socket last error.|
421 
422 
423 #define ERR_MKS_COMM_BASE 21000 //|COMM_BASE.|
424 #define ERR_MKS_COMM_OKPACKET 21000 //|COMM_OKPACKET.|
425 #define ERR_MKS_COMM_NOPACKET 21001 //|Serial command packet not included with command. COMM_NOPACKET.|
426 #define ERR_MKS_COMM_TIMEOUT 21002 //|Receive time-out.COMM_TIMEOUT.|
427 #define ERR_MKS_COMM_COMMERROR 21003 //|Serial communication error. COMM_COMMERROR.|
428 #define ERR_MKS_COMM_BADCHAR 21004 //|Invalid serial command error. COMM_BADCHAR.|
429 #define ERR_MKS_COMM_OVERRUN 21005 //|Packet overrun error. COMM_OVERRUN.|
430 #define ERR_MKS_COMM_BADCHECKSUM 21006 //|Bad checksum error. COMM_BADCHECKSU.|
431 #define ERR_MKS_COMM_BADLEN 21007 //|Invalid length of serial command error. COMM_BADLEN.|
432 #define ERR_MKS_COMM_BADCOMMAND 21008 //|Invalid serial command error. COMM_BADCOMMAND.|
433 #define ERR_MKS_COMM_INITFAIL 21009 //|Could not open communications port. The port is either in use by another application or not recognized by the system. COMM_INITFAIL|
434 #define ERR_MKS_COMM_NACK 21010 //|No acknowledgement of command from device. COMM_NACK.|
435 #define ERR_MKS_COMM_BADID 21011 //|Invalid identifier. COMM_BADID.|
436 #define ERR_MKS_COMM_BADSEQ 21012 //|Invalid command sequence. COMM_BADSEQ.|
437 #define ERR_MKS_COMM_BADVALCODE 21013 //|Invalid command code. COMM_BADVALCODE.|
438 
439 
440 #define ERR_MKS_MAIN_BASE 22000 //|MAIN_BASE.|
441 #define ERR_MKS_MAIN_WRONG_UNIT 22001 //|MAIN_WRONG_UNIT.|
442 #define ERR_MKS_MAIN_BADMOTORINIT 22002 //|MAIN_BADMOTORINIT.|
443 #define ERR_MKS_MAIN_BADMOTORSTATE 22003 //|Unable to slew because the mount has not been homed. Click Telescope, Options, Find Home to home the mount.|
444 #define ERR_MKS_MAIN_BADSERVOSTATE 22004 //|Indexing before finding switch 1.|
445 #define ERR_MKS_MAIN_SERVOBUSY 22005 //|Indexing before finding switch 2.|
446 #define ERR_MKS_MAIN_BAD_PEC_LENGTH 22006 //|Invalid length of PEC table. MAIN_BAD_PEC_LENGTH.|
447 #define ERR_MKS_MAIN_AT_LIMIT 22007 //|The mount is at a minimum or maximum position limit and cannot be slewed. This error may be the result of improper synchronization near the meridian. When syncing near the meridian, be sure the optical tube assembly and the synchronization star are on opposite sides of the meridian.|
448 #define ERR_MKS_MAIN_NOT_HOMED 22008 //|Mount has not been homed. Click Telescope, Options, Find Home to home the mount.|
449 #define ERR_MKS_MAIN_BAD_POINT_ADD 22009 //|Object-Tracking point error.|
450 #define ERR_MKS_MAIN_INVALID_PEC 22010 //|The PEC table is invalid.|
451 #define ERR_MKS_SLEW_PAST_LIMIT 22011 //|The slew is not possible because the target is beyond a slew limit.Slew limits prevent the mount from colliding with the pier and or encountering a physical hard stop. In other words, a target beyond a slew limit is mechanically unreachable.|
452 
453 
454 #define ERR_MKS_MAIN_BAD_CONTROL_CODE 22020 //|MKS4000: Command-code is invalid.|
455 #define ERR_MKS_MAIN_BAD_SYSTEM_ID 22021 //|Unknown system type (not an MKS 3000 or MKS 4000)|
456 
457 
458 #define ERR_MKS_FLASH_BASE 23000 //|FLASH_BASE.|
459 #define ERR_MKS_FLASH_PROGERR 23001 //|FLASH_PROGERR.|
460 #define ERR_MKS_FLASH_ERASEERR 23002 //|FLASH_ERASEERR.|
461 #define ERR_MKS_FLASH_TIMEOUT 23003 //|FLASH_TIMEOUT.|
462 #define ERR_MKS_FLASH_CANT_OPEN_FILE 23004 //|FLASH_CANT_OPEN_FILE.|
463 #define ERR_MKS_FLASH_BAD_FILE 23005 //|FLASH_BAD_FILE.|
464 #define ERR_MKS_FLASH_FILE_READ_ERR 23006 //|FLASH_FILE_READ_ERR.|
465 #define ERR_MKS_FLASH_BADVALID 23007 //|FLASH_BADVALID.|
466 #define ERR_MKS_FLASH_INVALID_SECTION 23008 //|MKS4000: Invalid FLASH section.|
467 #define ERR_MKS_FLASH_INVALID_ADDRESS 23009 //|MKS4000: Invalid FLASH address.|
468 
469 
470 #define ERR_MKS_MOTOR_BASE 24000 //|MOTOR_BASE.|
471 #define ERR_MKS_MOTOR_OK 24000 //|MOTOR_OK.|
472 #define ERR_MKS_MOTOR_OVERCURRENT 24001 //|MOTOR_OVERCURRENT.|
473 #define ERR_MKS_MOTOR_POSERRORLIM 24002 //|<b>The mount cannot slew. See the list of likely reasons below.<br><br>To recover, turn the mount off, wait a few moments and then turn the mount back on.<br><br></b><table border=1><tr><th>Possible Reasons In Order of Likelihood</th><th>Solution</th></tr><tr><td>1. The mount payload is too far out of balance.</td><td>Carefully balance the payload.</td></tr><tr><td>2. A transport lock knob is in the lock position.</td><td>Unlock the transport lock knob(s).</td></tr><tr><td>3. The mount has encountered a physical obstacle.</td><td>Move the obstacle.</td></tr><tr><td>4. You've recently added through the mount cabling.</td><td>Make sure you did not accidentally unplug an internal mount cable. Also make sure the added cabling is not binding a mount axis from rotating.</td></tr><tr><td>5. The worm block cam adjustment has been adjusted recently and it is too tight.</td><td>See the technical article on adjusting the worm block.</td></tr><tr><td>6. The ambient temperature is near or below freezing.</td><td>Lower mount speed/acceleration.</td></tr></table><br><br>|
474 #define ERR_MKS_MOTOR_STILL_ON 24003 //|Motor still on but command needs it stopped.|
475 #define ERR_MKS_MOTOR_NOT_ON 24004 //|Motor off.|
476 #define ERR_MKS_MOTOR_STILL_MOVING 24005 //|Motor still slewing but command needs it stopped.|
477 #define ERR_MKS_MOTOR_FIELD_TIMEOUT 24006 //|Timed out while fielding.|
478 #define ERR_MKS_MOTOR_BAD_CONTROL_STATE 24007 //|MOTOR_BAD_CONTROL_STATE.|
479 #define ERR_MKS_MOTOR_BAD_SERVO_STATE 24005 //|MOTOR_BAD_SERVO_STATE.|
480 
481 
482 #define ERR_GEMINI_OBJECT_BELOW_HORIZON 275 //|Gemini - Object below the horizon.|
483 #define ERR_GEMINI_NO_OBJECT_SELECTED 276 //|Gemini - No object selected.|
484 #define ERR_GEMINI_MANUAL_CONTROL 277 //|Gemini - Hand paddle is in manual control mode or the Prevent Slews option is turned on.|
485 #define ERR_GEMINI_POSITION_UNREACHABLE 278 //|Gemini - Position is unreachable.|
486 #define ERR_GEMINI_NOT_ALIGNED 279 //|Gemini - Gemini not aligned.|
487 #define ERR_GEMINI_OUTSIDE_LIMITS 280 //|Gemini - Outside slew limits.|
488 #define ERR_GEMINI_VERSION_NOT_SUPPORTED 281 //|Gemini - Version 4 or later is required. Please update your Gemini firmware.|
489 
490 
491 #define ERR_VIXEN_UNKNOWN 290 //|Star Book - Unknown error accessing mount.|
492 #define ERR_VIXEN_URLNOTSET 291 //|Star Book - The specified URL appears to be invalid.|
493 #define ERR_VIXEN_STATUSINVALID 292 //|Star Book - No or invalid data received.|
494 #define ERR_VIXEN_STATUSNOTAVAILABLE 293 //|Star Book - Error reading mount status.|
495 #define ERR_VIXEN_ILLEGALSTATE 294 //|Star Book - Mount in wrong state to accept this command.|
496 #define ERR_VIXEN_SETRADECERROR 295 //|Star Book - Error when trying to set RA/Dec. Make sure the new alignment object is more than 10 degrees from the previous alignment object.|
497 #define ERR_VIXEN_INVALIDFORMAT 296 //|Star Book - Command incorrectly formatted.|
498 #define ERR_VIXEN_BELOWHORIZON 297 //|Star Book - Target below the horizon.|
499 #define ERR_VIXEN_HOMEERROR 298 //|Star Book - Error with HOME command.|
500 
501 
502 #define ERR_OPEN_NV_THEME 11101 //|Error opening TheSkyX Night Vision Mode Theme. Click the Night Vision Mode Setup command on the Display menu and verify that the Night Vision Mode them file name is correct and the theme exists.|
503 #define ERR_OPEN_STANDARD_THEME 11102 //|Error opening the Standard Theme. Click the Night Vision Mode Setup command on the Display menu and verify that the Standard Theme file name is correct and the theme exists.|
504 #define ERR_INVALID_DATA 11103 //|The comet or minor planet orbital element data, or data file, contains invalid data and cannot be used to display this object or these objects.|
505 
506 
507 
508 #endif // SBERRORX_H
X2 Examples
(C) Software Bisque, Inc. All rights reserved.