From b46925711b1c23d2d1f51a7ff3f83ba5156a2c83 Mon Sep 17 00:00:00 2001 From: ES-Alexander Date: Wed, 30 Aug 2023 18:26:08 +1000 Subject: [PATCH] dvl-a50: mavlink2resthelper: fix incorrect IDs - `system_id` set to match the vehicle ID, since they should be part of the same system - `component_id` set to 197 (`MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY`) --- dvl-a50/mavlink2resthelper.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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": {{