public cSSP4Base() { // Setup the datamembers mbOnline = false; mbScanning = false; mstrSaveFile = ""; mdIntegrationTime = mdIntegrationTimeMin; mdTemperature = (double)miTemperatureMax; miTemperatureSetting = -25; // Default temperature for the SSP-4 upon start is -25 C. miGain = miarrGainValues[2]; // By default the gain is at 1 (2nd item in array) mdTemperature = 0.0; mstrCommPort = ""; mbTemperatureRequestSent = false; mstrTargetName = ""; mstrFilter = ""; mstrTelescopeName = ""; mstrObserverName = ""; mstrConditions = ""; mstrScanStart = ""; mObjectRole = ObjectRoles.Calibrator; // Setup the communcation object. mcommCommunication = new cCommunication(); mCommandQueue = mcommCommunication.CommandQueue; mReplyQueue = mcommCommunication.ReplyQueue; }
public cCommunication() { // Init the queues mCommandQueue = new cPriorityQueue(); mReplyQueue = new cPriorityQueue(); // TODO: Aquire these variables from the SSP4 class. // Init defaults: mstrCommPort = ""; miBaudRate = 2400; miDataBits = 8; mparParity = System.IO.Ports.Parity.None; mstpBits = System.IO.Ports.StopBits.One; miCharInputBufferSize = 7; miTimeout = 1000; }