The part which generates the gcs/flight/matlab/python code - and where I am adding java as output language - now got a restructuring with R2392 There where several problems I wanted to address:
- all languages to generate where processed everytime. In most runs only flight and/or gcs is needed but also matlab and python code was generated - now uavobjectgenerator has command line arguments to specify which languages to build and there are also new targets in the makefile.
- generation code for all languages was in the parser section - was bit of a mess in general - i untied it as best as i could
- its now more easy for new devs to add a new language or find relevant code for the language he is interested in
But there are other issues I want to discuss here first:
generated files to svn
Issue: should files that are auto-generated really be in the svn? This has some disadvantages like making it harder to see what really changed in diffs; possible unneeded merge work ; making it harder to find code to work on ; using up more space/bandwith than needed ( I'm living on umts only on the road atm. ,-)
Fix: remove them from svn
python working / maintaining
Issue: the part of generating python code looks like started but not finished and never used
Fix: move away for the moment until someone uses it
position in svn
Issue: the uavobjects generator is in ground/src/libs/uavobjgenerator/, but generates flight code too and is not really a lib
Fix: create shared folder in root and place it there shared/src/uavobjgenerator
non working tests
Issue: the tests in ground/src/plugins/uavobjects/tests are broken
Fix: rewrite or move away for the moment
Issue: ground/src/plugins/uavobjects/ is a mess - containing templates / generated python/cpp/matlab code
Fix: cleanup / introduce new folders
unit "na" v.s. ""
Issue: there are different styles for marking a field as not used
./ahrsstatus.xml: <field name="SerialNumber" units="n/a" type="uint8" elements="8"/>
./firmwareiap.xml: <field name="crc" units="na" type="uint32" elements="1"/>
./gpstime.xml: <field name="Day" units="" type="int8" elements="1"/>
Fix:
we should make one a default - I vote for "" - UI can translate it to n/a if wanted



Germany
United States
Ukraine
France
Canada








