コード例 #1
0
 public override void Close()
 {
     if (m_pSocket == null)
     {
         return;
     }
     IoThread.Instance().DelConnectSocket(m_pSocket);
 }
コード例 #2
0
    public override void Close()
    {
        if (m_pSocket == null)
        {
            return;
        }
#if UNITY_WEBGL && !UNITY_EDITOR
        m_pSocket.Disconnect();
#else
        IoThread.Instance().DelConnectSocket(m_pSocket);
#endif
    }
コード例 #3
0
ファイル: AHRS.cs プロジェクト: chopshop-166/WPILib
        /***********************************************************/
        /* Internal Implementation                                  */
        /***********************************************************/

        private void CommonInit(byte updateRateHz)
        {
            this.m_boardCapabilities = new BoardCapabilities(this);
            this.m_ioCompleteSink = new IoCompleteNotification(this);
            this.m_ioThread = new IoThread(this);
            this.m_updateRateHz = updateRateHz;
            m_integrator = new InertialDataIntegrator();
            m_yawOffsetTracker = new OffsetTracker(YawHistoryLength);
            m_yawAngleTracker = new ContinuousAngleTracker();
        }