Skip to content

Commit

Permalink
dvl-a50: mavlink2resthelper: fix incorrect IDs
Browse files Browse the repository at this point in the history
- `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`)
  • Loading branch information
ES-Alexander authored Aug 30, 2023
1 parent 7bb1bb5 commit b469257
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions dvl-a50/mavlink2resthelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {{
Expand All @@ -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": {{
Expand All @@ -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": {{
Expand Down Expand Up @@ -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": {{
Expand All @@ -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": {{
Expand Down Expand Up @@ -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": {{
Expand Down

0 comments on commit b469257

Please sign in to comment.