from __future__ import print_function import emitter class HTMLEmitter(emitter.Emitter): def preface(self): return """

Onboard Message Log Messages


This is a list of log messages which may be present in logs produced and stored onboard ArduPilot vehicles.

[toc exclude="Onboard Message Log Messages"] """ def postface(self): return "" def start(self): self.fh = open("LogMessages.html", mode='w') print(self.preface(), file=self.fh) def emit(self, doccos): self.start() for docco in doccos: print('

%s

' % docco.name, file=self.fh) if docco.url is not None: print(' More information' % docco.url, file=self.fh) if docco.description is not None: print('

%s

' % docco.description, file=self.fh) print(' ', file=self.fh) print(" ", file=self.fh) for f in docco.fields_order: if "description" in docco.fields[f]: fdesc = docco.fields[f]["description"] else: fdesc = "" print(' ' % (f, fdesc), file=self.fh) # if "bits" in docco.fields[f]: # print(' %s' % # docco.fields[f]["bits"], file=self.fh) print('
FieldNameDescription
%s%s
', file=self.fh) print("", file=self.fh) self.stop() def stop(self): print(self.postface(), file=self.fh) self.fh.close()