Instrument Neutral Distributed Interface INDI  1.9.5
Macros | Functions
steeldrive.cpp File Reference
#include "steeldrive.h"
#include "indicom.h"
#include <cmath>
#include <memory>
#include <cstring>
#include <termios.h>
#include <unistd.h>

Go to the source code of this file.

Macros

#define STEELDRIVE_MAX_RETRIES   1
 
#define STEELDRIVE_TIMEOUT   1
 
#define STEELDRIVE_MAXBUF   16
 
#define STEELDRIVE_CMD   9
 
#define STEELDRIVE_CMD_LONG   11
 
#define STEELDRIVE_TEMPERATURE_FREQ   20 /* Update every 20 POLLMS cycles. For POLLMS 500ms = 10 seconds freq */
 
#define STEELDIVE_POSITION_THRESHOLD   5 /* Only send position updates to client if the diff exceeds 5 steps */
 
#define FOCUS_SETTINGS_TAB   "Settings"
 

Functions

std::unique_ptr< SteelDrivesteelDrive (new SteelDrive())
 

Macro Definition Documentation

◆ FOCUS_SETTINGS_TAB

#define FOCUS_SETTINGS_TAB   "Settings"

Definition at line 39 of file steeldrive.cpp.

◆ STEELDIVE_POSITION_THRESHOLD

#define STEELDIVE_POSITION_THRESHOLD   5 /* Only send position updates to client if the diff exceeds 5 steps */

Definition at line 37 of file steeldrive.cpp.

◆ STEELDRIVE_CMD

#define STEELDRIVE_CMD   9

Definition at line 34 of file steeldrive.cpp.

◆ STEELDRIVE_CMD_LONG

#define STEELDRIVE_CMD_LONG   11

Definition at line 35 of file steeldrive.cpp.

◆ STEELDRIVE_MAX_RETRIES

#define STEELDRIVE_MAX_RETRIES   1

Definition at line 31 of file steeldrive.cpp.

◆ STEELDRIVE_MAXBUF

#define STEELDRIVE_MAXBUF   16

Definition at line 33 of file steeldrive.cpp.

◆ STEELDRIVE_TEMPERATURE_FREQ

#define STEELDRIVE_TEMPERATURE_FREQ   20 /* Update every 20 POLLMS cycles. For POLLMS 500ms = 10 seconds freq */

Definition at line 36 of file steeldrive.cpp.

◆ STEELDRIVE_TIMEOUT

#define STEELDRIVE_TIMEOUT   1

Definition at line 32 of file steeldrive.cpp.

Function Documentation

◆ steelDrive()

std::unique_ptr<SteelDrive> steelDrive ( new   SteelDrive())