登录
首页 » c » 四路寻迹

四路寻迹

于 2023-04-27 发布 文件大小:27.11 kB
0 111
下载积分: 2 下载次数: 1

代码说明:

#include #define CAR_SPEED_MAX 10 //最大速度 sfr P4=0xe8; sbit PWM_R=P1^7; //PWM输出 sbit PWM_L=P1^2; sbit Moto_RA=P1^6; sbit Moto_RB=P1^5; sbit Moto_LA=P1^4; sbit Moto_LB=P1^3; //左右电机驱动 unsigned char Moto_Speed_R; //右轮速度 unsigned char Moto_Speed_L; //左轮速度  unsigned char Moto_Speed_Num; //PWM调速 sbit INF_R0=P4^3; //循迹 右侧内传感器 sbit INF_R1=P4^2; //循迹 右侧外传感器 sbit INF_L0=P4^1;   //循迹 左侧内传感器 sbit INF_L1=P4^0;   //循迹 左侧外传感器 unsigned char Car_Sta; //电机启动速度 /*********************************** *函数名称:void Delay(unsigned char num) *函数功能:延时 *参数说明:num 延时时间 数值最大255 *返回说明:无 *其它说明:不精准延时 ***********************************/ //void Delay(unsigned char num) //{ // unsi

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • IP-Programing
    是关于图像的基础操作,包括图像倾斜矫正,图像增强,去除噪声,图像压缩等技术(It is on the image on the basis of operations, including image tilt correction, image enhancement, noise removal, image compression technology)
    2016-04-15 15:48:47下载
    积分:1
  • bch_euc
    说明:  bch 编码、解码程序,可以对任意长度的信息添加纠错码。(BCH encoding, decoding procedures can be arbitrary length of the right information to add error-correcting codes.)
    2021-01-26 11:58:36下载
    积分:1
  • fluent-Mixture-for-loop
    fluent 多相流循环,主要用于fluent优化编程子程序(fluent multiphase flow loop)
    2013-11-30 17:19:40下载
    积分:1
  • 在线商店
    你好这里是多重预订项目的项目 网上购票完美工作没有数据库会得到电子邮件 notifiaction 高背景 高速度 visual basic C# 语言项目
    2022-08-24 14:57:39下载
    积分:1
  • Four-Digit-Seven-Segment-counter-STM8
    7 segments/four digits driver for stm8s with counter example (increment to 9999)
    2017-04-17 06:52:30下载
    积分:1
  • C# WinFrom无失真缩小图片
    C# WinFrom无失真缩小图片
    2015-01-08下载
    积分:1
  • RKEOS
    fluent中自定义真实气体RKEOS状态方程的代码(codes of RK equation of state for fluent user defined real gas model.)
    2020-12-13 21:59:15下载
    积分:1
  • 44810407
    说明:  Desktop drawing program, for beginners to understand the vc code is a good example, performance fun and easy to learn
    2018-12-31 11:33:10下载
    积分:1
  • C#与三菱PLC通信程序
    该程序使用C#语言编写,通过调用三菱PLC的MXComponent库中的接口函数,实现与三菱PLC的通信,包括了连接,读写BLOCK的操作,非常好用
    2023-05-22 01:05:04下载
    积分:1
  • 传世源码
    传世源码传世源码传世源码传世源码传世源码传世源码传世源码
    2022-03-03 05:08:19下载
    积分:1
  • 696518资源总数
  • 106182会员总数
  • 24今日下载