#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "ccu.h"
#include "instctrl.h"
#include "background.h"
#include "fitsoutput.h"
#include "error.h"
#include "acquisition.h"
#include "progress.h"
#include "telescope.h"
#include "indidevapi.h"
#include "eventloop.h"
#include "indicom.h"
#include "vectors.h"
#include "semaphore.h"
#include "indiboccia.h"
#include "base64.h"
#include <zlib.h>
#include "preview.h"
#include <string.h>
#include <sys/stat.h>
Functions | |
void | ui_init_acquisition () |
set up the gui for a beginning acquisition | |
void | ui_fill_previewbuf (unsigned char *data, int size) |
fills previewbuf with data, without drawing anything | |
void | ui_ccu_progress_changed (struct ccu_status_struct status) |
called by ccu.c whenever its progress-/status- property has changed. | |
int | to_switch (int input) |
Converts an int to an INDI switch state. | |
void | ui_ccu_switches_changed (struct ccu_status_struct input) |
called by ccu.c whenever its switches property changed. | |
void | ui_ccu_codes_changed (struct ccu_status_struct input) |
called by ccu.c whenever its codes property changed. | |
void | ui_ccu_sequences_changed (struct ccu_sequence_struct input) |
called by ccu.c whenever the sequence list changed. | |
void | ui_ccu_zero_volt_set (void) |
called by ccu.c whenever the zero volt sequence has been successfully executed. | |
void | ui_acquisition_stopped () |
called by acquisition.c whenever an accquisition was stopped or has finished. | |
void | ui_acq_progress_changed (struct progress_struct input) |
called by acquisition.c whenever its progress-/status- property has changed. | |
void | ui_acq_readout_finished () |
called by acquisition.c whenever a readout has been completed successfully. | |
void | ui_ccu_ser_in (const char *str) |
called by ccu.c whenever something is received from the CCU's serial port. | |
void | ui_ccu_ser_out (const char *str) |
called by ccu.c whenever something is send to the CCU's serial port. | |
void | ui_fitsoutput_status_changed (struct fitsoutput_status_struct status) |
called by fitsoutput.c whenever its status changed. | |
int | instctrl2indi (int input) |
translates Instrument Control status codes to an INDI status code | |
int | ccu2indi (int input) |
translates CCD Controller status codes to an INDI status code | |
void | ui_instctrl_numbers_changed (struct instctrl_status_struct input) |
called by instctrl.c whenever its status numbers have changed. | |
void | ui_instctrl_strings_changed (struct instctrl_status_struct input) |
called by instctrl.c whenever its status strings have changed. | |
void | ui_instctrl_statuslight_changed (struct instctrl_status_struct input) |
called by instctrl.c whenever its status light has changed. | |
void | ui_instctrl_filters_changed (struct instctrl_filterlist_struct filterlist) |
called by instctrl.c whenever the list of filters has changed. | |
int | telescope2indi (int input) |
converts a telescope status code to an INDI status code. | |
void | ui_telescope_numbers_changed (struct telescope_status_struct input) |
called by telescope.c whenever its status numbers have changed. | |
void | ui_telescope_strings_changed (struct telescope_status_struct input) |
called by telescope.c whenever its status strings have changed. | |
void | ui_telescope_statuslight_changed (struct telescope_status_struct input) |
called by telescope.c whenever its status light has changed. | |
void | ui_telescope_codes_changed (struct telescope_status_struct input) |
called by telescope.c whenever its status codes have changed. | |
void | ui_timer (void) |
called by background.c approximately each 0.05 seconds. | |
void | ui_preview_data (unsigned char *Data, unsigned long sendBytes) |
is called by preview.c whenever new data is ready for display | |
void | ui_preview_reset (int width, int height) |
is called by preview.c whenever the preview resets itself | |
void | ui_image_statistics_changed (struct image_statistics_struct input) |
called by prewiev.c and fisoutout.c whenever the image statistics have changed. | |
void | ui_auto_msg (char *msg) |
called by auto.c whenever it wants to tell the user a message. | |
void | ui_auto_ended (char *msg) |
called by auto.c whenever and automated operatin has ended. | |
void | ui_auto_flats_done_changed (int flats_done) |
called by auto.c whenever the number of flats done has changed. | |
void | ui_auto_shutter_offset_changed (double offset) |
called by auto.c whenever the shutter_offset has changed. | |
void | ui_texoutput_ready_for_edit (char *filename) |
called by texout.c whenever the texfile is ready to be edited. | |
void | ui_texoutput_appended (char *data) |
called by texout.c whenever something has been appended to the texfile. | |
Variables | |
instctrl_filterlist_struct | filters |
char | ui_ccu_progress_msg [1000] |
double | ui_ccu_progress_percentage |
sem_t | ui_ccu_progress_msg_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.
It calls the INDI Server API and the INDI Server send the information to the clients.
|
translates CCD Controller status codes to an INDI status code
|
|
translates Instrument Control status codes to an INDI status code
|
|
converts a telescope status code to an INDI status code.
|
|
Converts an int to an INDI switch state.
|
|
called by acquisition.c whenever its progress-/status- property has changed.
|
|
called by acquisition.c whenever a readout has been completed successfully.
|
|
called by acquisition.c whenever an accquisition was stopped or has finished.
|
|
called by auto.c whenever and automated operatin has ended.
|
|
called by auto.c whenever the number of flats done has changed.
|
|
called by auto.c whenever it wants to tell the user a message.
|
|
called by auto.c whenever the shutter_offset has changed.
|
|
called by ccu.c whenever its codes property changed.
|
|
called by ccu.c whenever its progress-/status- property has changed.
|
|
called by ccu.c whenever the sequence list changed.
|
|
called by ccu.c whenever something is received from the CCU's serial port.
|
|
called by ccu.c whenever something is send to the CCU's serial port.
|
|
called by ccu.c whenever its switches property changed.
|
|
called by ccu.c whenever the zero volt sequence has been successfully executed.
|
|
fills previewbuf with data, without drawing anything
|
|
called by fitsoutput.c whenever its status changed.
|
|
called by prewiev.c and fisoutout.c whenever the image statistics have changed.
|
|
set up the gui for a beginning acquisition
|
|
called by instctrl.c whenever the list of filters has changed.
|
|
called by instctrl.c whenever its status numbers have changed.
|
|
called by instctrl.c whenever its status light has changed.
|
|
called by instctrl.c whenever its status strings have changed.
|
|
is called by preview.c whenever new data is ready for display
|
|
is called by preview.c whenever the preview resets itself
|
|
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.
|
|
called by texout.c whenever something has been appended to the texfile.
|
|
called by texout.c whenever the texfile is ready to be edited.
|
|
called by background.c approximately each 0.05 seconds.
|
|
The list of filters available |
|
the progress message of the CCD Controller to be send to the user |
|
a semaphore protecting ui_ccu_progress_percentage and instctrl_filterlist_struct |
|
the progress percentage of the CCD Controller to be send to the user |