Main Page | Class List | Directories | File List | Class Members | File Members

telescope.h File Reference

parsing the status file from the telescope mount More...

#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


Detailed Description

parsing the status file from the telescope mount

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.


Function Documentation

struct telescope_status_struct telescope_get_status  ) 
 

returns the current status of the telescope control.

Returns:
ccu_status_struct a struct describing the current status of the telescope control
This function returns a struct describing the current status of the telescope control.

int telescope_parse_statusfile  ) 
 

parses the statusfile sent by the telescope control program.

Returns:
int an errorcode This function parses the statusfile sent by the telescope control program.

char* telescope_pointing_model_short int  code  ) 
 

retruns a short string corresponding to pointing model code defined in telescope.h.

Parameters:
code the pointing model code
Returns:
char* the message string (plain ascii)
This function retruns a sshort tring corresponding to pointing model code defined in telescope.h.

char* telescope_pointing_model_text int  code  ) 
 

retruns a string corresponding to pointing model code defined in telescope.h.

Parameters:
code the pointing model code
Returns:
char* the message string (plain ascii)
This function retruns a string corresponding to pointing model code defined in telescope.h.

void telescope_set_filenames struct telescope_filename_struct  input  ) 
 

sets the filename(s) associated with telescope.c.

Returns:
void
This function sets the filename(s) associated with telescope.c. For now this is only one file

char* telescope_status_message int  code  ) 
 

retruns a string corresponding to status code defined in telescope.h.

Parameters:
code the status code
Returns:
char* the message string (pango markup)
This function retruns a string corresponding to status code defined in telescope.h.

void ui_telescope_codes_changed struct telescope_status_struct  input  ) 
 

called by telescope.c whenever its status codes have changed.

Parameters:
input a structure describing the current status of telescope.c
Returns:
void
This function is called by telescope.c whenever its status codes changed. It is declared as an abstract function in telescope.h and implemented here.

void ui_telescope_numbers_changed struct telescope_status_struct  input  ) 
 

called by telescope.c whenever its status numbers have changed.

Parameters:
input a structure describing the current status of telescope.c
Returns:
void
This function is called by telescope.c whenever its status numbers have changed. It is declared as an abstract function in telescope.h and implemented here.

void ui_telescope_statuslight_changed struct telescope_status_struct  input  ) 
 

called by telescope.c whenever its status light has changed.

Parameters:
input a structure describing the current status of telescope.c
Returns:
void
This function is called by telescope.c whenever its status status light changed. It is declared as an abstract function in telescope.h and implemented here.

void ui_telescope_strings_changed struct telescope_status_struct  input  ) 
 

called by telescope.c whenever its status strings have changed.

Parameters:
input a structure describing the current status of telescope.c
Returns:
void
This function is called by telescope.c whenever its status strings have changed. It is declared as an abstract function in telescope.h and implemented here.


Variable Documentation

sem_t telescope_status_sem
 

a semaphore procteting telescope_status


Generated on Fri Dec 16 22:23:40 2005 for gboccia by  doxygen 1.4.2