26 #include "defaultdevice.h"
27 #include "indiguiderinterface.h"
29 extern const char *IMAGE_SETTINGS_TAB;
30 extern const char *IMAGE_INFO_TAB;
31 extern const char *GUIDE_HEAD_TAB;
32 extern const char *GUIDE_CONTROL_TAB;
41 typedef enum { LIGHT_FRAME=0, BIAS_FRAME, DARK_FRAME, FLAT_FRAME } CCD_FRAME;
42 typedef enum { FRAME_X, FRAME_Y, FRAME_W, FRAME_H} CCD_FRAME_INDEX;
43 typedef enum { BIN_W, BIN_H} CCD_BIN_INDEX;
44 typedef enum { CCD_MAX_X, CCD_MAX_Y, CCD_PIXEL_SIZE, CCD_PIXEL_SIZE_X, CCD_PIXEL_SIZE_Y, CCD_BITSPERPIXEL} CCD_INFO_INDEX;
46 inline int getXRes() {
return XRes; }
47 inline int getYRes() {
return YRes; }
48 inline int getSubX() {
return SubX; }
49 inline int getSubY() {
return SubY; }
50 inline int getSubW() {
return SubW; }
51 inline int getSubH() {
return SubH; }
52 inline int getBinX() {
return BinX; }
53 inline int getBinY() {
return BinY; }
54 inline float getPixelSizeX() {
return PixelSizex; }
55 inline float getPixelSizeY() {
return PixelSizey; }
56 inline int getBPP() {
return BPP; }
57 inline int getFrameBufferSize() {
return RawFrameSize; }
58 inline double getExposureLeft() {
return ImageExposureN[0].value; }
59 inline double getExposureDuration() {
return exposureDuration; }
60 inline char *getFrameBuffer() {
return RawFrame; }
61 inline bool isCompressed() {
return SendCompressed; }
62 inline bool isInterlaced() {
return Interlaced; }
63 inline CCD_FRAME getFrameType() {
return FrameType; }
64 const char *getExposureStartTime();
66 void setResolutoin(
int x,
int y);
67 void setFrame(
int subx,
int suby,
int subw,
int subh);
68 void setBin(
int hor,
int ver);
69 void setPixelSize(
float x,
float y);
70 void setCompressed (
bool cmp);
71 void setInterlaced(
bool intr);
72 void setFrameBufferSize(
int nbuf);
74 int setFrameType(CCD_FRAME);
75 void setExposureDuration(
double duration);
76 void setExposureLeft(
double duration);
77 void setExposureFailed();
97 double exposureDuration;
98 timeval startExposureTime;
142 virtual bool initProperties();
143 virtual bool updateProperties();
144 virtual void ISGetProperties (
const char *dev);
145 virtual bool ISNewNumber (
const char *dev,
const char *name,
double values[],
char *names[],
int n);
146 virtual bool ISNewSwitch (
const char *dev,
const char *name,
ISState *states,
char *names[],
int n);
147 virtual bool ISNewText (
const char *dev,
const char *name,
char *texts[],
char *names[],
int n);
148 virtual bool ISSnoopDevice (XMLEle *root);
217 virtual void SetCCDParams(
int x,
int y,
int bpp,
float xf,
float yf);
279 void fits_update_key_s(fitsfile* fptr,
int type, std::string name,
void* p, std::string explanation,
int* status);
281 virtual bool saveConfigItems(FILE *fp);
297 IText ActiveDeviceT[2];
300 void getMinMax(
double *min,
double *max, CCDChip *targetChip);