MissionPlanner.MAVLinkInterface.GetParam C# (CSharp) Method

GetParam() public method

public GetParam ( short index ) : float
index short
return float
        public float GetParam(short index)
        {
            return GetParam("", index);
        }

Same methods

MAVLinkInterface::GetParam ( byte sysid, byte compid, string name = "", short index = -1, bool requireresponce = true ) : float
MAVLinkInterface::GetParam ( string name ) : float
MAVLinkInterface::GetParam ( string name = "", short index = -1, bool requireresponce = true ) : float

Usage Example

Example #1
0
File: GCS.cs Project: kkouer/PcGcs
        public void doConnect(MAVLinkInterface comPort, string port, string baud)
        {
            bool skipconnectcheck = true;
            comPort.BaseStream = new MissionPlanner.Comms.SerialPort();

            comPort.BaseStream.PortName = port;
            try
            {
                comPort.BaseStream.BaudRate = int.Parse(baud);
            }
            catch { };

            // 记录tlog文件
            try
            {
                Directory.CreateDirectory("D://LogFiles");
                //Directory.CreateDirectory(MainV2.LogDir);
                comPort.logfile =
                    new BufferedStream(
                        File.Open(
                            "D://LogFiles" + Path.DirectorySeparatorChar +
                            DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") + ".tlog", FileMode.CreateNew,
                            FileAccess.ReadWrite, FileShare.None));

            }
            catch (Exception exp2)
            {
                log.Error(exp2);
                CustomMessageBox.Show(Strings.Failclog);
            } // soft fail


            comPort.Open(false, skipconnectcheck);

            // create a copy
            int[] list = comPort.sysidseen.ToArray();

            comPort.GetParam("MIS_TOTAL");
        }
All Usage Examples Of MissionPlanner.MAVLinkInterface::GetParam