public override void LoopContent()
        {
            ////雷达报警级别
            //List<int> levels = Const.RadarInfo.RadarList == null ? null : Const.RadarInfo.RadarList.Select(r => r.ThreatLevel).ToList();
            //Const.WrapperAlarm.ThreatLevels = levels;

            ////开始发送
            //if (++_counter >= _send_interval)
            //{
            //    _counter = 0;
            //}
            if (Const.IsGnssValid)
            {
                try
                {
                    double angle = Const.GnssInfo.YawAngle + 180;
                    angle = angle.Between(180, 360) ? angle - 360 : angle;
                    NetworkDisplayGateway.SendMachineMovements(Config.MachineName, Const.OpcDatasource.CoalOnBeltPlc, Const.GnssInfo.WalkingPosition, Const.GnssInfo.PitchAngle, angle, Const.StrategyDataSource.MaterialHeight);
                    _taskLogsBuffer.Add("已向3维展示服务器发送单机姿态数据");
                }
                catch (Exception) { }
            }
            //try { NetworkDisplayGateway.SendMachineWorkStatus(Config.MachineName, Const.OpcDatasource.WheelTurningBackwards, Const.OpcDatasource.BeltStatus, Const.OpcDatasource.GroundBeltStatus, Const.OpcDatasource.CoalOnBeltPlc); }
            try { NetworkDisplayGateway.SendMachineWorkStatus(Config.MachineName, Const.OpcDatasource.WheelTurningBackwards, Const.OpcDatasource.BeltStatus, Const.OpcDatasource.GroundBeltStatus, Const.IsCoalValid ? 1 : 0); }
            catch (Exception) { }
        }
 public override void Init()
 {
     NetworkDisplayGateway.Start(Config.DataDisplayServerIp, Config.DataDisplayServerPort, Config.UserNameDisplay, Config.PasswordDisplay);
     //NetworkDisplayGateway.Start(Config.DataDisplayServerIp, Config.DataDisplayServerPort, Config.UserName, Config.Password);
     Const.WriteConsoleLog(string.Format("已向展示服务器{0}发起连接请求...", NetworkDisplayGateway.ServerIp));
 }