Instrument Neutral Distributed Interface INDI  2.0.0
DummyMathPlugin.cpp
Go to the documentation of this file.
1 
5 #include "DummyMathPlugin.h"
6 
7 namespace INDI
8 {
9 namespace AlignmentSubsystem
10 {
11 // Standard functions required for all plugins
12 extern "C" {
14  {
15  return new DummyMathPlugin;
16  }
17 
18  void Destroy(DummyMathPlugin *pPlugin)
19  {
20  delete pPlugin;
21  }
22 
23  const char *GetDisplayName()
24  {
25  return "Dummy Math Plugin";
26  }
27 }
28 
30 {
31  //ctor
32 }
33 
35 {
36  //dtor
37 }
38 
40 {
41  // Call the base class to initialise to in in memory database pointer
43 
44  return false;
45 }
46 
47 bool DummyMathPlugin::TransformCelestialToTelescope(const double RightAscension, const double Declination,
48  double JulianOffset,
49  TelescopeDirectionVector &ApparentTelescopeDirectionVector)
50 {
51  return false;
52 }
53 
54 bool DummyMathPlugin::TransformTelescopeToCelestial(const TelescopeDirectionVector &ApparentTelescopeDirectionVector,
55  double &RightAscension, double &Declination)
56 {
57  return false;
58 }
59 
60 } // namespace AlignmentSubsystem
61 } // namespace INDI
virtual bool TransformTelescopeToCelestial(const TelescopeDirectionVector &ApparentTelescopeDirectionVector, double &RightAscension, double &Declination)
Get the true celestial coordinates for the supplied telescope pointing direction.
virtual bool Initialise(InMemoryDatabase *pInMemoryDatabase)
Initialise or re-initialise the math plugin. Re-reading the in memory database as necessary.
virtual bool TransformCelestialToTelescope(const double RightAscension, const double Declination, double JulianOffset, TelescopeDirectionVector &ApparentTelescopeDirectionVector)
Get the alignment corrected telescope pointing direction for the supplied celestial coordinates.
This class provides the driver side API to the in memory alignment database.
InMemoryDatabase * pInMemoryDatabase
Definition: MathPlugin.h:83
virtual bool Initialise(InMemoryDatabase *pInMemoryDatabase)
Initialise or re-initialise the math plugin. Re-reading the in memory database as necessary.
Definition: MathPlugin.cpp:15
void Destroy(DummyMathPlugin *pPlugin)
DummyMathPlugin * Create()
Namespace to encapsulate INDI client, drivers, and mediator classes.
Holds a nomalised direction vector (direction cosines)
Definition: Common.h:69