- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
灭火机器人参考程序1(Fire extinguisher reference program 1)
灭火机器人参考程序1(Fire extinguisher reference program 1)
Fire extinguisher reference program 1.txt likes me. This is revolutionary need, okay?! You cant fold your clothes while you stay! Ill fold it later! I must give you happiness, who do not want to stop. ***************************/
/**wanghm@ * * wanghm35@163.com *********/
************************************/ / * *
***********************************************/ / * *
#include ASMF09LIB.h / * * / please do not delete the file.
Int mic_1=0;
Int gi_1=0;
Int gi_2=0;
Int gi_3=0;
Int gi_4=0;
Int gi_5=0;
Int gi_6=0;
Int gi_7=0;
Int gi_8=0;
Int gi_9=0;
Int gi_10=0;
Int gi_15=0; / * which room fire sign: No. four of 4, three, 3, two, 2, 1 1*/
Int gi_15_4=1023, gi_15_3=1023, gi_15_2=1023, gi_15_1=1023; / * * / value of each door flame
Int ma_1=0; int ma_2=0; int ma_3=0; int ma_4=0; int ma_5=0; int ma_6=0; int ma_7=0;; int ma_8=0; int ma_9=0;
Int ma_10=0;
Int micc=0;
Int Cutfire=0;
Float gf_1=0.0;
Int i=0;
Int, aa14, aa13, aa12;
Void DO (int, CHANNEL, int, STATE)
{CHANNEL=CHANNEL;
SetDO (1, STATE);
}
Void LeftWay_B (B*/) / * along the left wall
{
Ma_4 = AI (3);
Ma_5 = AI (4);
If ((ma_4 gi_9) (ma_5 ma_10))
{
SetMotor (0x1111, (int) (-100*gf_1), (int) (-100*gf_1), 0,0);
}
Else
{
If ((ma_4 gi_9) (ma_5 ma_10))
{
If (ma_5 450)
{
SetMotor (0x1111, (int) (-28*gf_1), (int) (28*gf_1), 0,0);
}
Else
{
SetMotor (0x1111, (int) (-80*gf_1), (int) (10*gf_1), 0,0);
}
}
Else
{
SetMotor (0x1111, (int) (-28*gf_1), (int) (-100*gf_1), 0,0);
}
}
//wait (0.001000);
}
Void (LeftWay_low) / * * /: slow along the left wall
{
Ma_1 = AI (0);
Ma_2 = AI (1);
If ((ma_1 gi_9) (ma_2 ma_10))
{
SetMotor (0x1111, (int) (75*gf_1), (int) (75*gf_1), 0,0);
}
Else
{
If ((ma_1 gi_9) (ma_2 ma_10))
{
If (ma_2 350)
{
SetMotor (0x1111, (int) (-28*gf_1), (int) (28*gf_1), 0,0);
}
Else
{
SetMotor (0x1111, (int) (-30*gf_1), (int) (80*gf_1), 0,0);
}
}
Else
{
SetMotor (0x1111, (int) (100*gf_1), (int) (33*gf_1), 0,0);
}
}
//wait (0.001000);
}
Void (LeftWay) / *
您可能关注的文档
- 教师资格考试小学教育知识与能力章节归纳(1.6)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (1.6)).doc
- 教师资格考试小学教育知识与能力章节归纳(2.5)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (2.5)).doc
- 教师资格考试小学教育知识与能力章节归纳(2.4)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (2.4)).doc
- 教师资格考试小学教育知识与能力章节归纳(1.3)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (1.3)).doc
- 教师资格考试小学教育知识与能力章节归纳(3.6)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (3.6)).doc
- 教师资格考试小学教育知识与能力章节归纳(6.4)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (6.4)).doc
- 教师资格考试小学教育知识与能力章节归纳(2.3)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (2.3)).doc
- 教师资格考试小学教育知识与能力章节归纳(6.3)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (6.3)).doc
- 教师资格考试小学教育知识与能力章节归纳(5.3)(Teacher qualification examination, elementary school education, knowledge and ability chapter induction (5.3)).doc
- 教您如何从外观上分辨翡翠的优劣(Teach you how to distinguish the quality of jadeite from its appearance).doc
- 灯光的认识(Lighting awareness).doc
- 灰原哀出现集数(Haibara Ai occurrence set).doc
- 灭火组织指挥(Fire organization command).doc
- 灰常搞笑(Grey is always funny).doc
- 灰土挤密桩在湿陷性黄土地基处理中的应用(Application of lime soil compaction pile in collapsible loess foundation treatment).doc
- 灰色聚类在企业经营业绩评价中的应用_以房地产开发业为例(The application of _ grey clustering in the evaluation of business performance in the real estate industry for example).doc
- 灵芝(Ganoderma lucidum).doc
- 炒股必读(Stocks must read).doc
- 炒股意想不到的MACD精华(Stocks unexpected MACD essence).doc
- 炒股必看(Stocks must see).doc
最近下载
- 12J502-2内装修-室内吊顶.pdf VIP
- 全球及中国白蚁防治服务行业市场发展分析及前景趋势与投资发展研究报告2025-2028版.docx
- 2025年党员干部应知应会理论知识题库判断题测试卷附答案.docx VIP
- 医院检验科培训课件:《临床血液与体液检验基本技术标准》的解读(血液部分).pptx
- 2024年山西临汾尧都区社区工作者招聘真题.docx VIP
- 苯酚的理化性质及危险特性表.doc VIP
- 颈椎间盘突出护理.pptx VIP
- 线性代数英文课件:ch5-4(not necessary).ppt VIP
- 《SJT11223-2000-铜包铝线》.pdf VIP
- 民乐介绍课件.pptx VIP
文档评论(0)