Skip to content
Snippets Groups Projects
Commit 9afcba9a authored by Zhaoliang Zheng's avatar Zhaoliang Zheng
Browse files

Merge remote-tracking branch 'origin/main' into main

parents 2e417ab6 10fed3fb
Branches
No related merge requests found
......@@ -60,7 +60,7 @@ void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) {
void setup() {
// Init Serial Monitor
Serial.begin(115200);
Serial.begin(9600);
// Set device as a Wi-Fi Station
WiFi.mode(WIFI_STA);
......@@ -94,13 +94,13 @@ void setup() {
void loop()
{
ChangeVariables();
if(lidar_thres < 300 && seeking_speed < 50){
receivedData.DebugM = "catch ball and seeking for goal";
if(lidar_thres < 200 && seeking_speed < 50){
receivedData.DebugM = "ca b se g";
send_message();
}else if(lidar_thres < 300 && seeking_speed > 50){
}else if(lidar_thres < 200 && seeking_speed > 50){
receivedData.DebugM = "catch ball";
send_message();
}else if (lidar_thres > 300 && seeking_speed < 50){
}else if (lidar_thres > 200 && seeking_speed < 50){
receivedData.DebugM = "seeking";
send_message();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment