2025.5.17第一次提交,包括16号和今天,在实机上,对代码修改后的结果

This commit is contained in:
Ñõԭ×Ó
2025-05-17 15:04:27 +08:00
parent 137218ebe5
commit 5ce7796b14
7 changed files with 300 additions and 74 deletions

View File

@@ -0,0 +1,22 @@
#include<iostream>
#include<string>
#include"eyebot++.h"
using namespace std;
int main()
{
int Fwall,Lwall,Rwall,bwall;
LCDMenu("","","","END");
do
{
Fwall = PSDGetRaw(1); //检测前面侧是否有墙
Lwall = PSDGetRaw(2); //检测左面
Rwall = PSDGetRaw(3); //检测右面
bwall = PSDGetRaw(4); //
cout << "PSD L:" << Lwall << " R:" << Rwall << " F:" << Fwall << " b:" << bwall << endl; ;
} while (KEYRead() != KEY4);
}