mirror of
https://gitee.com/yyz_o/bk_bishe_pi.git
synced 2025-09-07 23:21:26 +00:00
23 lines
500 B
C++
23 lines
500 B
C++
#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);
|
|
|
|
}
|