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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3606|回復(fù): 0
收起左側(cè)

避障程序糾錯(cuò)

[復(fù)制鏈接]
ID:40285 發(fā)表于 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; //******************************************************** // 左轉(zhuǎn) //******************************************************** void TurnLeft_1() { LeftStop ; FRightMotor ; } //******************************************************** // 快速左轉(zhuǎn) //******************************************************** void TurnLeft_Fast() { BLeftMotor ; FRightMotor ; } //******************************************************** // 右轉(zhuǎn) //******************************************************** void TurnRight_1() { RightStop ; FLeftMotor ; } //******************************************************** // 快速右轉(zhuǎn) //******************************************************** void TurnRight_Fast() { BRightMotor ; FLeftMotor ; } //******************************************************** // 用倒退的方式進(jìn)行車頭右轉(zhuǎn) //******************************************************** void BTurnRight_1() { LeftStop ; BRightMotor ; } //******************************************************** // 用倒退的方式進(jìn)行車頭左轉(zhuǎn) //******************************************************** void BTurnLeft_1() { RightStop ; BLeftMotor ; } //******************************************************** // 前進(jìn) //******************************************************** 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() ; } 這個(gè)程序的編譯結(jié)果總是顯示 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 請各位幫忙修改一下……
回復(fù)

使用道具 舉報(bào)

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

本版積分規(guī)則

手機(jī)版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 中文一区 | 影音先锋久久 | 精国产品一区二区三区 | 91麻豆精品国产91久久久久久久久 | www.色53色.com| 97色在线视频 | 成人在线观看免费 | 欧美精品欧美精品系列 | 日韩精品一区二区三区视频播放 | 99热最新网址 | 国产伦精品一区二区三区照片91 | 黄视频欧美| 国产日韩欧美 | 一区二区三区在线电影 | 国产欧美在线 | 午夜欧美一区二区三区在线播放 | 精品国产一区二区三区av片 | 亚洲欧洲精品成人久久奇米网 | 中文字幕精品一区二区三区精品 | 中文字幕av第一页 | 蜜臀久久 | 欧美一区二区网站 | 天天爽网站 | 日韩视频在线观看一区二区 | 欧美综合在线观看 | 国产午夜精品久久久久 | 国产激情第一页 | 日韩成人精品一区二区三区 | 欧美成人免费电影 | 91福利网址 | 99久久久99久久国产片鸭王 | 日韩一区二区三区视频在线观看 | 国产成人精品在线 | 亚洲一区二区三区四区五区中文 | 欧美日高清视频 | 综合久久综合久久 | 午夜精品一区二区三区在线视频 | 天天躁日日躁狠狠躁白人 | 亚洲国产成人久久久 | 日韩欧美一区在线 | 九九国产|