TwiceAsNice  2019-02-18
Macros | Functions
telescope_simulator.cpp File Reference
#include "telescope_simulator.h"
#include "indicom.h"
#include <libnova/sidereal_time.h>
#include <libnova/transform.h>
#include <cmath>
#include <cstring>
#include <memory>
Include dependency graph for telescope_simulator.cpp:

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< ScopeSimtelescope_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...
 

Macro Definition Documentation

◆ DEC_AXIS

#define DEC_AXIS   1

◆ FINE_SLEW_RATE

#define FINE_SLEW_RATE   0.5 /* slew rate, degrees/s */

◆ GOTO_LIMIT

#define GOTO_LIMIT   5 /* Move at GOTO_RATE until distance from target is GOTO_LIMIT degrees */

◆ GOTO_RATE

#define GOTO_RATE   6.5 /* slew rate, degrees/s */

◆ GUIDE_EAST

#define GUIDE_EAST   1

◆ GUIDE_NORTH

#define GUIDE_NORTH   0

◆ GUIDE_SOUTH

#define GUIDE_SOUTH   1

◆ GUIDE_WEST

#define GUIDE_WEST   0

◆ MAX_AZ_FLIP

#define MAX_AZ_FLIP   200

◆ MIN_AZ_FLIP

#define MIN_AZ_FLIP   180

◆ RA_AXIS

#define RA_AXIS   0

◆ SLEW_LIMIT

#define SLEW_LIMIT   1 /* Move at SLEW_LIMIT until distance from target is SLEW_LIMIT degrees */

◆ SLEW_RATE

#define SLEW_RATE   2.5 /* slew rate, degrees/s */

Function Documentation

◆ ISNewNumber()

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

◆ ISPoll()

void ISPoll ( void *  p)

Used to read periodically the data from the device.

Parameters
pthe AAGCloudWatcher object

◆ telescope_sim()

std::unique_ptr<ScopeSim> telescope_sim ( new   ScopeSim())