智能搬运小车c语言程序(完整)(Intelligent transport cart C language program (complete))
智能搬运小车c语言程序(完整)(Intelligent transport cart C language program (complete))
Intelligent transport car hope to want to automatically grab the goods, road tracking, automatic unloading function.
#include
Unsigned char zkb1=0; / / the left motor duty ratio, maximum 100
Unsigned char zkb2=0; / / the right motor duty ratio, maximum 100
Unsigned char T, t1=0; / / timer interrupt counter
Char jd1=2, jd2=4, jd3=3; / / steering angle control
Unsigned char ftaiqi=0, fjiaqu=0; / / have extract, lift up the clip?
Sbit RSIGN1=P2^0; / / left signal 1
Sbit RSIGN2=P2^1; / / left signal 2
Sbit LSIGN1=P2^2; / / the right signal 1
Sbit LSIGN2=P2^3; / / the right signal 2
Sbit IN1=P0^0;
Sbit IN2=P0^1;
Sbit IN3