Beispiel #1
0
        public bool SetCoolerTemp(int temp)
        {
            if (!systemInitialized)
            {
                PostError("ERROR: Attempted to set Camera temperature; Camera Not Initialized");
                return(false);
            }

            uint   ec;
            bool   success;
            string errMsg = "";

            ec      = MyCamera.SetTemperature(temp);
            success = CheckCameraResult(ec, ref errMsg);
            if (success)
            {
                PostMessage("Camera Cooler Temperature Set to " + temp.ToString());
            }
            else
            {
                PostError("Camera Cooler: " + errMsg);
                return(false);
            }

            return(true);
        }