Philippe Renon
9a312ef115
uncrustified
2015-05-02 16:46:35 +02:00
Richard von Lehe
604585f74e
OP-1740: GetSet use enums. Need to pack the enums to retain byte compatibility.
2015-04-20 08:31:26 -05:00
Richard von Lehe
ef6cf262d5
OP-1740: GetSet use enums: tidy
2015-04-15 21:57:38 -05:00
Richard von Lehe
04497a5b77
enums sorted out in code and template, need to merge in latest
2015-04-08 18:38:49 -05:00
Richard von Lehe
69fae1b977
Fix misspelling in function name
2015-03-28 23:27:07 -05:00
Richard von Lehe
8e236c9954
OP-1740 UAVO_GetSetFunctionsTakeEnum - getting started
2015-03-25 08:03:35 -05:00
m_thread
3dd9503454
OP-1538 Changed the way splitter state is changed.
...
Fixed some formatting colors.
2014-10-14 09:51:02 +02:00
Fredrik Arvidsson
ef15064b26
OP-1538 Added description to fields in the UAVObject description files.
...
Descriptions can be added to fields either as attributes or child nodes.
Descriptions are not mandatory at this stage.
The description shows up when hovering over objects and fields in the UAVObject browser.
Added example descriptions to a few fields in the UAVO descriptor files.
2014-10-11 16:12:58 +02:00
Corvus Corax
6faf1a73ac
OP-1456 get rid of cast_struct_to_array because it is error prone!
2014-08-24 00:16:34 +02:00
Alessio Morale
6e0f478f43
OP-1291 fix Matlab/Octave converter after UAVTalk changes.
...
Also made several optimization.
2014-04-05 13:00:55 +02:00
Alessio Morale
13f1f3f23a
OP-1212 Add "priority" attribute to uavojects that grant them higher priority when sent with telemetry
2014-02-04 21:03:42 +01:00
Corvus Corax
2f2cff3dc6
uncrustification
2013-12-07 15:25:15 +01:00
Dmytro Poplavskiy
bac42e92c4
GCS UAVO generator: generate properties for composed fields
...
Expose field elements as FieldName_Element properties.
it's more convenient if only certain element is used
and much easier to use from the qml side
2013-11-13 16:30:02 +01:00
Philippe Renon
6998c782db
Merge remote-tracking branch 'origin/filnet/qt5.1.0' into next
...
Conflicts:
ground/openpilotgcs/src/plugins/coreplugin/connectionmanager.h
ground/openpilotgcs/src/plugins/coreplugin/workspacesettings.cpp
2013-10-17 22:00:54 +02:00
Philippe Renon
d989894ad4
[OP-835] Qt 5.1.0 - migrated uavobjgenerator/uavobjectparser.cpp
2013-09-15 23:37:21 +02:00
Alessio Morale
0db9a9bf8d
OP-1058 Add xxxGet and xxxSet functions to handle multielement fields as struct
...
for example:
EKFStateVariancePSet(EKFStateVariancePData *NewP);
EKFStateVariancePGet(EKFStateVariancePData *NewP);
Also in this case array accessors are renamed as xxxArrayGet/Set:
EKFStateVariancePArraySet(float *NewP);
EKFStateVariancePArrayGet(float *NewP);
Nothing changes for anonymous items as default functions continues to deal with arrays
+review OPReview-552
2013-09-01 13:23:20 +02:00
Alessio Morale
e91bc28667
OP-1058 Get rid of Unions.
...
They caused stack usage increase with -fstrict-aliasing as stack slots are not reused when dealing with unions.
It has now been added the cast_struct_to_array macro in pios_struct_helper.h to handle such case where it is useful to access those homogeneous structs as arrays
+review OPReview-552
2013-09-01 12:10:55 +02:00
Alessio Morale
01d963affd
OP-1058 uncrustify
2013-08-01 01:28:50 +02:00
Alessio Morale
d99790be71
OP-1058: Implement explicit item accessor for MultiElement fields.
...
This implementation uses a union containing the Array implementing the MultiElement field data and a struct made from element names.
it allow to replace the following sintax:
settings.PitchRatePID[STABILIZATIONSETTINGS_PITCHRATEPID_KP]
with a more concise and less error prone
settings.PitchRatePID.fields.Kp
while allowing the direct array access using the notation
settings.PitchRatePID.data[n]
2013-07-31 15:23:43 +02:00
Sexy Pony
900f643bbd
Reformat source code with 'make uncrustify_all' run twice. NO CODE CHANGES
2013-05-19 17:37:30 +03:00
Richard Flay (Hyper)
87fcf9fa8b
Merge branch 'next' into hyper/OP-931_extra_compiler_warnings and update as necessary.
...
Hopefully properly fixes conflicts:
flight/modules/Attitude/attitude.c
flight/modules/ManualControl/manualcontrol.c
flight/modules/Osd/WavPlayer/wavplayer.c
flight/modules/Osd/osdgen/osdgen.c
flight/modules/System/systemmod.c
ground/uavobjgenerator/generators/flight/uavobjectgeneratorflight.cpp
2013-05-04 11:12:44 +09:30
Oleg Semyonov
0394a3511c
Rename template files to *.template to screen from uncrustify processing
2013-04-30 16:54:27 +02:00
Richard Flay (Hyper)
7937ae6296
OP-931: Makes flight code compile with -Wfloat-equal and -Wunsuffixed-float-constants enabled.
...
Also fixes warnings (and bugs) in F4 STM32_USB_OTG_Driver code, allowing -Werror to be enabled for all flight code.
Fixes all other compiler warnings that would otherwise cause the flight code to not compile with -Werror enabled.
Along the way, this also adds some uses of isnan() to various places rather than questionable tests for x != x and
x == x to check for NaNs.
+review OPReview
2013-04-30 20:36:42 +09:30
Oleg Semyonov
27195b7327
OP-899: move UAVObjects and UAVTalk one level up from targets
2013-04-24 00:07:07 +03:00
Oleg Semyonov
5bb6b56b4a
OP-772: Normalize line endings
2013-04-05 23:46:56 +03:00
Oleg Semyonov
3e815ca8d5
build: get rid of build/ground subdirectory, fix qt-creator builds
...
This changeset:
- moves all ground targets one level up, under build directory. The
build/ground was created as a workaround, now unnecessary;
- fixes QtCreator builds, they are separated from command line builds;
- moves GCS autogenerated files into openpilotgcs-synthetics directory.
The resulting build subdirectory now looks like:
build
openpilotgcs <- Qt-Creator build directory
openpilotgcs-synthetics <- version-info and opfw_resource
openpilotgcs_debug
openpilotgcs_release <- Makefile build directory
uavobject-synthetics
uavobjgenerator
NOTE: you should update the shadow build path in QtCreator to build,
not build/ground as before.
+review OPReview
2013-03-30 17:33:38 +02:00
Philippe Vanhaesendonck
8625eba054
Fix for OSX Lions compiler
...
OSX 10.7 and above will need the -fpermissive flag to compile
2013-03-26 22:57:08 +01:00
Stacey Sheldon
f500ac1e23
rename: move UAVObjects and UAVTalk directories under targets
2013-01-28 02:33:06 +02:00
Richard Flay (Hyper)
53e2db3b24
Added a backwards-compatible way to specify UAVO field element names and options as lists of child elements of the field element. Added the ability to specify that a field is a clone of another field, just with a different name
2012-09-08 14:41:55 +09:30
James Cotton
a3b75a3cc7
Merge remote-tracking branch 'origin/kenz/matlab_parser_vectorizing' into next
2012-09-02 19:23:18 -05:00
Laura Sebesta
f23eabf469
Fixed comments to mention "instantiation" instead of "allocation".
2012-08-16 08:47:45 +02:00
Laura Sebesta
699b2f3030
Cleaned up variable names, fixed bug in saving whereby the a log file could be saved over if the extension were not "opl".
2012-08-16 08:37:26 +02:00
Laura Sebesta
69133c1427
Further optimized Matlab parsing. It now does most typecast as vectorized operations.
...
The upshot is an approximately 50% performance boost.
2012-08-16 00:13:19 +02:00
James Cotton
e1ba3d2e63
Update the UAVObjects to the version on next. At some point a make script
...
should generate these and copy from build/uavobjects-synth/java to this
directory automatically.
Also make sure java objects use CamelCase
2012-08-06 16:54:54 -05:00
James Cotton
6dd509ded3
Make the initial values for enums be the string. Make setValue accept
...
numerical or string constants for enums. Only returns a string though.
2012-08-06 16:54:19 -05:00
James Cotton
f338625092
Removed various debugging outputs and exceptions for now (will add back in a
...
more principled manner later). Also updated the auto generated code.
2012-08-06 16:54:19 -05:00
James Cotton
cc7eb0f261
Make object store with the minimal amount of space and deal with unsigned
...
values
2012-08-06 16:54:18 -05:00
James Cotton
9a4c158690
Java autogenerated code to be more compatible with gcs code
2012-08-06 16:54:18 -05:00
Fredrik Arvidsson
d83bff100b
Merge branch 'next' into thread/OP-642
2012-07-01 12:25:23 +02:00
Stacey Sheldon
d9dca0b553
Merge branch 'wireshark-plugins' into next
2012-06-30 22:42:38 -04:00
Fredrik Arvidsson
32abd2e32f
Merge branch 'next' into thread/OP-642
2012-06-30 16:51:19 +02:00
Corvus Corax
2dcc28cea3
uavobjectgenerator: for consistency with flight and gcs code, change order of update modes. This is a cosmetic change, it does ot change the generated code since update modes are always identified by string, not numerically.
2012-06-29 10:33:33 +02:00
Fredrik Arvidsson
b73cde1787
OP-642 Changed from using an xml element for category to have it defined
...
as an attribute on the uav object definition. This attribute is
optional. If absent no category (empty string) is assigned to the uav
object type.
Added category attribute to a small selection of uavo definition files
to test parsing.
2012-06-20 22:23:06 +02:00
Fredrik Arvidsson
3c754af484
OP-642 Added <category> element which is a string in uavo object type definition to be used in uavo browser to categorise uavo:s visually into subtrees. Category value is assigned in generated code and accessible via getter method. OP-644 Fixed option for uavo browser to enable disable hilights for objects which values wasn't really changed to indicate stream activity in uavo object tree.
2012-06-20 21:26:18 +02:00
Stacey Sheldon
4c47a36bda
uavobjgenerator: Add generator for wireshark UAVO plugin
...
Using 'make uavobjects_wireshark' now generates a complete
wireshark dissector that can decode all fields of the available
UAVObjects.
2012-06-19 00:21:35 -04:00
James Cotton
3155324384
Merge branch 'next' into cc3d
...
Conflicts:
Makefile
ground/openpilotgcs/src/plugins/config/configahrswidget.cpp
shared/uavobjectdefinition/ahrscalibration.xml
shared/uavobjectdefinition/ahrssettings.xml
shared/uavobjectdefinition/attituderaw.xml
2012-05-03 16:31:49 -05:00
Brian Webb
eb6f175af4
Fixed metadata settings in object browswer, and removed update mode never from all uavobjects that used it (changed to manual).
2012-04-21 11:59:14 -07:00
James Cotton
f20e5da9ed
Merge branch 'next' into revolution
...
Conflicts:
ground/openpilotgcs/src/plugins/config/config.pro
ground/openpilotgcs/src/plugins/config/configrevowidget.h
ground/openpilotgcs/src/plugins/scope/scopegadgetwidget.cpp
2012-03-03 11:41:41 -06:00
James Cotton
fbb0b1173a
More work from Kenz to improve the matlab parser
2012-02-16 04:24:10 -06:00
James Cotton
7c65bcc5ac
Merge remote-tracking branch 'origin/pt/gcs_uavobj_widget_framework' into next
2012-02-14 14:24:23 -06:00