#ifndef MYSTRUCT_H
#define MYSTRUCT_H

struct CAMERA
{
    bool canUseSDK;
    bool isConnected;
    char camID[32];

    double exptime;
//    double lastexptime;
    double gain;
//    int lastgain;
    double speed;
//    int lastspeed;
    double usbtraffic;
//    int lastusbtraffic;
    unsigned int bitsmode;
    unsigned int xbin;
    unsigned int ybin;
    unsigned int streammode;

    unsigned int startX;
    unsigned int startY;
    unsigned int NumX;
    unsigned int NumY;
    unsigned int bpp;
    unsigned int channels;
    unsigned char rawArray[3686400];

    int t_start, t_end, fps_1, fps_2;
};

struct MASKSTARDATA
{
    double angleABP;
    double angleBAP;
    double angleDBP;
    double poleX;
    double poleY;
    double starBX;
    double starBY;
    double starAX;
    double starAY;
    double starDX;
    double starDY;
};

extern struct CAMERA camparam;
extern struct MASKSTARDATA northStarsData;
extern struct MASKSTARDATA southStarsData;

#endif // MYSTRUCT_H
