TwiceAsNice
2019-02-18
|
#include "steeldrive.h"
#include "indicom.h"
#include <cmath>
#include <memory>
#include <cstring>
#include <termios.h>
#include <unistd.h>
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< SteelDrive > | steelDrive (new SteelDrive()) |
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 STEELDIVE_POSITION_THRESHOLD 5 /* Only send position updates to client if the diff exceeds 5 steps */ |
#define STEELDRIVE_CMD 9 |
#define STEELDRIVE_CMD_LONG 11 |
#define STEELDRIVE_MAX_RETRIES 1 |
#define STEELDRIVE_MAXBUF 16 |
#define STEELDRIVE_TEMPERATURE_FREQ 20 /* Update every 20 POLLMS cycles. For POLLMS 500ms = 10 seconds freq */ |
#define STEELDRIVE_TIMEOUT 1 |
std::unique_ptr<SteelDrive> steelDrive | ( | new | SteelDrive() | ) |