Selaa lähdekoodia

refactor: Modify the master start-stop logic

HeWang 7 kuukautta sitten
vanhempi
commit
39cb2a7821
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      aarch64/pjibot_guide/control/main.go

+ 5 - 5
aarch64/pjibot_guide/control/main.go

@@ -41,9 +41,9 @@ func init() {
 }
 
 func main() {
-	localTurnLength := 2   // s
-	cloudTurnLength := 60  // s
-	configTurnLength := 60 // s
+	localTurnLength := 2  // s
+	cloudTurnLength := 60 // s
+	//configTurnLength := 60 // s
 	overallTurnLength := localTurnLength
 	stopTime := 10 // min
 
@@ -116,8 +116,8 @@ func main() {
 			continue
 		}
 
-		// 云端任务状态负责更新配置
-		go pkg.GetCloudConfig(cloudStatus, lastCloudStatus, configTurnLength)
+		//// 云端任务状态负责更新配置
+		//go pkg.GetCloudConfig(cloudStatus, lastCloudStatus, configTurnLength)
 
 		//if cloudStatus == "UN_CHANGE" {
 		//	continue