TwiceAsNice  2019-02-18
Macros | Functions
gemini.cpp File Reference
#include "gemini.h"
#include "indicom.h"
#include "connectionplugins/connectionserial.h"
#include <cmath>
#include <memory>
#include <cstring>
#include <termios.h>
#include <unistd.h>
Include dependency graph for gemini.cpp:

Macros

#define GEMINI_MAX_RETRIES   1
 
#define GEMINI_TIMEOUT   3
 
#define GEMINI_MAXBUF   16
 
#define GEMINI_TEMPERATURE_FREQ   20 /* Update every 20 POLLMS cycles. For POLLMS 500ms = 10 seconds freq */
 
#define GEMINI_POSITION_THRESHOLD   5 /* Only send position updates to client if the diff exceeds 5 steps */
 
#define FOCUS_SETTINGS_TAB   "Settings"
 
#define STATUS_TAB   "Status"
 
#define ROTATOR_TAB   "Rotator"
 
#define HUB_TAB   "Hub"
 

Functions

std::unique_ptr< GeminigeminiFR (new Gemini())
 
void ISGetProperties (const char *dev)
 Get Device Properties. More...
 
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
 Update the value of an existing switch vector property. More...
 
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
 Update the value of an existing text vector property. More...
 
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
 
void ISNewBLOB (const char *dev, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
 Update data of an existing blob vector property. More...
 
void ISSnoopDevice (XMLEle *root)
 Function defined by Drivers that is called when another Driver it is snooping (by having previously called IDSnoopDevice()) sent any INDI message. More...
 

Macro Definition Documentation

◆ FOCUS_SETTINGS_TAB

#define FOCUS_SETTINGS_TAB   "Settings"

◆ GEMINI_MAX_RETRIES

#define GEMINI_MAX_RETRIES   1

◆ GEMINI_MAXBUF

#define GEMINI_MAXBUF   16

◆ GEMINI_POSITION_THRESHOLD

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

◆ GEMINI_TEMPERATURE_FREQ

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

◆ GEMINI_TIMEOUT

#define GEMINI_TIMEOUT   3

◆ HUB_TAB

#define HUB_TAB   "Hub"

◆ ROTATOR_TAB

#define ROTATOR_TAB   "Rotator"

◆ STATUS_TAB

#define STATUS_TAB   "Status"

Function Documentation

◆ geminiFR()

std::unique_ptr<Gemini> geminiFR ( new   Gemini())

◆ ISNewNumber()

void ISNewNumber ( const char *  dev,
const char *  name,
double  values[],
char *  names[],
int  n 
)