#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <stdarg.h>
#include "auto.h"
#include "acquisition.h"
#include "background.h"
#include "preview.h"
#include "ccu.h"
#include "instctrl.h"
#include "fitsoutput.h"
#include <gsl/gsl_statistics.h>
#include <gsl/gsl_sort.h>
#include <gsl/gsl_fit.h>
Defines | |
| #define | SQR(a) ((a)*(a)) |
Functions | |
| void | auto_image_statistics_changed (struct image_statistics_struct stat) |
| called whenever the image statistics have changed. | |
| void | auto_calibration_finished (char *dummy) |
| called whenever a callibration procedure (in auto.c) has finished | |
| void | auto_fail (char *description) |
| called whenever something went severly wrong in auto.c, and automode needs to be stopped | |
| void | auto_error (char *description) |
| called whenever something went wrong in auto.c, but automode can be kept active | |
| void | auto_success (char *description) |
| called whenever something succeded in auto.c | |
| void | auto_set_timeout (double timeout) |
| sets the timeout value for automated operations, and resets the timeout clock | |
| void | auto_check_timeout () |
| checks the timeout clock for automated operations | |
| void | auto_set_flat_minmax_exposuretime (double min, double max) |
| sets the minimum and manximum exposuretime, that is accepted during automated flatfielding | |
| int | auto_check_exp_time (double time) |
| checks whether a proposed exposuretime fits between the minimum and maximum limits for automated flatfileding. | |
| void | auto_start_flat (int gain, int sequence, long counts, int n) |
| Starts the automated flatfielding mode. | |
| void | auto_start_focus () |
| Starts the automated focussing mode. | |
| void | auto_start_shutter_offset () |
| Starts the automated shutter offset calibration. | |
| void | auto_start_mask () |
| Starts the automated flatmask generation (deprected). | |
| void | auto_set_focus (double focus) |
| Moving the telescope focus to a requested position. | |
| double | auto_get_counts (double time, int gain) |
| Takes a test exposure and calculates the median of the test image. | |
| double | auto_get_fwhm (double time, int gain) |
| Takes a test exposure and calculates the median of the fwhms of the test image (uses sextractor). | |
| void | auto_do_flat () |
| Acquires one automated flatfield. | |
| void | auto_do_mask () |
| Acquires one automated mask exposure (deprected). | |
| void | auto_do_shutter_offset () |
| does the automated shutter calibration | |
| void | auto_do_focus () |
| does the automated focussing procedure | |
| void | auto_stop_thread () |
| stops the automated mode | |
Variables | |
| volatile double | auto_flat_min_exposuretime = 0.3 |
| volatile double | auto_flat_max_exposuretime = 30.0 |
| volatile double | auto_exptime = 0.3 |
| volatile int | auto_sequence |
| volatile int | auto_gain |
| volatile int | auto_counts |
| volatile int | auto_run_mode = 0 |
| volatile int | auto_flat_seq |
| volatile int | auto_focus_seq |
| volatile int | auto_first |
| volatile int | auto_flats_todo |
| volatile int | auto_flats_done |
| volatile int | auto_timeout |
| volatile double | auto_worst_fwhm = 5.0 |
| timeval | auto_start_time |
| image_statistics_struct | auto_image_statistics |
| volatile int | auto_image_statistics_done = 0 |
| char | auto_end_msg [1000] |
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.
|
|
called whenever a callibration procedure (in auto.c) has finished
|
|
|
checks whether a proposed exposuretime fits between the minimum and maximum limits for automated flatfileding.
|
|
|
checks the timeout clock for automated operations
|
|
|
Acquires one automated flatfield.
|
|
|
does the automated focussing procedure
|
|
|
Acquires one automated mask exposure (deprected).
|
|
|
does the automated shutter calibration
|
|
|
called whenever something went wrong in auto.c, but automode can be kept active
|
|
|
called whenever something went severly wrong in auto.c, and automode needs to be stopped
|
|
||||||||||||
|
Takes a test exposure and calculates the median of the test image.
|
|
||||||||||||
|
Takes a test exposure and calculates the median of the fwhms of the test image (uses sextractor).
|
|
|
called whenever the image statistics have changed. This function is called whenever the image statistics have changed. |
|
||||||||||||
|
sets the minimum and manximum exposuretime, that is accepted during automated flatfielding
|
|
|
Moving the telescope focus to a requested position.
|
|
|
sets the timeout value for automated operations, and resets the timeout clock
|
|
||||||||||||||||||||
|
Starts the automated flatfielding mode.
|
|
|
Starts the automated focussing mode.
|
|
|
Starts the automated flatmask generation (deprected).
|
|
|
Starts the automated shutter offset calibration.
|
|
|
stops the automated mode
|
|
|
called whenever something succeded in auto.c
|
|
|
the requested median of the image in counts in automated flatfiedling |
|
|
A string describing how and why the automated operation ended |
|
|
the exposuretime used for test exposures in automated flatfielding |
|
|
1 if the automated mode was just started, 0 otherwise |
|
|
the maximal exposuretime allowed for automated flatfielding |
|
|
the minimal exposuretime allowed for automated flatfielding |
|
|
the readout sequence used for test exposures in automated flatfielding |
|
|
the number of flatfields to allready acquired |
|
|
the number of flatfields to be acquired |
|
|
the readout sequence used in automated focussing |
|
|
the readout gain used in automated mode |
|
|
the image statistics of the image just acquired |
|
|
1 if the image statics have been calculated and are ready to be read, 0 otherwise |
|
|
the run mode as defined in auto.h |
|
|
the readout sequence used in automated mode |
|
|
the time when the automated mode was started |
|
|
the timeout value for automated operations in seconds |
|
|
the worst fwhm that is still accepted as a best fwhm found in automated focussing |
1.4.2