diff --git a/dvl-a50/mavlink2resthelper.py b/dvl-a50/mavlink2resthelper.py index 2859220..d954aa4 100644 --- a/dvl-a50/mavlink2resthelper.py +++ b/dvl-a50/mavlink2resthelper.py @@ -30,8 +30,8 @@ def __init__(self, vehicle: int = 1, component: int = 1): self.vision_template = """ {{ "header": {{ - "system_id": 255, - "component_id": 0, + "system_id": """ + str(vehicle) + """, + "component_id": 197, "sequence": 0 }}, "message": {{ @@ -55,8 +55,8 @@ def __init__(self, vehicle: int = 1, component: int = 1): self.vision_speed_estimate_template = """ {{ "header": {{ - "system_id": 255, - "component_id": 0, + "system_id": """ + str(vehicle) + """, + "component_id": 197, "sequence": 0 }}, "message": {{ @@ -83,8 +83,8 @@ def __init__(self, vehicle: int = 1, component: int = 1): self.global_vision_position_estimate_template = """ {{ "header": {{ - "system_id": 255, - "component_id": 0, + "system_id": """ + str(vehicle) + """, + "component_id": 197, "sequence": 0 }}, "message": {{ @@ -126,8 +126,8 @@ def __init__(self, vehicle: int = 1, component: int = 1): self.gps_origin_template = """ {{ "header": {{ - "system_id": 255, - "component_id": 0, + "system_id": """ + str(vehicle) + """, + "component_id": 197, "sequence": 0 }}, "message": {{ @@ -144,8 +144,8 @@ def __init__(self, vehicle: int = 1, component: int = 1): self.rangefinder_template = """ {{ "header": {{ - "system_id": 255, - "component_id": 0, + "system_id": """ + str(vehicle) + """, + "component_id": 197, "sequence": 0 }}, "message": {{ @@ -177,8 +177,8 @@ def __init__(self, vehicle: int = 1, component: int = 1): self.statustext_template = """ {{ "header": {{ - "system_id": 1, - "component_id": 1, + "system_id": """ + str(vehicle) + """, + "component_id": 197, "sequence": 0 }}, "message": {{