Exemplo n.º 1
0
 //*********************************************************
 //*********************************************************
 // Constructor
 public hud(frmTerminal term)
 {
     InitializeComponent();
     m_term = term;
     m_util = new Util();
    
 }
Exemplo n.º 2
0
        public void GetMeterStatus(Int16 meterUpdate)
        {
            frmTerminal frmTerminal = new frmTerminal();

            alarmIndicated           = (meterStatus & 0x01);
            xGyro_Fog                = (meterStatus & 0x02) >> 1;
            lGyro_Fog                = (meterStatus & 0x04) >> 2;
            meterHeater              = (meterStatus & 0x08) >> 4;
            dumpIndigator            = (meterStatus & 0x10) >> 8;
            incorrectCommandReceived = (meterStatus & 0x20) >> 10;
            serialPortTimeout        = (meterStatus & 0x40) >> 20;
            receiveDataCheckSumError = (meterStatus & 0x80) >> 40;
            meterStatus              = meterUpdate;
            frmTerminal.meter_status = meterUpdate;
            if (false)
            {
                Console.WriteLine("alarmIndicated " + alarmIndicated);
                Console.WriteLine("Cross FOG " + xGyro_Fog);
                Console.WriteLine("Long FOG " + lGyro_Fog);
                Console.WriteLine("Meter Heater " + meterHeater);
                Console.WriteLine("Dump indicator " + dumpIndigator);
                Console.WriteLine("Bad command " + incorrectCommandReceived);
                Console.WriteLine("Serial port error " + serialPortTimeout);
                Console.WriteLine("Bad checksum " + receiveDataCheckSumError);
            }
        }
Exemplo n.º 3
0
        public ManualControl(frmTerminal parentTerminal)
        {
            this.KeyPreview      = true;
            parentSerialTerminal = parentTerminal;
            InitializeComponent();

            this.KeyDown += new KeyEventHandler(keySend);
            this.KeyUp   += new KeyEventHandler(keyStop);
        }
Exemplo n.º 4
0
 public DebugPanel(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Exemplo n.º 5
0
 public DebugPanel(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Exemplo n.º 6
0
 //*********************************************************
 //*********************************************************
 // Constructor
 public hud(frmTerminal term)
 {
     InitializeComponent();
     m_term = term;
     m_util = new Util();
 }
Exemplo n.º 7
0
 public GUIform(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Exemplo n.º 8
0
 public DemoWinow(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Exemplo n.º 9
0
 public DemoWinow(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }
Exemplo n.º 10
0
 public GUIform(frmTerminal parentTerminal)
 {
     parentSerialTerminal = parentTerminal;
     InitializeComponent();
 }