|
Instrument Neutral Distributed Interface INDI 2.2.5
|
These functions are used to convert different coordinate systems to and from the telescope direction vectors (normalised vector/direction cosines) used for telescope coordinates in the alignment subsystem. More...
#include <TelescopeDirectionVectorSupportFunctions.h>
Public Member Functions | |
| virtual | ~TelescopeDirectionVectorSupportFunctions () |
| Virtual destructor. | |
| void | AltitudeAzimuthFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, INDI::IHorizontalCoordinates &HorizontalCoordinates) |
| Calculates an altitude and azimuth from the supplied normalised direction vector and declination. | |
| void | EquatorialCoordinatesFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, INDI::IEquatorialCoordinates &EquatorialCoordinates) |
| Calculates equatorial coordinates from the supplied telescope direction vector and declination. | |
| void | LocalHourAngleDeclinationFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, INDI::IEquatorialCoordinates &EquatorialCoordinates) |
| Calculates a local hour angle and declination from the supplied telescope direction vector and declination. | |
| void | SphericalCoordinateFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, double &AzimuthAngle, AzimuthAngleDirection_t AzimuthAngleDirection, double &PolarAngle, PolarAngleDirection_t PolarAngleDirection) |
| Calculates a spherical coordinate from the supplied telescope direction vector. | |
| const TelescopeDirectionVector | TelescopeDirectionVectorFromAltitudeAzimuth (INDI::IHorizontalCoordinates HorizontalCoordinates) |
| Calculates a normalised direction vector from the supplied altitude and azimuth. | |
| const TelescopeDirectionVector | TelescopeDirectionVectorFromEquatorialCoordinates (INDI::IEquatorialCoordinates EquatorialCoordinates) |
| Calculates a telescope direction vector from the supplied equatorial coordinates. | |
| const TelescopeDirectionVector | TelescopeDirectionVectorFromLocalHourAngleDeclination (INDI::IEquatorialCoordinates EquatorialCoordinates) |
| Calculates a telescope direction vector from the supplied local hour angle and declination. | |
| const TelescopeDirectionVector | TelescopeDirectionVectorFromSphericalCoordinate (const double AzimuthAngle, AzimuthAngleDirection_t AzimuthAngleDirection, const double PolarAngle, PolarAngleDirection_t PolarAngleDirection) |
| Calculates a telescope direction vector from the supplied spherical coordinate information. | |
These functions are used to convert different coordinate systems to and from the telescope direction vectors (normalised vector/direction cosines) used for telescope coordinates in the alignment subsystem.
Definition at line 24 of file TelescopeDirectionVectorSupportFunctions.h.
| typedef enum INDI::AlignmentSubsystem::TelescopeDirectionVectorSupportFunctions::AzimuthAngleDirection INDI::AlignmentSubsystem::TelescopeDirectionVectorSupportFunctions::AzimuthAngleDirection_t |
| typedef enum INDI::AlignmentSubsystem::TelescopeDirectionVectorSupportFunctions::PolarAngleDirection INDI::AlignmentSubsystem::TelescopeDirectionVectorSupportFunctions::PolarAngleDirection_t |
The direction of measurement of an azimuth angle. The following are the conventions for some coordinate systems.
| Enumerator | |
|---|---|
| CLOCKWISE | Angle is measured clockwise |
| ANTI_CLOCKWISE | Angle is measured anti clockwise |
Definition at line 41 of file TelescopeDirectionVectorSupportFunctions.h.
The direction of measurement of a polar angle. The following are conventions for some coordinate systems
| Enumerator | |
|---|---|
| FROM_POLAR_AXIS | Angle is measured down from the polar axis |
| FROM_AZIMUTHAL_PLANE | Angle is measured upwards from the azimuthal plane |
Definition at line 55 of file TelescopeDirectionVectorSupportFunctions.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 28 of file TelescopeDirectionVectorSupportFunctions.h.
|
inline |
Calculates an altitude and azimuth from the supplied normalised direction vector and declination.
| [in] | TelescopeDirectionVector | |
| [out] | HorizontalCoordinates | Altitude and Azimuth in decimal degrees |
Definition at line 68 of file TelescopeDirectionVectorSupportFunctions.h.
|
inline |
Calculates equatorial coordinates from the supplied telescope direction vector and declination.
| [in] | TelescopeDirectionVector | |
| [out] | EquatorialCoordinates | The equatorial coordinates in hours minutes seconds and degrees minutes seconds |
Definition at line 85 of file TelescopeDirectionVectorSupportFunctions.h.
|
inline |
Calculates a local hour angle and declination from the supplied telescope direction vector and declination.
| [in] | TelescopeDirectionVector | |
| [out] | EquatorialCoordinates | The local hour angle and declination in decimal degrees |
Definition at line 102 of file TelescopeDirectionVectorSupportFunctions.h.
| void INDI::AlignmentSubsystem::TelescopeDirectionVectorSupportFunctions::SphericalCoordinateFromTelescopeDirectionVector | ( | const TelescopeDirectionVector | TelescopeDirectionVector, |
| double & | AzimuthAngle, | ||
| AzimuthAngleDirection_t | AzimuthAngleDirection, | ||
| double & | PolarAngle, | ||
| PolarAngleDirection_t | PolarAngleDirection | ||
| ) |
Calculates a spherical coordinate from the supplied telescope direction vector.
| [in] | TelescopeDirectionVector | |
| [out] | AzimuthAngle | The azimuth angle in radians |
| [in] | AzimuthAngleDirection | The direction the azimuth angle has been measured either CLOCKWISE or ANTI_CLOCKWISE |
| [out] | PolarAngle | The polar angle in radians |
| [in] | PolarAngleDirection | The direction the polar angle has been measured either FROM_POLAR_AXIS or FROM_AZIMUTHAL_PLANE |
Definition at line 15 of file TelescopeDirectionVectorSupportFunctions.cpp.
|
inline |
Calculates a normalised direction vector from the supplied altitude and azimuth.
| [in] | HorizontalCoordinates | Altitude and Azimuth in decimal degrees |
Definition at line 132 of file TelescopeDirectionVectorSupportFunctions.h.
|
inline |
Calculates a telescope direction vector from the supplied equatorial coordinates.
| [in] | EquatorialCoordinates | The equatorial coordinates in hours minutes seconds and degrees minutes seconds |
Definition at line 146 of file TelescopeDirectionVectorSupportFunctions.h.
|
inline |
Calculates a telescope direction vector from the supplied local hour angle and declination.
| [in] | EquatorialCoordinates | The local hour angle and declination in decimal degrees |
Definition at line 160 of file TelescopeDirectionVectorSupportFunctions.h.
| const TelescopeDirectionVector INDI::AlignmentSubsystem::TelescopeDirectionVectorSupportFunctions::TelescopeDirectionVectorFromSphericalCoordinate | ( | const double | AzimuthAngle, |
| AzimuthAngleDirection_t | AzimuthAngleDirection, | ||
| const double | PolarAngle, | ||
| PolarAngleDirection_t | PolarAngleDirection | ||
| ) |
Calculates a telescope direction vector from the supplied spherical coordinate information.
| [in] | AzimuthAngle | The azimuth angle in radians |
| [in] | AzimuthAngleDirection | The direction the azimuth angle has been measured either CLOCKWISE or ANTI_CLOCKWISE |
| [in] | PolarAngle | The polar angle in radians |
| [in] | PolarAngleDirection | The direction the polar angle has been measured either FROM_POLAR_AXIS or FROM_AZIMUTHAL_PLANE |
Definition at line 48 of file TelescopeDirectionVectorSupportFunctions.cpp.