@@ -25,7 +25,7 @@ def __init__(
2525 def listen (self ):
2626 try :
2727 while True :
28- b = self ._packet_manager .listen (3 )
28+ b = self ._packet_manager .listen (1 )
2929 if b is not None :
3030 self ._log .info (
3131 message = "Received response" , response = b .decode ("utf-8" )
@@ -37,12 +37,12 @@ def send_receive(self):
3737 try :
3838 cmd_selection = input (
3939 """
40- ====================================================
41- | Select command to send |
42- | 1: Reset |
43- | 2: Change radio modulation |
44- | 3: Send joke |
45- ====================================================
40+ ===============================
41+ | Select command to send |
42+ | 1: Reset |
43+ | 2: Change radio modulation |
44+ | 3: Send joke |
45+ ===============================
4646 """
4747 )
4848 if cmd_selection not in ["1" , "2" , "3" ]:
@@ -75,7 +75,7 @@ def send_receive(self):
7575 self ._packet_manager .send (json .dumps (message ).encode ("utf-8" ))
7676
7777 # Listen for ACK response
78- b = self ._packet_manager .listen (5 )
78+ b = self ._packet_manager .listen (1 )
7979 if b is None :
8080 self ._log .info ("No response received, retrying..." )
8181 continue
@@ -90,7 +90,7 @@ def send_receive(self):
9090 self ._log .info ("Received ACK" )
9191
9292 # Now listen for the actual response
93- b = self ._packet_manager .listen (5 )
93+ b = self ._packet_manager .listen (1 )
9494 if b is None :
9595 self ._log .info ("No response received, retrying..." )
9696 continue
@@ -105,16 +105,16 @@ def run(self):
105105 while True :
106106 print (
107107 """
108- ====================================================
109- | |
110- | WELCOME! |
111- | PROVESKIT Ground Station |
112- | |
113- ====================================================
114- | Please Select Your Mode |
115- | 'A': Listen only |
116- | 'B': Send/Listen |
117- ====================================================
108+ =============================
109+ | |
110+ | WELCOME! |
111+ | PROVESKIT Ground Station |
112+ | |
113+ =============================
114+ | Please Select Your Mode |
115+ | 'A': Listen |
116+ | 'B': Send |
117+ =============================
118118 """
119119 )
120120
0 commit comments