TwiceAsNice
2019-02-18
|
#include "baader_dome.h"
#include "indicom.h"
#include <cmath>
#include <cstring>
#include <memory>
#include <termios.h>
Macros | |
#define | DOME_CMD 9 /* Dome command in bytes */ |
#define | DOME_BUF 16 /* Dome command buffer */ |
#define | DOME_TIMEOUT 3 /* 3 seconds comm timeout */ |
#define | SIM_SHUTTER_TIMER 5.0 /* Simulated Shutter closes/open in 5 seconds */ |
#define | SIM_FLAP_TIMER 5.0 /* Simulated Flap closes/open in 3 seconds */ |
#define | SIM_DOME_HI_SPEED 5.0 /* Simulated dome speed 5.0 degrees per second, constant */ |
#define | SIM_DOME_LO_SPEED 0.5 /* Simulated dome speed 0.5 degrees per second, constant */ |
Functions | |
std::unique_ptr< BaaderDome > | baaderDome (new BaaderDome()) |
void | ISPoll (void *p) |
Used to read periodically the data from the device. More... | |
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 DOME_CMD 9 /* Dome command in bytes */ |
#define DOME_TIMEOUT 3 /* 3 seconds comm timeout */ |
#define SIM_DOME_HI_SPEED 5.0 /* Simulated dome speed 5.0 degrees per second, constant */ |
#define SIM_DOME_LO_SPEED 0.5 /* Simulated dome speed 0.5 degrees per second, constant */ |
#define SIM_FLAP_TIMER 5.0 /* Simulated Flap closes/open in 3 seconds */ |
#define SIM_SHUTTER_TIMER 5.0 /* Simulated Shutter closes/open in 5 seconds */ |
std::unique_ptr<BaaderDome> baaderDome | ( | new | BaaderDome() | ) |
void ISPoll | ( | void * | p | ) |
Used to read periodically the data from the device.
p | the AAGCloudWatcher object |