AHP® GT Controllers API
AHP GT Controllers
|
Functions | |
DLL_EXPORT int | ahp_gt_start_synscan_server (int port, int *interrupt) |
Start an TCP server on the given port and stop after interrupt equals to 1. | |
DLL_EXPORT void | ahp_gt_set_aligned (int aligned) |
Set the alignment state of the current device. | |
DLL_EXPORT int | ahp_gt_is_aligned () |
Get the alignment state of the current device. | |
DLL_EXPORT void | ahp_gt_set_time (double seconds) |
Set current time. | |
DLL_EXPORT double | ahp_gt_get_time () |
Get current time. | |
DLL_EXPORT void | ahp_gt_set_time_offset (double offset) |
Set current time offset. | |
DLL_EXPORT double | ahp_gt_get_time_offset () |
Get current time offset. | |
DLL_EXPORT void | ahp_gt_set_location (double latitude, double longitude, double elevation) |
Set geographic coordinates. | |
DLL_EXPORT void | ahp_gt_get_location (double *latitude, double *longitude, double *elevation) |
Get geographic coordinates. | |
DLL_EXPORT void | ahp_gt_goto_altaz (double alt, double az) |
Move both axes to horizontal coordinates. | |
DLL_EXPORT double | ahp_gt_tracking_sine (double Alt, double Az, double Lat) |
Get the altitude tracking multiplier for AZ mounts. | |
DLL_EXPORT double | ahp_gt_tracking_cosine (double Alt, double Az, double Lat) |
Get the azimuth tracking multiplier for AZ mounts. | |
DLL_EXPORT void | ahp_gt_goto_radec (double ra, double dec) |
Move both axes to celestial coordinates. | |
DLL_EXPORT void | ahp_gt_sync_radec (double ra, double dec) |
Set both axes positions to celestial coordinates. | |
DLL_EXPORT void | ahp_gt_correct_tracking (int axis, double target_period, int *interrupt) |
Start a tracking motion correction. | |
DLL_EXPORT void | ahp_gt_start_tracking_thread () |
Start the tracking thread. | |
DLL_EXPORT void | ahp_gt_stop_tracking_thread () |
Stop the tracking thread. | |
DLL_EXPORT void | ahp_gt_set_tracking_mode (int mode) |
Set the tracking mode. | |
DLL_EXPORT int | ahp_gt_get_tracking_mode () |
Get the tracking mode. | |
DLL_EXPORT void | ahp_gt_start_tracking (int axis) |
Start a test tracking motion. | |
DLL_EXPORT void | ahp_gt_get_ra_dec_coordinates (double Alt, double Az, double *Ra, double *Dec) |
Get the azimuth tracking multiplier for AZ mounts. | |
DLL_EXPORT void | ahp_gt_get_alt_az_coordinates (double Ra, double Dec, double *Alt, double *Az) |
Get current altitude and azimuth. | |
DLL_EXPORT double | ahp_gt_get_ha () |
Get the current hour angle. | |
DLL_EXPORT double | ahp_gt_get_ra () |
Get the current right ascension. | |
DLL_EXPORT double | ahp_gt_get_dec () |
Get the current declination. | |
DLL_EXPORT void ahp_gt_correct_tracking | ( | int | axis, |
double | target_period, | ||
int * | interrupt | ||
) |
axis | The motor to tune at sidereal speed |
target_period | The target sidereal period |
interrupt | if non-zero stop training before ending this session |
DLL_EXPORT void ahp_gt_get_alt_az_coordinates | ( | double | Ra, |
double | Dec, | ||
double * | Alt, | ||
double * | Az | ||
) |
Ra | Right ascension |
Dec | Declination |
Alt | Altitude filled by reference |
Az | Azimuth filled by reference |
DLL_EXPORT double ahp_gt_get_dec | ( | ) |
DLL_EXPORT double ahp_gt_get_ha | ( | ) |
DLL_EXPORT void ahp_gt_get_location | ( | double * | latitude, |
double * | longitude, | ||
double * | elevation | ||
) |
latitude | The latitude coordinate in degrees |
longitude | The longitude coordinate in degrees |
elevation | The elevation on sea level |
DLL_EXPORT double ahp_gt_get_ra | ( | ) |
DLL_EXPORT void ahp_gt_get_ra_dec_coordinates | ( | double | Alt, |
double | Az, | ||
double * | Ra, | ||
double * | Dec | ||
) |
Alt | Altitude |
Az | Azimuth |
Ra | Right ascension filled by reference |
Dec | Declination filled by reference |
DLL_EXPORT double ahp_gt_get_time | ( | ) |
DLL_EXPORT double ahp_gt_get_time_offset | ( | ) |
DLL_EXPORT int ahp_gt_get_tracking_mode | ( | ) |
DLL_EXPORT void ahp_gt_goto_altaz | ( | double | alt, |
double | az | ||
) |
alt | Altitude in degrees |
az | Azimuth in degrees |
DLL_EXPORT void ahp_gt_goto_radec | ( | double | ra, |
double | dec | ||
) |
ra | Right ascension in hours |
dec | Declination in degrees |
DLL_EXPORT int ahp_gt_is_aligned | ( | ) |
DLL_EXPORT void ahp_gt_set_aligned | ( | int | aligned | ) |
aligned | 1 if aligned, 0 if not yet aligned |
DLL_EXPORT void ahp_gt_set_location | ( | double | latitude, |
double | longitude, | ||
double | elevation | ||
) |
latitude | The latitude coordinate in degrees |
longitude | The longitude coordinate in degrees |
elevation | The elevation on sea level |
DLL_EXPORT void ahp_gt_set_time | ( | double | seconds | ) |
seconds | Current time |
DLL_EXPORT void ahp_gt_set_time_offset | ( | double | offset | ) |
offset | Current time offset |
DLL_EXPORT void ahp_gt_set_tracking_mode | ( | int | mode | ) |
mode | The tracking mode - 0: no tracking 1: EQ mode 2: AZ mode |
DLL_EXPORT int ahp_gt_start_synscan_server | ( | int | port, |
int * | interrupt | ||
) |
port | The TCP port of the server |
interrupt | Stop when interrupt is non-zero - passed by reference |
DLL_EXPORT void ahp_gt_start_tracking | ( | int | axis | ) |
axis | The motor to drive at sidereal speed |
DLL_EXPORT void ahp_gt_sync_radec | ( | double | ra, |
double | dec | ||
) |
ra | Right ascension in hours |
dec | Declination in degrees |
DLL_EXPORT double ahp_gt_tracking_cosine | ( | double | Alt, |
double | Az, | ||
double | Lat | ||
) |
Alt | Altitude |
Az | Azimuth |
Lat | Latitude of the current location |
DLL_EXPORT double ahp_gt_tracking_sine | ( | double | Alt, |
double | Az, | ||
double | Lat | ||
) |
Alt | Altitude |
Az | Azimuth |
Lat | Latitude of the current location |