We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4c0c01 + 4141727 commit 8b96d3fCopy full SHA for 8b96d3f
droneapi/module/api.py
@@ -386,11 +386,11 @@ def __init__(self, mpstate):
386
387
def fix_targets(self, message):
388
"""Set correct target IDs for our vehicle"""
389
- status = self.mpstate.status
+ settings = self.mpstate.settings
390
if hasattr(message, 'target_system'):
391
- message.target_system = status.target_system
+ message.target_system = settings.target_system
392
if hasattr(message, 'target_component'):
393
- message.target_component = status.target_component
+ message.target_component = settings.target_component
394
395
def __on_change(self, *args):
396
for a in args:
0 commit comments