28namespace AlignmentSubsystem
110 double &RightAscension,
double &Declination,
double JulianDate)
override;
117 double &RightAscension,
double &Declination,
double JulianOffset = 0)
override;
121 std::vector<ExtendedAlignmentDatabaseEntry> ExtendedAlignmentPoints;
131 double SphereUnitDistance(
double theta1,
double theta2,
double phi1,
double phi2);
This class provides the driver side API to the in memory alignment database.
InMemoryDatabase * pInMemoryDatabase
virtual bool TransformTelescopeToCelestial(const TelescopeDirectionVector &ApparentTelescopeDirectionVector, double &RightAscension, double &Declination, double JulianOffset=0) override
Get the true celestial coordinates for the supplied telescope pointing direction.
virtual bool TransformCelestialToTelescopeJD(double RightAscension, double Declination, double JulianDate, TelescopeDirectionVector &ApparentTelescopeDirectionVector) override
Get the alignment corrected telescope pointing direction for the supplied celestial coordinates.
virtual bool TransformCelestialToTelescope(const double RightAscension, const double Declination, double JulianOffset, TelescopeDirectionVector &ApparentTelescopeDirectionVector) override
Get the alignment corrected telescope pointing direction for the supplied celestial coordinates.
virtual bool TransformTelescopeToCelestialJD(const TelescopeDirectionVector &ApparentTelescopeDirectionVector, double &RightAscension, double &Declination, double JulianDate) override
Get the true celestial coordinates for the supplied telescope pointing direction.
virtual ~NearestMathPlugin()
virtual bool Initialise(InMemoryDatabase *pInMemoryDatabase) override
Initialise or re-initialise the math plugin. Re-reading the in memory database as necessary.
Namespace to encapsulate INDI client, drivers, and mediator classes.
Entry in the in memory alignment database.
double RightAscension
Right ascension in decimal hours. N.B. libnova works in decimal degrees so conversion is always neede...
double ObservationJulianDate
TelescopeDirectionVector TelescopeDirection
Normalised vector giving telescope pointing direction. This is referred to elsewhere as the "apparent...
double Declination
Declination in decimal degrees.
int PrivateDataSize
This size in bytes of any private data.
std::unique_ptr< unsigned char > PrivateData
Private data associated with this sync point.
double CelestialAzimuth
Celestial Azimuth of Sync Point at the time it was added to the list.
double TelescopeAzimuth
Telescope Azimuth of Sync Point at the time it was added to the list.
ExtendedAlignmentDatabaseEntry(const ExtendedAlignmentDatabaseEntry &Source)
Copy constructor.
double TelescopeAltitude
Telescope Altitude of the Sync point at the time it was added to the list.
double CelestialAltitude
Celestial Altitude of the Sync point at the time it was added to the list.
const ExtendedAlignmentDatabaseEntry & operator=(const ExtendedAlignmentDatabaseEntry &RHS)
Override the assignment operator to provide a const version.
ExtendedAlignmentDatabaseEntry()
Default constructor.
Holds a normalised direction vector (direction cosines)