久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3686|回復: 0
打印 上一主題 下一主題
收起左側

避障程序糾錯

[復制鏈接]
跳轉到指定樓層
樓主
ID:40285 發表于 2012-5-15 16:59 | 只看該作者 回帖獎勵 |正序瀏覽 |閱讀模式
#include #define FLeftMotor {P0^2=1; P0^3=0;} #define BLeftMotor {P0^2=0; P0^3=1;} #define FRightMotor {P0^5=1; P0^4=0;} #define BRightMotor {P0^5=0; P0^4=1;} #define LeftStop {P0^2=0; P0^3=0;} #define RightStop {P0^4=0; P0^5=0;} #define CarStop {P0^2=0; P0^3=0; P0^4=0; P0^5=0;} sbit RightSenser=P0^0; sbit LeftSenser=P0^1; //******************************************************** // 左轉 //******************************************************** void TurnLeft_1() { LeftStop ; FRightMotor ; } //******************************************************** // 快速左轉 //******************************************************** void TurnLeft_Fast() { BLeftMotor ; FRightMotor ; } //******************************************************** // 右轉 //******************************************************** void TurnRight_1() { RightStop ; FLeftMotor ; } //******************************************************** // 快速右轉 //******************************************************** void TurnRight_Fast() { BRightMotor ; FLeftMotor ; } //******************************************************** // 用倒退的方式進行車頭右轉 //******************************************************** void BTurnRight_1() { LeftStop ; BRightMotor ; } //******************************************************** // 用倒退的方式進行車頭左轉 //******************************************************** void BTurnLeft_1() { RightStop ; BLeftMotor ; } //******************************************************** // 前進 //******************************************************** void FCar() { FLeftMotor ; FRightMotor ; } //******************************************************** // 后退 //******************************************************** void BCar() { BLeftMotor ; BRightMotor ; } //******************************************************** // 壁障程序 //******************************************************** void Obstacle_Avoid(void) { if(RightSenser && LeftSenser) { FCar() ; } if((!RightSenser) && LeftSenser) { BTurnLeft_1() ; } if(RightSenser && (!LeftSenser)) { BTurnRight_1() ; } 這個程序的編譯結果總是顯示 Build target 'Target 1' assembling STARTUP.A51... compiling bizhang.c... BIZHANG.C(25): error C141: syntax error near '=' BIZHANG.C(25): error C141: syntax error near '=' BIZHANG.C(26): error C141: syntax error near '=' BIZHANG.C(26): error C141: syntax error near '=' BIZHANG.C(37): error C141: syntax error near '=' BIZHANG.C(37): error C141: syntax error near '=' BIZHANG.C(38): error C141: syntax error near '=' BIZHANG.C(38): error C141: syntax error near '=' BIZHANG.C(48): error C141: syntax error near '=' BIZHANG.C(48): error C141: syntax error near '=' BIZHANG.C(49): error C141: syntax error near '=' BIZHANG.C(49): error C141: syntax error near '=' BIZHANG.C(59): error C141: syntax error near '=' BIZHANG.C(59): error C141: syntax error near '=' BIZHANG.C(60): error C141: syntax error near '=' BIZHANG.C(60): error C141: syntax error near '=' BIZHANG.C(70): error C141: syntax error near '=' BIZHANG.C(70): error C141: syntax error near '=' BIZHANG.C(71): error C141: syntax error near '=' BIZHANG.C(71): error C141: syntax error near '=' BIZHANG.C(80): error C141: syntax error near '=' BIZHANG.C(80): error C141: syntax error near '=' BIZHANG.C(81): error C141: syntax error near '=' BIZHANG.C(81): error C141: syntax error near '=' BIZHANG.C(92): error C141: syntax error near '=' BIZHANG.C(92): error C141: syntax error near '=' BIZHANG.C(93): error C141: syntax error near '=' BIZHANG.C(93): error C141: syntax error near '=' BIZHANG.C(103): error C141: syntax error near '=' BIZHANG.C(103): error C141: syntax error near '=' BIZHANG.C(104): error C141: syntax error near '=' BIZHANG.C(104): error C141: syntax error near '=' Target not created 請各位幫忙修改一下……
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: www.欧美.com | 可以免费观看的av | 亚洲97 | 国产激情一区二区三区 | 少妇无套高潮一二三区 | 自拍偷拍第一页 | 视频一区二区国产 | 久久精品a级毛片 | 亚洲国产精品一区二区三区 | 天堂一区 | 男人的天堂亚洲 | 成人激情视频在线 | 国产精品一区一区三区 | 在线免费看毛片 | 国产伦精品一区二区三区高清 | 国产精品一区二区久久 | 国产乡下妇女做爰 | 国内自拍真实伦在线观看 | 午夜免费观看体验区 | 久久久久久久久久久高潮一区二区 | 精品欧美黑人一区二区三区 | 日韩三级| 国产第一亚洲 | 日韩成人一区 | 夜夜爽99久久国产综合精品女不卡 | 网色| 成人在线视频网 | 成人日韩 | 在线观看亚洲专区 | 91综合网 | 亚洲免费视频播放 | 久久亚洲综合 | 99成人 | 国产99视频精品免费播放照片 | 视频一二区 | 亚洲日韩第一页 | 在线观看成人免费视频 | 日本韩国电影免费观看 | 国产一区二区在线免费观看 | 精品久久久久久亚洲精品 | 黄色大片在线 |