仿生机器人内含代码、PCB、论文等资料


该文件是“六足仿生机器人”的全套资料,包含论文、PPT、PCB、代码、路由固件等大量资料
资源截图
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace WifiVideo
{
    public partial class Config : Form
    {
        public Config()
        {
            InitializeComponent();
        }
        public string FileName; //INI文件名
        //声明读写INI文件的API函数
        [DllImport(“kernel32“)]
        private static extern bool WritePrivateProfileString(string section string key string val string filePath);
        [DllImport(“kernel32“)]
        private static extern int GetPrivateProfileString(string section string key string def byte[] retVal int size string filePath);

        private void Config_Load(object sender EventArgs e)
        {
            GetIni();
        }

        private void button1_Click(object sender EventArgs e)
        {
            WriteIni(“VideoUrl““videourl“this.textBoxVideo.Text);
            WriteIni(“ControlUrl“ “controlUrl“ this.textControlURL.Text);
            WriteIni(“ControlPort“ “controlPort“ this.textBoxControlPort.Text);
            WriteIni(“ControlCommand“ “CMD_Forward“ this.txtForward.Text);
            WriteIni(“ControlCommand“ “CMD_Backward“ this.txtBackward.Text);
            WriteIni(“ControlCommand“ “CMD_TurnLeft“ this.txtLeft.Text);
            WriteIni(“ControlCommand“ “CMD_TurnRight“ this.txtRight.Text);
            WriteIni(“ControlCommand“ “CMD_Stop“ this.txtStop.Text);
            WriteIni(“ControlCommand“ “CMD_EngineUp“ this.txtEngineUp.Text);
            WriteIni(“ControlCommand“ “CMD_EngineDown“ this.txtEngineDown.Text);
            WriteIni(“ControlCommand“ “CMD_textLightsOn“ this.textLightsOn.Text);
            WriteIni(“ControlCommand“ “CMD_textLightsOff“ this.textLightsOff.Text);

            MessageBox.Show(“配置成功!请重启程序以使配置生效。“ “配置信息“ MessageBoxButtons.OK MessageBoxIcon.Information); 
            this.Close();
        }
        //写INI文件
        public void WriteIni(string Section string Ident string Value)
        {
            if (!WritePrivateProfileString(Section Ident Value FileName))
            {

                throw (new ApplicationException(“写入配置文件出错“));
            }
          
        }
        //读取INI文件指定
        public string ReadIni(string Section string Ident string Default)
        {
            Byte[] Buffer = new Byte[65535];
            int bufLen = GetPrivateProfileString(Section Ident Default Buffer Buffer.GetUpperBound(0) FileName);
            //必须设定0(系统默认的代码页)的编码方式,否则无法支持中文
            string s = Encoding.GetEncoding(0).GetString(Buffer);
            s = s.Substring(0 bufLen);
            return s.Trim();
        }
        private void GetIni()
        {
            FileName = Application.StartupPath + “\Config.ini“;
            this.textBoxVideo.Text = ReadIni(“VideoUrl“

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-14 17:20  六足仿生机器人
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOT
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobot
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotobj
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotobjx86
     目录           0  2014-03-20 21:55  六足仿生机器人WIFIROBOTWifRobotobjx86Debug
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotWifRobot
     文件         866  2011-09-28 22:12  六足仿生机器人WIFIROBOTWifRobotWifRobot.sln
     文件       27648  2012-05-24 07:35  六足仿生机器人WIFIROBOTWifRobotWifRobot.suo
     文件       54784  2013-08-05 15:24  六足仿生机器人WIFIROBOTWifRobotWifRobot.v11.suo
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotWifRobotin
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebug
     文件          86  2011-10-05 22:28  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugconfig.ini
     文件         303  2012-02-22 11:38  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugConfig.ini
     文件       11600  2011-09-28 22:04  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugWifiVideo.vshost.exe
     文件         490  2010-03-17 22:39  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugWifiVideo.vshost.exe.manifest
     文件      533504  2013-08-05 15:02  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugWifRobot.exe
     文件       46592  2013-08-05 15:02  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugWifRobot.pdb
     文件       22984  2013-08-05 15:03  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugWifRobot.vshost.exe
     文件         490  2012-06-06 02:06  六足仿生机器人WIFIROBOTWifRobotWifRobotinDebugWifRobot.vshost.exe.manifest
     目录           0  2014-03-20 21:55  六足仿生机器人WIFIROBOTWifRobotWifRobotinRelease
     文件        4353  2012-02-22 11:34  六足仿生机器人WIFIROBOTWifRobotWifRobotConfig.cs
     文件       17265  2012-02-22 11:34  六足仿生机器人WIFIROBOTWifRobotWifRobotConfig.Designer.cs
     文件        5817  2012-02-22 11:34  六足仿生机器人WIFIROBOTWifRobotWifRobotConfig.resx
     文件        8562  2012-02-22 11:40  六足仿生机器人WIFIROBOTWifRobotWifRobotForm1.cs
     文件       12185  2012-02-22 11:37  六足仿生机器人WIFIROBOTWifRobotWifRobotForm1.Designer.cs
     文件      108159  2012-02-22 11:37  六足仿生机器人WIFIROBOTWifRobotWifRobotForm1.resx
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotWifRobotobj
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotWifRobotobjx86
     目录           0  2018-06-23 16:31  六足仿生机器人WIFIROBOTWifRobotWifRobotobjx86Debug
     文件         219  2012-01-22 14:34  六足仿生机器人WIFIROBOTWifRobotWifRobotobjx86DebugConfig.ini
............此处省略317个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)