Exemplo n.º 1
0
    private void Start()
    {
        // 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200
        SerialPortSettings settings = SerialPortSettings.Default;

        settings.BaudRate  = m_BaudRate;
        settings.LoopDelay = 50;

        //SonarSerialReceiver.OnUpdate += UpdateDataRevolving;
        SonarSerialReceiver.OnUpdate += UpdateDataOscillating;
        SonarSerialReceiver.Begin(m_COMPortName, settings);
    }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     SonarSerialReceiver.End();
 }