//遥控
#include <IRremote.h>
//LCD1602
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);//0x27 0x3F
//舵机
#include <Servo.h>
Servo myservo;
Servo myservo2;
const int irReceiverPin =7;//遥控引脚
const int relayPin =3;//继电器引脚
int tu=0;//模式
int JL=0;//距离
int JL2=0;//模式2距离
unsigned int JL3;//模式3距离
int jiaodu=0;//角度
int jiaodu2=0;//模式2角度
int jiaodu3=0;//模式三角度
int zh=0;//模式2切换
int pin =4;//激光
int jishi;
int jiaodu4=0;
int JL4=0;
int jiaodu5=0;
unsigned long duration;//模式三激光探测距离