TwiceAsNice  2019-02-18
Classes | Macros
ifwoptec.h File Reference
#include "indifilterwheel.h"
Include dependency graph for ifwoptec.h:
This graph shows which files directly or indirectly include 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__);

◆ filterSim5

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

◆ filterSim6

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

◆ filterSim8

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

◆ filterSim9

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

◆ MER1

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

◆ MER2

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

◆ MER3

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

◆ MER4

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

◆ MER5

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

◆ MER6

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

◆ MERO

#define MERO   "Unknown error received from IFW"

◆ OPTEC_LEN_FLTNAME

#define OPTEC_LEN_FLTNAME   8

◆ OPTEC_MAX_FILTER

#define OPTEC_MAX_FILTER   9

◆ OPTEC_MAXLEN_CMD

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

◆ OPTEC_MAXLEN_NAMES

#define OPTEC_MAXLEN_NAMES   OPTEC_MAX_FILTER *OPTEC_LEN_FLTNAME

◆ OPTEC_MAXLEN_RESP

#define OPTEC_MAXLEN_RESP   OPTEC_MAX_FILTER *OPTEC_LEN_FLTNAME

◆ OPTEC_TIMEOUT

#define OPTEC_TIMEOUT   5

◆ OPTEC_TIMEOUT_FIRMWARE

#define OPTEC_TIMEOUT_FIRMWARE   1

◆ OPTEC_TIMEOUT_MOVE

#define OPTEC_TIMEOUT_MOVE   10

◆ OPTEC_TIMEOUT_WHOME

#define OPTEC_TIMEOUT_WHOME   40

◆ OPTEC_WAIT_DATA_OK

#define OPTEC_WAIT_DATA_OK   5

◆ 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 MER5
Definition: ifwoptec.h:51
#define MER3
Definition: ifwoptec.h:49
#define MER6
Definition: ifwoptec.h:52
#define MERO
Definition: ifwoptec.h:53
#define MER4
Definition: ifwoptec.h:50
void error(int, char *, char *)
#define MER2
Definition: ifwoptec.h:48
#define MER1
Definition: ifwoptec.h:47

◆ SUBVERSION

#define SUBVERSION   2

◆ VERSION

#define VERSION   0