kopia lustrzana https://github.com/projecthorus/wenet
Filter out all but WENET packets from TelemetryGUI, change wenet udp broadcast port to align with horus_utils.
rodzic
53ed74d793
commit
e716075531
|
@ -309,7 +309,11 @@ def process_udp(udp_packet):
|
|||
|
||||
# Parse JSON, and extract packet.
|
||||
packet_dict = json.loads(udp_packet)
|
||||
packet = packet_dict['packet']
|
||||
# Discard all but Wenet packets
|
||||
if packet_dict['type'] == 'WENET':
|
||||
packet = packet_dict['packet']
|
||||
else:
|
||||
return
|
||||
|
||||
# Decode GPS and IMU packets, and pass onto their respective GUI update functions.
|
||||
packet_type = decode_packet_type(packet)
|
||||
|
|
|
@ -15,7 +15,7 @@ from hashlib import sha256
|
|||
from base64 import b64encode
|
||||
|
||||
WENET_IMAGE_UDP_PORT = 7890
|
||||
WENET_TELEMETRY_UDP_PORT = 7891
|
||||
WENET_TELEMETRY_UDP_PORT = 55672
|
||||
|
||||
class WENET_PACKET_TYPES:
|
||||
TEXT_MESSAGE = 0x00
|
||||
|
|
Ładowanie…
Reference in New Issue