Commit Graph

351 Commits

Author SHA1 Message Date
Lorenz Meier b61e95adfd Automate SITL run 2015-10-17 17:41:57 +02:00
Lorenz Meier 4d71e8c330 Added jMAVSim as submodule 2015-10-17 17:30:58 +02:00
Lorenz Meier 63921b16a5 Merge pull request #3002 from dagar/cmake_fixes
px4airframes split mixed windows path with os.path.split
2015-10-15 22:42:48 +02:00
Daniel Agar 7d63920f25 srcparser.py split mixed windows path with os.path.split
-fixes #2997
2015-10-15 14:50:35 -04:00
Lorenz Meier bb2e5b7c84 Update listener to also support double precision 2015-10-15 12:31:56 +02:00
Lorenz Meier b126f00052 Merged master 2015-10-14 22:07:49 +02:00
Daniel Agar adc59b9e71 cmake improve submodule handling 2015-10-14 12:13:33 -04:00
Daniel Agar 5865dc6434 cmake add libuavcan as subdirectory
-move uavcan submodule to src/modules/uavcan/libuavcan
-adding libuavcan as a subdirectory simplifies inheriting all compile
flags and include paths
2015-10-14 02:37:00 -04:00
Daniel Agar 4e4d10d8b9 generate_listener.py don't depend on platform dependant slash 2015-10-14 01:56:17 -04:00
Daniel Agar e8fd711a5c uorb generate interally set required paths 2015-10-14 01:56:15 -04:00
Ben Dyer 7dacb835b9 Fixing build on targets without the UAVCAN module 2015-10-14 00:50:07 +11:00
Ben Dyer 148148b6a0 Update libuavcan and add missing PRI64 define 2015-10-13 21:50:23 +11:00
Lorenz Meier 348c480feb Improve formatting of topic listener output 2015-10-10 12:39:05 +02:00
Lorenz Meier acd7235880 FMUv2: Add topic listener 2015-10-10 12:27:45 +02:00
Thomas Gubler 2bbb1ad35f python3 fixes 2015-10-10 11:03:04 +02:00
Andreas Antener c26f980f37 added airframe extension .hil 2015-10-06 15:15:37 +02:00
Andreas Antener 77b8ed6717 check supported extensions for rc.autostart generation 2015-10-06 15:15:37 +02:00
Lorenz Meier b222a83076 Merge branch 'master' of github.com:PX4/Firmware into cmake-2 2015-10-02 11:00:31 +02:00
Matthias Grob 5191731f22 make romfs pruner script windows compatible
When we open the file handle to write back the lines in binary mode, we don't change the line endings but instead leave them as they were before. This is impotant for Windows users as Python on Windows otherwise adds CRLF endings to the parameter files and they can't be correctly parsed by NuttX any more.
2015-10-01 09:59:30 +02:00
James Goppert e38eba0934 cmake: Fix for posix sitl. 2015-09-20 11:17:31 -04:00
Lorenz Meier 0973649eb7 POSIX: Provide lldb run target configuring lldb correctly 2015-09-20 15:06:55 +02:00
Lorenz Meier fe644fb3e0 Merge branch 'cmake-2' into cmake-2-pthread 2015-09-20 12:56:14 +02:00
Lorenz Meier 4de777fd2f Topic listener: Fix code generation 2015-09-20 12:55:18 +02:00
Lorenz Meier 672a6d8f9b Add debug targets to SITL run 2015-09-20 12:54:22 +02:00
Lorenz Meier 6ef94e0dfb Merged master into cmake-2 2015-09-20 10:33:39 +02:00
Lorenz Meier e6cbee74bf Tools: Fix param code generation to generate correct union access based on type. Generate #error C-code for unknown types to prevent silent failure. 2015-09-14 00:16:49 +02:00
Lorenz Meier b528ecaa93 SITL RUN: Fix paths 2015-09-12 17:02:42 +02:00
Lorenz Meier d2f7f6e7a9 Update SITL run tool 2015-09-12 15:44:16 +02:00
Thomas Gubler e713f689bf has_key is not available in python > 3.0
Replacing with 'in'

See https://docs.python.org/3.1/whatsnew/3.0.html#builtins
2015-09-12 15:39:28 +02:00
Lorenz Meier 7f41238f70 POSIX: Add usleep shell command, add cout flush to exit command 2015-09-12 13:35:48 +02:00
Lorenz Meier c5d1cb1cbc Params: Remove linker black magic and turn params into flat global struct 2015-09-12 11:26:20 +02:00
Mark Charlebois 8369e33245 cmake: Fixes for qurt and nuttx
Added px4_parameters.c to nuttx executable src list.
Minor syntax fix in Tools/px_generate_params.py for semicolon.
Added handling of PX4_MAIN which was not yet supoprted in the
cmake build.
Fixed include quotes in muorb_test_example.cpp

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 18:32:44 -07:00
Lorenz Meier 31e5697cea OS X: Make param section generation compatible 2015-09-11 21:58:32 +02:00
Mark Charlebois fc3acdb2c1 cmake: param refactoring
Use a struct to contain all the parameters so the ordering in
memory is not machine dependent.

Add number of parameters to the param struct. The struct actually
allows direct accessing by the member name if desired.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 12:41:00 -07:00
Mark Charlebois b9ef1ee6ed param: Build param without linker script
Changed to enable the posix_sitl_simple target to build and run

param show *

without using a linker script

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-09-11 02:33:42 -07:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Lorenz Meier 0b4f88a490 Enforce code style for more modules 2015-09-06 12:07:27 +02:00
Lorenz Meier 28bbbd1563 Enforce code style for src/include 2015-09-06 12:03:09 +02:00
Lorenz Meier e809571841 Enable code style enforcement for more modules 2015-09-06 12:00:30 +02:00
Lorenz Meier aa88888c6a Enabled code style enforcement for passing modules 2015-09-05 22:18:38 +02:00
Daniel Agar 0145f95e7d check_code_style only enforce src/systemcmds and src/examples 2015-09-05 12:20:59 -04:00
Daniel Agar 66cd25d3ef require Artistic Style Version 2.05.1 2015-09-05 12:12:52 -04:00
Daniel Agar 3b0390d432 cleanup 'make check_format and exclude directories not ready for formatting
-uORB, sdlog2, vtol_att_control, ekf_att_pos_estimator
2015-09-05 12:12:52 -04:00
Daniel Agar 33e2b5518f fix_code_style.sh requires bash 2015-09-05 12:12:52 -04:00
mswingtra 68e726ce37 px4_param_def to QGC fix 2015-08-28 11:18:52 +02:00
Lorenz Meier 17287ddd2c POSIX: Fix start script path 2015-08-28 10:48:38 +02:00
Mark Charlebois 3a47434749 Fixes for qurt HIL build
Workaround required Eigen downgrade to 3.2. Hexagon toolchain does
not support C++11 features of newest version of Eigen.

Running make qurt_fixup will downgrade and patch Eigen for qurt.
Running make restore will revert the patch and do a git submodule update
to restore the expected Eigen version.

Added a "restore" target to undo qurt_fixup

Before doing a qurt build run:

    make qurt_fixup

That will downgrade Eigen to 3.2 and apply the require patch.
To build another target after downgrading:

    make restore

Them make the desired target (other than qurt).

Fixed type used in orb_priority to be consistent with the code
(int* was used in declaration but int32_t* used in code)

Removed unused class member variable in sensors.cpp

Added cmake fix for unit tests. The location of px4_log.c changed.

Fixed the qurt drv_hrt.c implementation to use us instead of ms for time resolution

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with
duplicate files. It was moved out of common because it is not used by qurt.

Changed PX4_DEBUG to PX4_WARN when checking for the error condition for store_poll_waiter in vdev.cpp

Updated the px4_log.h file to make calls to the qurt_log functions.
The qurt_log function is defined in the platforms/qurt layer.

Added an option to control starting the commander module in HIL mode.

Moved the flight specific drivers to the configuration file instead of adding them
to the common tool chain file because HIL mode does not need them.

Added the uorb Subscriber and Publisher classes

Call PX4_ISFINITE macro instead of isfinite().

Added px4_led.c to nuttx platform layer
Use the posix version of px4_led.c for nuttx so we don't end up with duplicate files.
It was moved out of common because it is not used by qurt.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-25 21:59:01 -07:00
Lorenz Meier 21d1b4ba2e Merged beta into master 2015-08-22 14:06:01 +02:00
Simon Wilks 4eef65f313 Enable ms5611 driver and fix build errors. 2015-08-18 23:01:52 +02:00
Andreas Antener 9ad5dfc928 moving astyle options into astyle options file, adding sublime settings for astyle formatter plugin 2015-08-18 11:40:01 +02:00