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

telescope.c File Reference

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

#include <stdlib.h>
#include "telescope.h"
#include "semaphore.h"
#include "error.h"
#include "gnome.h"

Functions

void telescope_set_status_async (struct telescope_status_struct input)
 sets the status of the telescope control (for internal use by telescope.c only).
void telescope_set_status (struct telescope_status_struct input)
 sets the status of the telescope control.
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_message (int code)
 retruns a string 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.
char * telescope_pointing_model_short (int code)
 retruns a short 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.
telescope_filename_struct telescope_get_filenames ()
 returns the filename(s) associated with telescope.c.
telescope_status_struct telescope_get_status ()
 returns the current status of the telescope control.

Variables

sem_t telescope_status_sem
telescope_status_struct telescope_status
telescope_filename_struct telescope_filenames


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_filename_struct telescope_get_filenames  ) 
 

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

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

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_message 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 (pango markup)
This function 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.

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

void telescope_set_status struct telescope_status_struct  input  ) 
 

sets the status of the telescope control.

Parameters:
input a telescope_status_struct representing the status to be set.
Returns:
void This function sets the status of the telescope control.

void telescope_set_status_async struct telescope_status_struct  input  ) 
 

sets the status of the telescope control (for internal use by telescope.c only).

Parameters:
input a telescope_status_struct representing the status to be set.
Returns:
void This function sets the status of the telescope control without repecting telescope_status_sem. This function for internal use by telescopel.c only. To set the telescope status use telescope_set_status.

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.


Variable Documentation

struct telescope_filename_struct telescope_filenames
 

a struct storing all filenames needed by instrument control

struct telescope_status_struct telescope_status
 

a struct representing the current status of instrument control

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