Inheritance: System.Windows.Forms.Form
Example #1
0
        //Camera constructor
        public Camera()
        {
#if Telescope
            // the rates constructors are only needed for the telescope class
            // This can be removed for other driver types
            _axisRates    = new AxisRates[3];
            _axisRates[0] = new AxisRates(TelescopeAxes.axisPrimary);
            _axisRates[1] = new AxisRates(TelescopeAxes.axisSecondary);
            _axisRates[2] = new AxisRates(TelescopeAxes.axisTertiary);
#endif
            //Camera initial state
            m_BinX                  = 1;
            m_BinY                  = 1;
            m_CameraState           = 0;
            m_ImageReady            = false;
            m_NumX                  = CameraXSizeConst;
            m_NumY                  = CameraYSizeConst;
            m_StartX                = 0;
            m_StartY                = 0;
            m_LastExposureDuration  = ExposureMin;
            m_LastExposureStartTime = "2012-12-21T12:00:00";
            //Camera gains initial state
            m_Gains = new ArrayList();
            m_Gains.Clear();
            short i;
            for (i = 0; i < 64; i++)
            {
                m_Gains.Add(i.ToString());
            }
            //Readout modes initial state
            m_ReadoutMode  = 0;
            m_ReadoutModes = new ArrayList();
            m_ReadoutModes.Clear();
            m_ReadoutModes.Add("standart");
            //Special camera properties initials values
            m_Gain   = 34;
            m_Offset = -7;

            settings_form = new cam_settings();
        }
Example #2
0
        //Camera constructor
        public Camera()
        {
#if Telescope
            // the rates constructors are only needed for the telescope class
            // This can be removed for other driver types
            _axisRates = new AxisRates[3];
            _axisRates[0] = new AxisRates(TelescopeAxes.axisPrimary);
            _axisRates[1] = new AxisRates(TelescopeAxes.axisSecondary);
            _axisRates[2] = new AxisRates(TelescopeAxes.axisTertiary);
#endif
            //Camera initial state
            m_BinX = 1;
            m_BinY = 1;
            m_CameraState = 0;
            m_ImageReady = false;
            m_NumX = CameraXSizeConst;
            m_NumY = CameraYSizeConst;
            m_StartX = 0;
            m_StartY = 0;
            m_LastExposureDuration = ExposureMin;
            m_LastExposureStartTime = "2012-12-21T12:00:00";
            //Camera gains initial state
            m_Gains = new ArrayList();
            m_Gains.Clear();
            short i;
            for (i = 0; i < 64; i++)
                m_Gains.Add(i.ToString());
            //Readout modes initial state
            m_ReadoutMode = 0;
            m_ReadoutModes = new ArrayList();
            m_ReadoutModes.Clear();
            m_ReadoutModes.Add("standart");
            //Special camera properties initials values
            m_Gain = 34;
            m_Offset = -7;

            settings_form = new cam_settings();
        }