Instrument Neutral Distributed Interface INDI  2.0.2
Classes | Macros | Typedefs | Enumerations | Functions
integra.cpp File Reference
#include "integra.h"
#include "indicom.h"
#include "connectionplugins/connectionserial.h"
#include <cmath>
#include <cstring>
#include <memory>
#include <termios.h>

Go to the source code of this file.

Classes

struct  COMMANDDESC
 

Macros

#define INTEGRA_TIMEOUT_IN_S   5
 
#define INTEGRA_TEMPERATURE_LOOP_SKIPS   60
 
#define INTEGRA_TEMPERATURE_TRESHOLD_IN_C   0.1
 
#define INTEGRA_ROUNDING_FUDGE   0.001
 
#define ROTATOR_TAB   "Rotator"
 
#define SETTINGS_TAB   "Settings"
 

Typedefs

typedef struct COMMANDDESC COMMANDDESC
 

Enumerations

enum  {
  stop_motor , calibrate , calibrate_interrupt , calibration_state ,
  get_temperature , set_motstep , get_motstep , move_mot_in ,
  move_mot_out , get_motrange , is_moving , invert_dir ,
  EEPROMwrite
}
 

Functions

std::unique_ptr< Integraintegra (new Integra())
 

Macro Definition Documentation

◆ INTEGRA_ROUNDING_FUDGE

#define INTEGRA_ROUNDING_FUDGE   0.001

Definition at line 33 of file integra.cpp.

◆ INTEGRA_TEMPERATURE_LOOP_SKIPS

#define INTEGRA_TEMPERATURE_LOOP_SKIPS   60

Definition at line 31 of file integra.cpp.

◆ INTEGRA_TEMPERATURE_TRESHOLD_IN_C

#define INTEGRA_TEMPERATURE_TRESHOLD_IN_C   0.1

Definition at line 32 of file integra.cpp.

◆ INTEGRA_TIMEOUT_IN_S

#define INTEGRA_TIMEOUT_IN_S   5

Definition at line 30 of file integra.cpp.

◆ ROTATOR_TAB

#define ROTATOR_TAB   "Rotator"

Definition at line 35 of file integra.cpp.

◆ SETTINGS_TAB

#define SETTINGS_TAB   "Settings"

Definition at line 36 of file integra.cpp.

Typedef Documentation

◆ COMMANDDESC

typedef struct COMMANDDESC COMMANDDESC

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
stop_motor 
calibrate 
calibrate_interrupt 
calibration_state 
get_temperature 
set_motstep 
get_motstep 
move_mot_in 
move_mot_out 
get_motrange 
is_moving 
invert_dir 
EEPROMwrite 

Definition at line 63 of file integra.cpp.

Function Documentation

◆ integra()

std::unique_ptr<Integra> integra ( new   Integra())