1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
Commit Graph

114 Commits

Author SHA1 Message Date
Stefan Karlsson
e066056236 LP-275 Fix deprecated GCS UAVO setters 2016-04-03 20:16:07 +02:00
Stefan Karlsson
371b658afc LP-251 Fix incorrect null check 2016-03-06 12:48:20 +01:00
Stefan Karlsson
8e63d4e618 LP-251 Turn on -Werror for uavobjgenerator on osx 2016-03-06 12:45:08 +01:00
Laurent Lalanne
220eb033d9 LP-230 UAVObject generator : Add enum count. Thanks @filnet 2016-02-22 20:26:54 +01:00
Philippe Renon
6b39fc0800 uncrustify 2016-01-04 21:41:45 +01:00
Philippe Renon
6e1224dd38 LP-183 introduce an underscore between property name and element name when concatenating digits if not 2015-12-21 21:50:55 +01:00
Philippe Renon
cefcacbbcf Merged in filnet/librepilot (pull request #141)
LP-183 fix GCS regression caused by UAVObject generator changes
2015-12-20 20:44:06 +01:00
Philippe Renon
0137460d0b LP-183 promote int8 and uint8 to their 16 bits equivalents
applies only to new Qml friendly properties
int16 will be silently cast to and from int8 !!!
2015-12-20 16:53:00 +01:00
Rafael Bachmann
605374f492 uncrustify 2015-12-19 13:52:25 +01:00
Philippe Renon
0017ce2acf LP-183 generated UAV objects are now more Qt and Qml friendly
use lower camel case for properties and getters
introduce better enums and expose them to Qml
backward compatibilty is preserved for now
2015-12-02 08:52:37 +01:00
James Duley
3769b8a1ae Merged in rbekken/librepilot/bug (pull request #18)
uavobjectgenerator: Fix logic error.
2015-08-09 21:01:58 +01:00
Roy Bekken
003558be45 uavobjectgenerator
- Fix logic error and add description to usage().
- Update Copyright.
2015-08-03 16:10:24 +02:00
James Duley
c14cacb043 LP-1 rebranding: move ground/{openpilotgcs => gcs}
and associated pro file.

Change-Id: Icc200217f2db27635c7aa2e5b182f9b273925647
2015-08-02 19:20:02 +01:00
Alessio Morale
e01798d1ed LP-41 - Add support for ccache
- explicitly define QMAKE_CC & CXX as "ccache <compiler>"
- use ccache for uavobjectgenerator
- Handle CCACHE setting with configuration options

To enable ccache you need to configure it like
  make CCACHE=/path/to/ccache config_append
2015-07-22 20:40:43 +02:00
abeck70
5b49aa092f Merge branch 'rel-15.05' into next 2015-05-19 22:02:34 +10:00
abeck70
9bfc68ca62 Merge branch 'next' of ssh://git.openpilot.org/OpenPilot into kfinisterre/WiresharkPlugin 2015-05-18 23:00:29 +10:00
James Duley
28a42dade6 OP-1853 Ground build tidy: Make consistent uavobjgenerator output dir.
Because on windows its normally different for release and debug
2015-05-17 21:27:16 +01:00
James Duley
5a2806c3c0 OP-1853 Ground build tidy: Remove hardcoded prefix from uavobjgenerator output 2015-05-13 12:47:27 +01:00
Philippe Renon
9a312ef115 uncrustified 2015-05-02 16:46:35 +02:00
Kevin Finisterre
6ee9eda7fb Fix the error "Err Field '0' (actuatorcommand.Channel.0) is signed (FT_INT16) but is being displayed unsigned (BASE_DEC_HEX)"
Stop attempting to display in hex
2015-04-28 15:31:27 -04: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