//需要源码,私聊
#include <DCMotor.h>//电机
#include <CoreLED.h>//灯
#include <CoreKEY.h>//按键
#include <CoreBeep.h>//蜂鸣器
#include <ExtSRAMInterface.h>//核心板
#include <LED.h>//灯
#include <BH1750.h>//光照传感器
#include <Command.h>//包含了与命令相关的函数和定义
#include <BEEP.h>//蜂鸣器
#include <Infrare.h>//红外
#include <Ultrasonic.h>//超声波
#include <BKRC_Voice.h>//语音
#define Track_speed 55
#define AGV_Go 280
#define Ture_speed 90
static uint8_t TrafficA_Open[8] = { 0x55, 0x0E, 0x01, 0x00, 0x00, 0x00, 0x01, 0xBB }; // 智能交通灯A 进入识别模式 进入识别模式
static uint8_t TrafficA_Red[8] = { 0x55, 0x0E, 0x02, 0x01, 0x00, 0x00, 0x03, 0xBB }; // 智能交通灯A 识别结果为红色请求确认
static uint8_t TrafficA_Green[8] = { 0x55, 0x0E, 0x02, 0x02, 0x00, 0x00, 0x04, 0xBB }; // 智能交通灯A 识别结果为绿色请求确认
static uint8_t TrafficA_Yellow[8] = { 0x55, 0x0E, 0x02, 0x03, 0x00, 0x00, 0x05, 0xBB }; // 智能交通灯A 识别结果为黄色请求确认
static uint8_t TrafficB_Open[8] = {0x55, 0x0F, 0x01, 0x00, 0x00, 0x00, 0x01, 0xBB}; // 智能交通灯B 进入识别模式 进入识别模式
static uint8_t TrafficB_Red[8] = {0x55, 0x0F, 0x02, 0x01, 0x00, 0x00, 0x03, 0xBB}; // 智能交通灯B 识别结果为红色请求确认
static uint8_t TrafficB_Green[8] = {0x55, 0x0F, 0x02, 0x02, 0x00, 0x00, 0x04, 0xBB}; // 智能交通灯B 识别结果为绿色请求确认
static uint8_t TrafficB_Yellow[8] = {0x55, 0x0F, 0x02, 0x03, 0x00, 0x00, 0x05, 0xBB}; // 智能交通灯B 识别结果为黄色请求确认
static uint8_t Gate_Open[8] = { 0x55, 0x03, 0x01, 0x01, 0x00, 0x00, 0x02, 0xBB }; // 道闸 开启
static uint8_t Light_plus1[4] = { 0x00, 0xFF, 0x0C, ~(0x0C) }; // 智能路灯 光源挡位加1
static uint8_t Light_plus2[4] = { 0x00, 0xFF, 0x18, ~(0x18) }; // 智能路灯 光源挡位加2
static uint8_t Light_plus3[4] = { 0x00, 0xFF, 0x5E, ~(0x5E) }; // 智能路灯 光源挡位加3
static uint8_t SEG_TimOpen[8] = { 0x55, 0x04, 0x03, 0x01, 0x00, 0x00, 0x04, 0xBB }; // LED显示 计时开启
static uint8_t SMG_TimClose[8] = { 0x55, 0x04, 0x03, 0x00, 0x00, 0x00, 0x03, 0xBB }; // LED显示 计时关闭
static uint8_t Alarm_Open[6] = {0x03, 0x05, 0x14, 0x45, 0xDE, 0x92}; // 烽火台 开启
static uint8_t Alarm_Close[6] = {0x67, 0x34, 0x78, 0xA2, 0xFD, 0x27}; // 烽火台 关闭
static uint8_t Gate_Close[8] = {0x55, 0x03, 0x01, 0x02, 0x00, 0x00, 0x03, 0xBB}; // 道闸 关闭
static uint8_t Gate_GetStatus[8] = {0x55, 0x03, 0x20, 0x02, 0x00, 0x00, 0x03, 0xBB}; // 道闸 状态查询
static uint8_t Charge_Open[8] = {0x55, 0x0A, 0x01, 0x01, 0x00, 0x00, 0x02, 0xBB}; // 无线充电 开启
static uint8_t Charge_Close[8] = {0x55, 0x0A, 0x01, 0x02, 0x00, 0x00, 0x03, 0xBB}; // 无线充电 开启