mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-06 02:52:42 +08:00
[tool] fix calibration tool output
XML is not correctly formated. fix #3354
This commit is contained in:
committed by
Freek van Tienen
parent
1382aaf036
commit
0a33f4be35
@@ -193,8 +193,8 @@ def print_xml(p, sensor, sensor_id, res):
|
||||
z_sens = continious_frac(p[5]*2**res)
|
||||
|
||||
print("")
|
||||
print('<define name="IMU_'+sensor+'_CALIB" type="array"/>')
|
||||
print(' <field type="struct"/>')
|
||||
print('<define name="IMU_'+sensor+'_CALIB" type="array">')
|
||||
print(' <field type="struct">')
|
||||
print(' <field name="abi_id" value="'+sensor_id+'"/>')
|
||||
print(' <field name="calibrated" type="struct">')
|
||||
print(' <field name="neutral" value="true"/>')
|
||||
|
||||
Reference in New Issue
Block a user