TwiceAsNice
2019-02-18
|
#include "telescope_simulator.h"
#include "indicom.h"
#include <libnova/sidereal_time.h>
#include <libnova/transform.h>
#include <cmath>
#include <cstring>
#include <memory>
Macros | |
#define | GOTO_RATE 6.5 /* slew rate, degrees/s */ |
#define | SLEW_RATE 2.5 /* slew rate, degrees/s */ |
#define | FINE_SLEW_RATE 0.5 /* slew rate, degrees/s */ |
#define | GOTO_LIMIT 5 /* Move at GOTO_RATE until distance from target is GOTO_LIMIT degrees */ |
#define | SLEW_LIMIT 1 /* Move at SLEW_LIMIT until distance from target is SLEW_LIMIT degrees */ |
#define | RA_AXIS 0 |
#define | DEC_AXIS 1 |
#define | GUIDE_NORTH 0 |
#define | GUIDE_SOUTH 1 |
#define | GUIDE_WEST 0 |
#define | GUIDE_EAST 1 |
#define | MIN_AZ_FLIP 180 |
#define | MAX_AZ_FLIP 200 |
Functions | |
std::unique_ptr< ScopeSim > | telescope_sim (new ScopeSim()) |
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 DEC_AXIS 1 |
#define FINE_SLEW_RATE 0.5 /* slew rate, degrees/s */ |
#define GOTO_RATE 6.5 /* slew rate, degrees/s */ |
#define GUIDE_EAST 1 |
#define GUIDE_NORTH 0 |
#define GUIDE_SOUTH 1 |
#define GUIDE_WEST 0 |
#define MAX_AZ_FLIP 200 |
#define MIN_AZ_FLIP 180 |
#define RA_AXIS 0 |
#define SLEW_LIMIT 1 /* Move at SLEW_LIMIT until distance from target is SLEW_LIMIT degrees */ |
#define SLEW_RATE 2.5 /* slew rate, degrees/s */ |
void ISPoll | ( | void * | p | ) |
Used to read periodically the data from the device.
p | the AAGCloudWatcher object |
std::unique_ptr<ScopeSim> telescope_sim | ( | new | ScopeSim() | ) |