Instrument Neutral Distributed Interface INDI  2.0.2
Classes | Macros
ifwoptec.h File Reference
#include "indifilterwheel.h"

Go to the source code of this file.

Classes

class  FilterIFW
 

Macros

#define VERSION   0
 
#define SUBVERSION   2
 
#define OPTEC_TIMEOUT   5
 
#define OPTEC_TIMEOUT_MOVE   10
 
#define OPTEC_TIMEOUT_WHOME   40
 
#define OPTEC_TIMEOUT_FIRMWARE   1
 
#define OPTEC_MAX_FILTER   9
 
#define OPTEC_LEN_FLTNAME   8
 
#define OPTEC_MAXLEN_CMD   ((OPTEC_MAX_FILTER)*OPTEC_LEN_FLTNAME) + 10
 
#define OPTEC_MAXLEN_RESP   OPTEC_MAX_FILTER *OPTEC_LEN_FLTNAME
 
#define OPTEC_MAXLEN_NAMES   OPTEC_MAX_FILTER *OPTEC_LEN_FLTNAME
 
#define OPTEC_WAIT_DATA_OK   5
 
#define filterSim5   "RED GREEN BLUE H-ALPHA LIGHT "
 
#define filterSim6   "RED GREEN BLUE H-ALPHA LIGHT OIII "
 
#define filterSim8   "RED GREEN BLUE H-ALPHA LIGHT OIII IR-CUT SII "
 
#define filterSim9   "RED GREEN BLUE H-ALPHA LIGHT OIII IR-CUT SII ORANGE "
 
#define MER1   "the number of steps to find position 1 is excessive"
 
#define MER2   "the SBIG pulse does not have the proper width for the IFW"
 
#define MER3   "the filter ID is not found/send successfully"
 
#define MER4   "the wheel is stuck in a position"
 
#define MER5   "the filter number is not in the set (1, 2, 3, 4, 5)"
 
#define MER6   "the wheel is slipping and takes too many steps to the next position"
 
#define MERO   "Unknown error received from IFW"
 
#define PRINT_ER(error)
 
#define DEBUGTAG()   DEBUGF(INDI::Logger::DBG_EXTRA_1, "DEBUG -> Function %s() is executing", __FUNCTION__);
 

Macro Definition Documentation

◆ DEBUGTAG

#define DEBUGTAG ( )    DEBUGF(INDI::Logger::DBG_EXTRA_1, "DEBUG -> Function %s() is executing", __FUNCTION__);

Definition at line 71 of file ifwoptec.h.

◆ filterSim5

#define filterSim5   "RED GREEN BLUE H-ALPHA LIGHT "

Definition at line 39 of file ifwoptec.h.

◆ filterSim6

#define filterSim6   "RED GREEN BLUE H-ALPHA LIGHT OIII "

Definition at line 40 of file ifwoptec.h.

◆ filterSim8

#define filterSim8   "RED GREEN BLUE H-ALPHA LIGHT OIII IR-CUT SII "

Definition at line 41 of file ifwoptec.h.

◆ filterSim9

#define filterSim9   "RED GREEN BLUE H-ALPHA LIGHT OIII IR-CUT SII ORANGE "

Definition at line 42 of file ifwoptec.h.

◆ MER1

#define MER1   "the number of steps to find position 1 is excessive"

Definition at line 47 of file ifwoptec.h.

◆ MER2

#define MER2   "the SBIG pulse does not have the proper width for the IFW"

Definition at line 48 of file ifwoptec.h.

◆ MER3

#define MER3   "the filter ID is not found/send successfully"

Definition at line 49 of file ifwoptec.h.

◆ MER4

#define MER4   "the wheel is stuck in a position"

Definition at line 50 of file ifwoptec.h.

◆ MER5

#define MER5   "the filter number is not in the set (1, 2, 3, 4, 5)"

Definition at line 51 of file ifwoptec.h.

◆ MER6

#define MER6   "the wheel is slipping and takes too many steps to the next position"

Definition at line 52 of file ifwoptec.h.

◆ MERO

#define MERO   "Unknown error received from IFW"

Definition at line 53 of file ifwoptec.h.

◆ OPTEC_LEN_FLTNAME

#define OPTEC_LEN_FLTNAME   8

Definition at line 32 of file ifwoptec.h.

◆ OPTEC_MAX_FILTER

#define OPTEC_MAX_FILTER   9

Definition at line 31 of file ifwoptec.h.

◆ OPTEC_MAXLEN_CMD

#define OPTEC_MAXLEN_CMD   ((OPTEC_MAX_FILTER)*OPTEC_LEN_FLTNAME) + 10

Definition at line 33 of file ifwoptec.h.

◆ OPTEC_MAXLEN_NAMES

#define OPTEC_MAXLEN_NAMES   OPTEC_MAX_FILTER *OPTEC_LEN_FLTNAME

Definition at line 35 of file ifwoptec.h.

◆ OPTEC_MAXLEN_RESP

#define OPTEC_MAXLEN_RESP   OPTEC_MAX_FILTER *OPTEC_LEN_FLTNAME

Definition at line 34 of file ifwoptec.h.

◆ OPTEC_TIMEOUT

#define OPTEC_TIMEOUT   5

Definition at line 26 of file ifwoptec.h.

◆ OPTEC_TIMEOUT_FIRMWARE

#define OPTEC_TIMEOUT_FIRMWARE   1

Definition at line 29 of file ifwoptec.h.

◆ OPTEC_TIMEOUT_MOVE

#define OPTEC_TIMEOUT_MOVE   10

Definition at line 27 of file ifwoptec.h.

◆ OPTEC_TIMEOUT_WHOME

#define OPTEC_TIMEOUT_WHOME   40

Definition at line 28 of file ifwoptec.h.

◆ OPTEC_WAIT_DATA_OK

#define OPTEC_WAIT_DATA_OK   5

Definition at line 37 of file ifwoptec.h.

◆ PRINT_ER

#define PRINT_ER (   error)
Value:
if (!strcmp(error, "ER=1")) \
LOGF_ERROR("%s -> %s", error, MER1); \
else if (!strcmp(error, "ER=2")) \
LOGF_ERROR("%s -> %s", error, MER2); \
else if (!strcmp(error, "ER=3")) \
LOGF_ERROR("%s -> %s", error, MER3); \
else if (!strcmp(error, "ER=4")) \
LOGF_ERROR("%s -> %s", error, MER4); \
else if (!strcmp(error, "ER=5")) \
LOGF_ERROR("%s -> %s", error, MER5); \
else if (!strcmp(error, "ER=6")) \
LOGF_ERROR("%s -> %s", error, MER6); \
else if (!strcmp(error, "ER=0")) \
LOGF_ERROR("%s -> %s", error, MERO);
#define MER3
Definition: ifwoptec.h:49
#define MER1
Definition: ifwoptec.h:47
#define MER5
Definition: ifwoptec.h:51
#define MER4
Definition: ifwoptec.h:50
#define MER6
Definition: ifwoptec.h:52
#define MER2
Definition: ifwoptec.h:48
#define MERO
Definition: ifwoptec.h:53

Definition at line 55 of file ifwoptec.h.

◆ SUBVERSION

#define SUBVERSION   2

Definition at line 24 of file ifwoptec.h.

◆ VERSION

#define VERSION   0

Definition at line 23 of file ifwoptec.h.