#include "serial.h"
#include "semaphore.h"
Go to the source code of this file.
Defines | |
#define | __telescope_h 1 |
#define | telescope_status_idle 0 |
#define | telescope_status_ok 1 |
#define | telescope_status_busy 2 |
#define | telescope_status_fail 3 |
#define | telescope_pointing_model_none 0 |
#define | telescope_pointing_model_cassegrain 1 |
#define | telescope_pointing_model_focal_reducer 2 |
Functions | |
int | telescope_parse_statusfile () |
parses the statusfile sent by the telescope control program. | |
char * | telescope_status_message (int code) |
retruns a string corresponding to status code defined in telescope.h. | |
char * | telescope_pointing_model_text (int code) |
retruns a string corresponding to pointing model code defined in telescope.h. | |
char * | telescope_pointing_model_short (int code) |
retruns a short string corresponding to pointing model code defined in telescope.h. | |
telescope_status_struct | telescope_get_status () |
returns the current status of the telescope control. | |
void | telescope_set_filenames (struct telescope_filename_struct input) |
sets the filename(s) associated with telescope.c. | |
void | ui_telescope_numbers_changed (struct telescope_status_struct) |
called by telescope.c whenever its status numbers have changed. | |
void | ui_telescope_strings_changed (struct telescope_status_struct) |
called by telescope.c whenever its status strings have changed. | |
void | ui_telescope_statuslight_changed (struct telescope_status_struct) |
called by telescope.c whenever its status light has changed. | |
void | ui_telescope_codes_changed (struct telescope_status_struct) |
called by telescope.c whenever its status codes have changed. | |
Variables | |
sem_t | telescope_status_sem |
Copyright (C) 2001-2003 Dirk Huenniger (dhun@astro.uni-bonn.de)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
|
returns the current status of the telescope control.
|
|
parses the statusfile sent by the telescope control program.
|
|
retruns a short string corresponding to pointing model code defined in telescope.h.
|
|
retruns a string corresponding to pointing model code defined in telescope.h.
|
|
sets the filename(s) associated with telescope.c.
|
|
retruns a string corresponding to status code defined in telescope.h.
|
|
called by telescope.c whenever its status codes have changed.
|
|
called by telescope.c whenever its status numbers have changed.
|
|
called by telescope.c whenever its status light has changed.
|
|
called by telescope.c whenever its status strings have changed.
|
|
a semaphore procteting telescope_status |