Skip to content
Snippets Groups Projects
Commit 9ad17f6c authored by Michael Day's avatar Michael Day Committed by Michael Day
Browse files

console: Show sysid (make better before making a pull request)

parent 927aa2e4
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,12 @@ class ConsoleModule(mp_module.MPModule):
fmode = master.flightmode
if self.settings.vehicle_name:
fmode = self.settings.vehicle_name + ':' + fmode
self.console.set_status('Mode', '%s' % fmode, fg='blue')
self.console.set_status('Mode', '%s' % fmode, fg='blue')
else:
sysid = self.mav_param.get('SYSID_THISMAV')
if sysid is None:
sysid = 0
self.console.set_status('Mode', '%u:%s' % (sysid, master.flightmode), fg='blue')
if self.master.motors_armed():
arm_colour = 'green'
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment