TwiceAsNice
2019-02-18
|
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 susbsystem. More...
#include <TelescopeDirectionVectorSupportFunctions.h>
Public Member Functions | |
virtual | ~TelescopeDirectionVectorSupportFunctions () |
Virtual destructor. More... | |
void | AltitudeAzimuthFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, ln_hrz_posn &HorizontalCoordinates) |
Calculates an altitude and azimuth from the supplied normalised direction vector and declination. More... | |
void | AltitudeAzimuthFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, lnh_hrz_posn &HorizontalCoordinates) |
Calculates an altitude and azimuth from the supplied normalised direction vector and declination. More... | |
void | EquatorialCoordinatesFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, struct ln_equ_posn &EquatorialCoordinates) |
Calculates equatorial coordinates from the supplied telescope direction vector and declination. More... | |
void | EquatorialCoordinatesFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, struct lnh_equ_posn &EquatorialCoordinates) |
Calculates equatorial coordinates from the supplied telescope direction vector and declination. More... | |
void | LocalHourAngleDeclinationFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, struct ln_equ_posn &EquatorialCoordinates) |
Calculates a local hour angle and declination from the supplied telescope direction vector and declination. More... | |
void | LocalHourAngleDeclinationFromTelescopeDirectionVector (const TelescopeDirectionVector TelescopeDirectionVector, struct lnh_equ_posn &EquatorialCoordinates) |
Calculates a local hour angle and declination from the supplied telescope direction vector and declination. More... | |
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. More... | |
const TelescopeDirectionVector | TelescopeDirectionVectorFromAltitudeAzimuth (ln_hrz_posn HorizontalCoordinates) |
Calculates a normalised direction vector from the supplied altitude and azimuth. More... | |
const TelescopeDirectionVector | TelescopeDirectionVectorFromAltitudeAzimuth (lnh_hrz_posn HorizontalCoordinates) |
Calculates a normalised direction vector from the supplied altitude and azimuth. More... | |
const TelescopeDirectionVector | TelescopeDirectionVectorFromEquatorialCoordinates (struct ln_equ_posn EquatorialCoordinates) |
Calculates a telescope direction vector from the supplied equatorial coordinates. More... | |
const TelescopeDirectionVector | TelescopeDirectionVectorFromEquatorialCoordinates (struct lnh_equ_posn EquatorialCoordinates) |
Calculates a telescope direction vector from the supplied equatorial coordinates. More... | |
const TelescopeDirectionVector | TelescopeDirectionVectorFromLocalHourAngleDeclination (struct ln_equ_posn EquatorialCoordinates) |
Calculates a telescope direction vector from the supplied local hour angle and declination. More... | |
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. More... | |
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 susbsystem.
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 |
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 |
|
inlinevirtual |
Virtual destructor.
|
inline |
Calculates an altitude and azimuth from the supplied normalised direction vector and declination.
[in] | TelescopeDirectionVector | |
[out] | HorizontalCoordinates | Altitude and Azimuth in decimal degrees |
|
inline |
Calculates an altitude and azimuth from the supplied normalised direction vector and declination.
[in] | TelescopeDirectionVector | |
[out] | HorizontalCoordinates | Altitude and Azimuth in degrees minutes seconds |
|
inline |
Calculates equatorial coordinates from the supplied telescope direction vector and declination.
[in] | TelescopeDirectionVector | |
[out] | EquatorialCoordinates | The equatorial coordinates in decimal degrees |
|
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 |
|
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 |
|
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 hours minutes seconds and degrees minutes seconds |
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 |
|
inline |
Calculates a normalised direction vector from the supplied altitude and azimuth.
[in] | HorizontalCoordinates | Altitude and Azimuth in decimal degrees |
|
inline |
Calculates a normalised direction vector from the supplied altitude and azimuth.
[in] | HorizontalCoordinates | Altitude and Azimuth in degrees minutes seconds |
|
inline |
Calculates a telescope direction vector from the supplied equatorial coordinates.
[in] | EquatorialCoordinates | The equatorial coordinates in decimal degrees |
|
inline |
Calculates a telescope direction vector from the supplied equatorial coordinates.
[in] | EquatorialCoordinates | The equatorial coordinates in hours minutes seconds and degrees minutes seconds |
|
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 |
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 |