Skip to content
Snippets Groups Projects
Commit 03a2fcca authored by Zhiying Li's avatar Zhiying Li
Browse files

Revert "Modified number of max tries for reconnect to 10"

This reverts commit 9dc2f195.
parent ff6b06d2
No related merge requests found
No preview for this file type
......@@ -37,10 +37,17 @@ def direction_translation(dir1, dir2, dir3, dir4):
class Blimp:
def __init__(self):
print("Address of self = ",id(self))
target = "ws://10.0.0.2:81"
self.ws = create_connection(target)
print("connected")
print("Address of Blimp object: ", id(self))
self.target = "ws://10.0.0.2:81"
self.ESP_RECONNECT_MAXTRIES = 2
self.connectionStatus = False
try:
self.connectionStatus = True
self.ws = create_connection(self.target)
except:
self.connectionStatus = False
self.try_reconnect()
print("Connected")
def get_LidarDist1(self):
return 0
......
No preview for this file type
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