Beispiel #1
0
 public void Disconnect()
 {
     if (connected)
         _serial.AllConfigCommunicationReceived += new SerialCommunication.ReceiveAllConfigCommunicationFrame(_serial_AllConfigCommunicationReceived);
     _serial = null;
     connected = false;
 }
Beispiel #2
0
        public GraphForm(SerialCommunication serial)
        {
            _serial = serial;

            InitializeComponent();

            graph1.SetSerial(serial);
        }
 public void Connect(SerialCommunication serial)
 {
     this.serial = serial;
     serial.RcInputCommunicationReceived += new SerialCommunication.ReceiveRcInputCommunicationFrame(serial_RcInputCommunicationReceived);
     serial.AllConfigCommunicationReceived += new SerialCommunication.ReceiveAllConfigCommunicationFrame(serial_AllConfigCommunicationReceived);
     serial.AttitudeCommunicationReceived += new SerialCommunication.ReceiveAttitudeCommunicationFrame(serial_AttitudeCommunicationReceived);
     serial.ControlInfoCommunicationReceived += new SerialCommunication.ReceiveControlInfoCommunicationFrame(serial_ControlInfoCommunicationReceived);
 }
Beispiel #4
0
 public void SetSerial(SerialCommunication serial)
 {
     _serial = serial;
     _serial.PressureTempCommunicationReceived += new SerialCommunication.ReceivePressureTempCommunicationFrame(_serial_PressureTempCommunicationReceived);
     _serial.GyroAccRawCommunicationReceived += new SerialCommunication.ReceiveGyroAccRawCommunicationFrame(_serial_GyroAccRawCommunicationReceived);
     _serial.GyroAccProcCommunicationReceived += new SerialCommunication.ReceiveGyroAccProcCommunicationFrame(_serial_GyroAccProcCommunicationReceived);
     _serial.AttitudeCommunicationReceived += new SerialCommunication.ReceiveAttitudeCommunicationFrame(_serial_AttitudeCommunicationReceived);
 }
Beispiel #5
0
 public KmlListener(SerialCommunication serial)
 {
     _smartThreadPool = new SmartThreadPool();
     serial_comm = serial;
     serial.AttitudeCommunicationReceived += new SerialCommunication.ReceiveAttitudeCommunicationFrame(serial_AttitudeCommunicationReceived);
     serial.GpsBasicCommunicationReceived += new SerialCommunication.ReceiveGpsBasicCommunicationFrame(serial_GpsBasicCommunicationReceived);
     serial.PressureTempCommunicationReceived += new SerialCommunication.ReceivePressureTempCommunicationFrame(serial_PressureTempCommunicationReceived);
     serial.ControlInfoCommunicationReceived += new SerialCommunication.ReceiveControlInfoCommunicationFrame(serial_ControlInfoCommunicationReceived);
 }
 public ConfigurationControl()
 {
     InitializeComponent();
     _serial = null;
     _btn_burn.Enabled = false;
     _btn_default.Enabled = false;
     _btn_read.Enabled = false;
     _btn_reload.Enabled = false;
     _btn_write.Enabled = false;
 }
Beispiel #7
0
        public void Connect(SerialCommunication serial)
        {
            this.serial = serial;
            _btn_read.Enabled = true;
            _btn_download.Enabled = true;
            _btn_format.Enabled = true;


            serial.DatalogTableCommunicationReceived += new SerialCommunication.ReceiveDatalogTableCommunicationFrame(ReceiveDatalogTable);
            serial.DatalogLineCommunicationReceived += new SerialCommunication.ReceiveDatalogLineCommunicationFrame(ReceiveDatalogLine);
        }
Beispiel #8
0
 public void Connect(SerialCommunication serial)
 {
     _serial = serial;
     _btn_ge_server.Enabled = true;
     //_graphControl.SetSerial(serial);
     _serial.AttitudeCommunicationReceived += new SerialCommunication.ReceiveAttitudeCommunicationFrame(serial_AttitudeCommunicationReceived);
     _serial.PressureTempCommunicationReceived += new SerialCommunication.ReceivePressureTempCommunicationFrame(serial_PressureTempCommunicationReceived);
     _serial.GpsBasicCommunicationReceived += new SerialCommunication.ReceiveGpsBasicCommunicationFrame(serial_GpsBasicCommunicationReceived);
     _serial.ControlInfoCommunicationReceived += new SerialCommunication.ReceiveControlInfoCommunicationFrame(serial_ControlInfoCommunicationReceived);
     _graphControl.SetSerial(_serial);
 }
Beispiel #9
0
 public GluonConfig(SerialCommunication serial)
     : this()
 {
     if (serial is SerialCommunication_CSV)
     {
         this._serial = (SerialCommunication_CSV)serial;
         if (_serial != null && _serial.IsOpen)
             _btn_connect.Checked = true;
         ConnectPanels();
     }
 }
        public void Disconnect()
        {
            timer1.Stop();
            _serial = null;
            _btn_burn.Enabled = false;
            _btn_default.Enabled = false;
            _btn_read.Enabled = false;
            _btn_reload.Enabled = false;
            _btn_write.Enabled = false;

            configurationTabpage1.Disconnect();
        }
 public void Connect(SerialCommunication serial)
 {
     _serial = serial;
     _btn_burn.Enabled = true;
     _btn_default.Enabled = true;
     _btn_read.Enabled = true;
     _btn_reload.Enabled = true;
     _btn_write.Enabled = true;
     
     configurationTabpage1.Connect(serial);
     timer1.Start();
 }
        public void Connect(SerialCommunication serial)
        {
            if (serial != null)
            {
                this.serial = serial;
                serial.NavigationInstructionCommunicationReceived += new SerialCommunication.ReceiveNavigationInstructionCommunicationFrame(_serial_NavigationInstructionCommunicationReceived);

                _btn_burn.Enabled = true;
                _btn_read.Enabled = true;
                _btn_reload.Enabled = true;
                _btn_save.Enabled = true;
                _btn_format.Enabled = true;
            }
        }
 public void Connect(SerialCommunication serial)
 {
     _serial = serial;
     if (connected)
         Disconnect();
     _serial.GyroAccRawCommunicationReceived += new SerialCommunication_CSV.ReceiveGyroAccRawCommunicationFrame(ReceiveGyroAccRaw);
     _serial.GyroAccProcCommunicationReceived += new SerialCommunication_CSV.ReceiveGyroAccProcCommunicationFrame(ReceiveGyroAccProc);
     _serial.PressureTempCommunicationReceived += new SerialCommunication_CSV.ReceivePressureTempCommunicationFrame(ReceivePressureTemp);
     _serial.AllConfigCommunicationReceived += new SerialCommunication_CSV.ReceiveAllConfigCommunicationFrame(ReceiveAllConfig);
     _serial.RcInputCommunicationReceived += new SerialCommunication_CSV.ReceiveRcInputCommunicationFrame(ReceiveRcInput);
     _serial.GpsBasicCommunicationReceived += new SerialCommunication.ReceiveGpsBasicCommunicationFrame(ReceiveGpsBasic);
     _serial.AttitudeCommunicationReceived += new SerialCommunication.ReceiveAttitudeCommunicationFrame(_serial_AttitudeCommunicationReceived);
     connected = true;
 }
Beispiel #14
0
 public Imu3D(SerialCommunication serial)
 {
     this.serial = serial;
     serial.AttitudeCommunicationReceived += new SerialCommunication.ReceiveAttitudeCommunicationFrame(serial_AttitudeCommunicationReceived);
 }
Beispiel #15
0
 public static void Run(SerialCommunication serial)
 {
     // Entry Point
     Imu3D n = new Imu3D(serial);
     App.Run(n);												// Run Our NeHe Lesson As A Windows Forms Application
 }
 public ReadConfiguration(SerialCommunication serial)
 {
     InitializeComponent();
     this.serial = serial;
 }
 /*!
  *    Use serial as SerialCommunication and register our methods at the events
  */
 public void Connect(SerialCommunication serial)
 {
     _serial = serial;
     _serial.GyroAccRawCommunicationReceived += new SerialCommunication_CSV.ReceiveGyroAccRawCommunicationFrame(ReceiveGyroAccRaw);
     _serial.GyroAccProcCommunicationReceived += new SerialCommunication_CSV.ReceiveGyroAccProcCommunicationFrame(ReceiveGyroAccProc);
     _serial.PressureTempCommunicationReceived += new SerialCommunication_CSV.ReceivePressureTempCommunicationFrame(ReceivePressureTemp);
     _serial.AllConfigCommunicationReceived += new SerialCommunication_CSV.ReceiveAllConfigCommunicationFrame(ReceiveAllConfig);
     _serial.RcInputCommunicationReceived += new SerialCommunication_CSV.ReceiveRcInputCommunicationFrame(ReceiveRcInput);
     _serial.GpsBasicCommunicationReceived += new SerialCommunication.ReceiveGpsBasicCommunicationFrame(ReceiveGpsBasic);
     _serial.DatalogTableCommunicationReceived += new SerialCommunication.ReceiveDatalogTableCommunicationFrame(ReceiveDatalogTable);
     _serial.DatalogLineCommunicationReceived += new SerialCommunication.ReceiveDatalogLineCommunicationFrame(ReceiveDatalogLine);
 }
Beispiel #18
0
 public void Connect(SerialCommunication serial)
 {
     _serial = serial;
     _serial.AllConfigCommunicationReceived += new SerialCommunication.ReceiveAllConfigCommunicationFrame(_serial_AllConfigCommunicationReceived);
     connected = true;
 }
Beispiel #19
0
 public OsdConfig(SerialCommunication serial)
     : this()
 {
     Connect(serial);
 }