mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
added code_unit attribute to section defines in airframe file parsing
always convert degrees to radians, unless explicitly stated otherwise * if unit and code_unit are specified the value is converted to code_unit and then written to the generated airframe.h file * this works for default units like deg<->rad, m<->mm, etc. * only works if the contents of the value attribute can be converted to float, otherwise string is simply copied * special treatment for unit="deg": if code_unit is not specified, will be converted to rad nevertheless, if this is not wanted explicitly specify code_unit="deg"
This commit is contained in:
@@ -97,6 +97,7 @@ value CDATA #REQUIRED>
|
||||
name CDATA #REQUIRED
|
||||
value CDATA #IMPLIED
|
||||
unit CDATA #IMPLIED
|
||||
code_unit CDATA #IMPLIED
|
||||
integer CDATA #IMPLIED>
|
||||
|
||||
<!ATTLIST configure
|
||||
|
||||
Reference in New Issue
Block a user