TwiceAsNice
2019-02-18
|
#include "gemini.h"
#include "indicom.h"
#include "connectionplugins/connectionserial.h"
#include <cmath>
#include <memory>
#include <cstring>
#include <termios.h>
#include <unistd.h>
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< Gemini > | geminiFR (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... | |
#define FOCUS_SETTINGS_TAB "Settings" |
#define GEMINI_MAX_RETRIES 1 |
#define GEMINI_MAXBUF 16 |
#define GEMINI_POSITION_THRESHOLD 5 /* Only send position updates to client if the diff exceeds 5 steps */ |
#define GEMINI_TEMPERATURE_FREQ 20 /* Update every 20 POLLMS cycles. For POLLMS 500ms = 10 seconds freq */ |
#define GEMINI_TIMEOUT 3 |
#define HUB_TAB "Hub" |
#define ROTATOR_TAB "Rotator" |
#define STATUS_TAB "Status" |
std::unique_ptr<Gemini> geminiFR | ( | new | Gemini() | ) |