private Um6Driver _um6Driver; /** Driver of the sensors */ #endregion Fields #region Constructors /** * Construct the server object : * - hWind : window handle * - pBox : the picture box on which the image must be sent * - printOnBox : true if the server thread must set the picture in the picture box */ public Server(long hWind, PictureBox pBox, bool printOnPbox) { this._hWind = (int)hWind; this._hPbox = (int)pBox.Handle.ToInt64(); this._pBox = pBox; this._printOnPbox = printOnPbox; this._container = new ThreadSafeContainer<Bitmap>(); this._logger = Logger.instance(); this._controller = null; initCameraDriver(); initSensors(); initServos(); initService(); }
public SatService(ThreadSafeContainer<Bitmap> container) { initJpegEncoder(); _container = container; _bStabilizationChanged = false; _servoPos = new ushort[10]; _servoChanged = new bool[10]; for (int ii = 0; ii < 10; ii++) { _servoPos[ii] = 6000; _servoChanged[ii] = false; } _eulerAngles = new double[3]; }