22namespace AlignmentSubsystem
56 char *blobs[],
char *formats[],
char *names[],
int n);
108 double JD = ln_get_julian_from_sys());
122 double JD = ln_get_julian_from_sys());
135 double JD = ln_get_julian_from_sys());
148 double JD = ln_get_julian_from_sys());
161 bool SkyToTelescopeAltAz(
double actualRA,
double actualDec,
double &mountAlt,
double &mountAz,
162 double JD = ln_get_julian_from_sys());
174 bool TelescopeAltAzToSky(
double mountAlt,
double mountAz,
double &actualRA,
double &actualDec,
175 double JD = ln_get_julian_from_sys());
184 static void MyDatabaseLoadCallback(
void *ThisPointer);
This class encapsulates all the alignment subsystem classes that are useful to driver implementations...
void ProcessAlignmentNumberProperties(Telescope *pTelescope, const char *name, double values[], char *names[], int n)
Call this function from within the ISNewNumber processing path. The function will handle any alignmen...
bool AddAlignmentEntryEquatorial(double actualRA, double actualDec, double mountRA, double mountDec, double JD=ln_get_julian_from_sys())
Adds an alignment point to the model database, usually called from Sync.
bool SkyToTelescopeAltAz(double actualRA, double actualDec, double &mountAlt, double &mountAz, double JD=ln_get_julian_from_sys())
Converts an actual sky location to coordinates to send to the mount, usually called in Goto.
void ProcessAlignmentSwitchProperties(Telescope *pTelescope, const char *name, ISState *states, char *names[], int n)
Call this function from within the ISNewSwitch processing path. The function will handle any alignmen...
bool SkyToTelescopeEquatorial(double actualRA, double actualDec, double &mountRA, double &mountDec, double JD=ln_get_julian_from_sys())
Converts an actual sky location to coordinates to send to the mount, usually called in Goto.
bool TelescopeEquatorialToSky(double mountRA, double mountDec, double &actualRA, double &actualDec, double JD=ln_get_julian_from_sys())
Converts a mount location to actual sky coordinates, usually called in ReadScopeStatus.
virtual ~AlignmentSubsystemForDrivers()
Virtual destructor.
void InitAlignmentProperties(Telescope *pTelescope)
Initialize alignment subsystem properties. It is recommended to call this function within initPropert...
bool TelescopeAltAzToSky(double mountAlt, double mountAz, double &actualRA, double &actualDec, double JD=ln_get_julian_from_sys())
Converts a mount location to actual sky coordinates, usually called in ReadScopeStatus.
AlignmentSubsystemForDrivers()
Default constructor.
void ProcessAlignmentBLOBProperties(Telescope *pTelescope, const char *name, int sizes[], int blobsizes[], char *blobs[], char *formats[], char *names[], int n)
Call this function from within the ISNewBlob processing path. The function will handle any alignment ...
bool AddAlignmentEntryAltAz(double actualRA, double actualDec, double mountAlt, double mountAz, double JD=ln_get_julian_from_sys())
Adds an alignment point to the model database, usually called from Sync.
void SaveAlignmentConfigProperties(FILE *fp)
Call this function to save persistent alignment related properties. This function should be called fr...
void ProcessAlignmentTextProperties(Telescope *pTelescope, const char *name, char *texts[], char *names[], int n)
Call this function from within the ISNewText processing path. The function will handle any alignment ...
An entry in the sync point database is defined by the following INDI properties.
The following INDI properties are used to manage math plugins.
These functions are used to convert different coordinate systems to and from the telescope direction ...
Implementations for common driver routines.
Namespace to encapsulate INDI client, drivers, and mediator classes.