@@ -21,10 +21,10 @@ class MavlinkMessage:
2121 component_id : uint32_t
2222 Component ID of the sender (for received messages)
2323
24- target_system : uint32_t
24+ target_system_id : uint32_t
2525 Target system ID (for sending, 0 for broadcast)
2626
27- target_component : uint32_t
27+ target_component_id : uint32_t
2828 Target component ID (for sending, 0 for broadcast)
2929
3030 fields_json : std::string
@@ -39,15 +39,15 @@ def __init__(
3939 message_name ,
4040 system_id ,
4141 component_id ,
42- target_system ,
43- target_component ,
42+ target_system_id ,
43+ target_component_id ,
4444 fields_json ):
4545 """ Initializes the MavlinkMessage object """
4646 self .message_name = message_name
4747 self .system_id = system_id
4848 self .component_id = component_id
49- self .target_system = target_system
50- self .target_component = target_component
49+ self .target_system_id = target_system_id
50+ self .target_component_id = target_component_id
5151 self .fields_json = fields_json
5252
5353 def __eq__ (self , to_compare ):
@@ -59,8 +59,8 @@ def __eq__(self, to_compare):
5959 (self .message_name == to_compare .message_name ) and \
6060 (self .system_id == to_compare .system_id ) and \
6161 (self .component_id == to_compare .component_id ) and \
62- (self .target_system == to_compare .target_system ) and \
63- (self .target_component == to_compare .target_component ) and \
62+ (self .target_system_id == to_compare .target_system_id ) and \
63+ (self .target_component_id == to_compare .target_component_id ) and \
6464 (self .fields_json == to_compare .fields_json )
6565
6666 except AttributeError :
@@ -72,8 +72,8 @@ def __str__(self):
7272 "message_name: " + str (self .message_name ),
7373 "system_id: " + str (self .system_id ),
7474 "component_id: " + str (self .component_id ),
75- "target_system : " + str (self .target_system ),
76- "target_component : " + str (self .target_component ),
75+ "target_system_id : " + str (self .target_system_id ),
76+ "target_component_id : " + str (self .target_component_id ),
7777 "fields_json: " + str (self .fields_json )
7878 ])
7979
@@ -93,10 +93,10 @@ def translate_from_rpc(rpcMavlinkMessage):
9393 rpcMavlinkMessage .component_id ,
9494
9595
96- rpcMavlinkMessage .target_system ,
96+ rpcMavlinkMessage .target_system_id ,
9797
9898
99- rpcMavlinkMessage .target_component ,
99+ rpcMavlinkMessage .target_component_id ,
100100
101101
102102 rpcMavlinkMessage .fields_json
@@ -126,13 +126,13 @@ def translate_to_rpc(self, rpcMavlinkMessage):
126126
127127
128128
129- rpcMavlinkMessage .target_system = self .target_system
129+ rpcMavlinkMessage .target_system_id = self .target_system_id
130130
131131
132132
133133
134134
135- rpcMavlinkMessage .target_component = self .target_component
135+ rpcMavlinkMessage .target_component_id = self .target_component_id
136136
137137
138138
0 commit comments