MissionPlanner.MAVState.MAVState C# (CSharp) Method

MAVState() public method

public MAVState ( MAVLinkInterface mavLinkInterface, byte sysid, byte compid ) : System
mavLinkInterface MAVLinkInterface
sysid byte
compid byte
return System
        public MAVState(MAVLinkInterface mavLinkInterface, byte sysid, byte compid)
        {
            this.parent = mavLinkInterface;
            this.sysid = sysid;
            this.compid = compid;
            this.packetspersecond = new double[0x100];
            this.packetspersecondbuild = new DateTime[0x100];
            this.lastvalidpacket = DateTime.MinValue;
            sendlinkid = (byte)(new Random().Next(256));
            signing = false;
            this.param = new MAVLinkParamList();
            this.packets = new Dictionary<uint, MAVLinkMessage>();
            this.aptype = 0;
            this.apname = 0;
            this.recvpacketcount = 0;
            this.VersionString = "";
            this.SoftwareVersions = "";
            this.SerialString = "";
            this.FrameString = "";
            if(sysid != 255 && !(compid == 0 && sysid == 0) && !parent.logreadmode)
                this.Proximity = new Proximity(this);

            camerapoints.Clear();

            GMapMarkerOverlapCount.Clear();

            this.packetslost = 0f;
            this.packetsnotlost = 0f;
            this.packetlosttimer = DateTime.MinValue;
            cs.parent = this;
        }