Tools: add known Calibration tag to apm.pdef.xml

this will allow a GCS to hide anything that a user should never
ordinarily have to see in terms of calibration parameters
This commit is contained in:
Peter Barker 2020-02-02 11:56:29 +11:00 committed by Peter Barker
parent dba272bafb
commit 16f4d33d00
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ known_param_fields = [
'Bitmask',
'Volatile',
'ReadOnly',
'Calibration',
]
# Follow SI units conventions from:

View File

@ -46,6 +46,9 @@ class XmlEmit(Emit):
if hasattr(param, 'User'):
t += ' user=%s' % quoteattr(param.User) # i.e. Standard or Advanced
if hasattr(param, 'Calibration'):
t += ' calibration=%s' % quoteattr(param.Calibration) # i.e. Standard or Advanced
t += ">\n"
# Add values as chidren of this node