Instrument Neutral Distributed Interface INDI  1.9.5
Public Types | Public Member Functions | Public Attributes | List of all members
Alignment Class Reference

The Alignment class This converts between the mount axis angles and the sky hour angle and declination angles. Initially for equatorial fork and GEM mounts. To start with there is a unity mount model. The axis zeros correspond to the declination and hour angle zeroes and the directions match in the Northern henisphere For the GEM the normal pointing state is defined as positive hour angles, ie. with the mount on the East, looking West Both axis directions are mirrored in the South. More...

#include <scopesim_helper.h>

Public Types

enum  MOUNT_TYPE { ALTAZ, EQ_FORK, EQ_GEM }
 

Public Member Functions

 Alignment ()
 
void mountToApparentRaDec (Angle primary, Angle secondary, Angle *apparentRa, Angle *apparentDec)
 mountToApparentRaDec: convert mount position to apparent Ra, Dec More...
 
void apparentRaDecToMount (Angle apparentRa, Angle apparentDec, Angle *primary, Angle *secondary)
 
void setCorrections (double ih, double id, double ch, double np, double ma, double me)
 setCorrections set the values of the six corrections More...
 
void setFlipHourAngle (double deg)
 
const char * getDeviceName ()
 
double ih ()
 
double id ()
 
double np ()
 
double ch ()
 
double ma ()
 
double me ()
 
void instrumentToObserved (Angle instrumentHa, Angle instrumentDec, Angle *observedHa, Angle *observedDec)
 
void observedToInstrument (Angle observedHa, Angle observedDec, Angle *instrumentHa, Angle *instrumentDec)
 
void mountToApparentHaDec (Angle primary, Angle secondary, Angle *apparentHa, Angle *apparentDec)
 mountToApparentHaDec: convert mount position to apparent Ha, Dec More...
 
void apparentHaDecToMount (Angle apparentHa, Angle apparentDec, Angle *primary, Angle *secondary)
 apparentHaDecToMount More...
 
Angle lst ()
 

Public Attributes

Angle latitude = 0
 
Angle longitude = 0
 
MOUNT_TYPE mountType = EQ_FORK
 

Detailed Description

The Alignment class This converts between the mount axis angles and the sky hour angle and declination angles. Initially for equatorial fork and GEM mounts. To start with there is a unity mount model. The axis zeros correspond to the declination and hour angle zeroes and the directions match in the Northern henisphere For the GEM the normal pointing state is defined as positive hour angles, ie. with the mount on the East, looking West Both axis directions are mirrored in the South.

This uses a simple mount model based on Patrick Wallace's paper. this is at http://www.tpointsw.uk/pointing.htm

Terminology is as defined in figure 1:

Apparent Ra and Dec - what is (incorrectly) called JNow. positions are apparentRa and apparentDec apply local sidereal time Apparent Ha and Dec, positions are apparentHa and apparentDec ignore diurnal effects ignore refraction (for now) Observed Place These are the mount coordinates for a perfect mount, positions are observedHa and observedDec apply telescope pointing corrections Instrument Place these are the mount coordinates for the mount with corrections, values are instrumentHa and instrumentDec for a GEM convert to axis cooordinates ( this isn't in the paper). Mount Place these give primary (ha) and secondary (dec) positions

At present AltAz mounts are not implemented

Definition at line 364 of file scopesim_helper.h.

Member Enumeration Documentation

◆ MOUNT_TYPE

Enumerator
ALTAZ 
EQ_FORK 
EQ_GEM 

Definition at line 369 of file scopesim_helper.h.

Constructor & Destructor Documentation

◆ Alignment()

Alignment::Alignment ( )
inline

Definition at line 367 of file scopesim_helper.h.

Member Function Documentation

◆ apparentHaDecToMount()

void Alignment::apparentHaDecToMount ( Angle  apparentHa,
Angle  apparentDec,
Angle primary,
Angle secondary 
)

apparentHaDecToMount

Parameters
ha
apparentDec
primary
secondary

Definition at line 269 of file scopesim_helper.cpp.

◆ apparentRaDecToMount()

void Alignment::apparentRaDecToMount ( Angle  apparentRa,
Angle  apparentDec,
Angle primary,
Angle secondary 
)

Definition at line 312 of file scopesim_helper.cpp.

◆ ch()

double Alignment::ch ( )
inline

Definition at line 408 of file scopesim_helper.h.

◆ getDeviceName()

const char* Alignment::getDeviceName ( )
inline

Definition at line 403 of file scopesim_helper.h.

◆ id()

double Alignment::id ( )
inline

Definition at line 406 of file scopesim_helper.h.

◆ ih()

double Alignment::ih ( )
inline

Definition at line 405 of file scopesim_helper.h.

◆ instrumentToObserved()

void Alignment::instrumentToObserved ( Angle  instrumentHa,
Angle  instrumentDec,
Angle observedHa,
Angle observedDec 
)

Definition at line 321 of file scopesim_helper.cpp.

◆ lst()

Angle Alignment::lst ( )

Definition at line 221 of file scopesim_helper.cpp.

◆ ma()

double Alignment::ma ( )
inline

Definition at line 409 of file scopesim_helper.h.

◆ me()

double Alignment::me ( )
inline

Definition at line 410 of file scopesim_helper.h.

◆ mountToApparentHaDec()

void Alignment::mountToApparentHaDec ( Angle  primary,
Angle  secondary,
Angle apparentHa,
Angle apparentDec 
)

mountToApparentHaDec: convert mount position to apparent Ha, Dec

Parameters
primary
secondary
apparentHa
apparentDec

Definition at line 226 of file scopesim_helper.cpp.

◆ mountToApparentRaDec()

void Alignment::mountToApparentRaDec ( Angle  primary,
Angle  secondary,
Angle apparentRa,
Angle apparentDec 
)

mountToApparentRaDec: convert mount position to apparent Ra, Dec

Parameters
primary
secondary
apparentRa
apparentDec

Definition at line 261 of file scopesim_helper.cpp.

◆ np()

double Alignment::np ( )
inline

Definition at line 407 of file scopesim_helper.h.

◆ observedToInstrument()

void Alignment::observedToInstrument ( Angle  observedHa,
Angle  observedDec,
Angle instrumentHa,
Angle instrumentDec 
)

Definition at line 349 of file scopesim_helper.cpp.

◆ setCorrections()

void Alignment::setCorrections ( double  ih,
double  id,
double  ch,
double  np,
double  ma,
double  me 
)

setCorrections set the values of the six corrections

Parameters
ih
id
ch
np
ma
me

Definition at line 465 of file scopesim_helper.cpp.

◆ setFlipHourAngle()

void Alignment::setFlipHourAngle ( double  deg)
inline

Definition at line 400 of file scopesim_helper.h.

Member Data Documentation

◆ latitude

Angle Alignment::latitude = 0

Definition at line 371 of file scopesim_helper.h.

◆ longitude

Angle Alignment::longitude = 0

Definition at line 372 of file scopesim_helper.h.

◆ mountType

MOUNT_TYPE Alignment::mountType = EQ_FORK

Definition at line 374 of file scopesim_helper.h.


The documentation for this class was generated from the following files: