Commit Graph

409 Commits

Author SHA1 Message Date
Lorenz Meier 292b87fe2c Exit simulator 2015-10-23 23:58:28 +02:00
Lorenz Meier e5d6b1c985 Tools: Parse new decimals tag 2015-10-23 19:53:09 +02:00
tumbili 06f5e242d1 support launching gazebo automatically for SITL 2015-10-23 09:33:55 +02:00
Lorenz Meier 3ac5b3b84e Controllib: Enforce code style 2015-10-22 00:25:37 +02:00
Lorenz Meier c18d4dba01 Merge pull request #3020 from mcharleb/build-fixes
Fixed PRI64 to PRId64 in generate_listener.py
2015-10-19 19:06:32 +02:00
Mark Charlebois 468bac71c2 Fixed PRI64 to PRId64 in generate_listener.py
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-19 10:05:04 -07:00
Lorenz Meier 16b6b3caa2 Enable enforcement 2015-10-19 15:04:12 +02:00
Lorenz Meier 59ee7b23ee Enforce style check on platforms and drivers 2015-10-19 13:36:29 +02:00
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
Pavel Kirienko 05b6a48d1b Merge branch 'beta' into beta_uavacan 2015-08-13 22:06:26 +03:00
Lorenz Meier ce90c40413 Merged beta to master 2015-08-07 14:41:19 +02:00
Lorenz Meier 08c1123c49 Airframes meta scanner: Do not require particular file ending 2015-08-07 14:40:18 +02:00
Lorenz Meier ea7ae7d019 Merged beta into master 2015-08-01 16:58:02 +02:00
Lorenz Meier 50a9e41dbd Fix RC out 2015-07-31 12:17:31 +02:00
Lorenz Meier fde0c65d77 Airframe generator: Also generate autostart listing 2015-07-31 12:10:31 +02:00
Lorenz Meier ac0e645ab6 XML out: Fix mapping of image file names 2015-07-31 11:28:10 +02:00
Lorenz Meier 844c37e7ea Remove static airframe xml file 2015-07-31 11:27:43 +02:00
Lorenz Meier a0b792792f Airframe config parser: Move to combined elif statement 2015-07-29 21:22:41 +02:00
Lorenz Meier 02c439c557 XML output: Inject image paths for GCS presentation 2015-07-29 19:43:37 +02:00
Lorenz Meier 315d2ef87c Add airframe main parser 2015-07-29 19:13:50 +02:00
Lorenz Meier 68aa8fed9e Add airframe config parser 2015-07-29 19:13:28 +02:00
Lorenz Meier 08c50cac5e Add airframe icons 2015-07-29 00:04:11 +02:00
Lorenz Meier 6dff0b5ebf Add airframe icons 2015-07-29 00:04:04 +02:00
Lorenz Meier d6290d8f5d Airframe Configs: Add version field 2015-07-28 23:59:06 +02:00
Lorenz Meier 040787297b Airframe Configs: Add version field 2015-07-28 23:58:50 +02:00
Lorenz Meier 4471b18117 Build system: Add support for airframes config file 2015-07-28 23:57:51 +02:00
Lorenz Meier 455c449a02 Build system: Add support for airframes config file 2015-07-28 23:45:30 +02:00
Don Gagne 55ce4d7b91 Check for duplicates 2015-07-22 09:59:23 -07:00
Don Gagne ad7612220d Validate meta data 2015-07-22 09:01:31 -07:00
Lorenz Meier 1ecbb73394 Merge branch 'beta' 2015-07-12 20:13:20 +02:00
Lorenz Meier 9efc37a3ad Fix topic generation logic for different board targets 2015-07-12 20:13:05 +02:00
Lorenz Meier 3873fe1c00 Merge branch 'beta' 2015-07-12 17:23:20 +02:00
Lorenz Meier 3c3abc078f Topic generation: Fix compile error 2015-07-12 17:23:11 +02:00
Lorenz Meier 2909793094 Merge branch 'beta' 2015-07-12 17:13:46 +02:00
Lorenz Meier 17471eab65 Topic generation: Accept non-existing output directory 2015-07-12 17:13:31 +02:00
Lorenz Meier 7277d390c4 Merge branch 'beta' 2015-07-12 15:52:02 +02:00
Lorenz Meier 9b6259c64f Header generator: Only get active for no output files or when output older than input 2015-07-12 15:51:20 +02:00
David Sidrane 67f1fbf844 Need recusive submodule checkout 2015-07-09 11:34:18 -10:00
Lorenz Meier 936749632b POSIX: Add GDB init 2015-07-05 15:08:40 +02:00
Lorenz Meier 52687cb8e1 Rename make sitlrun to make sitl_quad 2015-07-04 07:25:08 -07:00
Lorenz Meier 39fd3c1d4f Update vehicle config mixer URLs 2015-07-02 22:29:19 +02:00
Lorenz Meier 10eb5de5ce Add vehicle config list for downstream config tools 2015-07-02 22:23:23 +02:00
Mark Charlebois 851a020461 Eagle: posix-arm and qurt changes to support Eagle HW platform
The Eagle HW platform contains both a Krait (ARMv4hf compatible) cpu
cluster and a Hexagon DSP running QuRT.

These changes support the PX4 build for Eagle.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-07-01 09:48:50 -07:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier c402d0c2f7 Commander: updated mag calibration routine, matlab script updates 2015-06-25 14:44:24 +02:00
Lorenz Meier e28e4cb84c Matlab mag: Update to real scaling, resulting fits confirm results 2015-06-25 14:44:23 +02:00
Lorenz Meier a4a6e69521 Matlab tools: Add ellipsoid fit 2015-06-25 14:44:23 +02:00
Lorenz Meier baca229b95 Tools: Add Matlab script to plot mag data 2015-06-25 14:44:23 +02:00
Mark Charlebois 834e3c0587 SITL: updated README and rc.S
Changed rc.S to rcS.

Updated README.md to explain the require directory structure and
where to run mainapp from for SITL to work correctly.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 15:48:12 -07:00
Mark Charlebois 729653ba71 SITL: changed posix_default to posix_sitl
The SITL build is now the default posix build.

The linker script for posix was moved to makefiles/posix.
The rc.S file was moved to posix-configs/SITL/init/
The POSIXTEST board definition is now SITL

To run the SITL test run:

make sitlrun

This replaces the make posixrun target.

The build directory is now Build/posix_sitl.build/

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-15 09:51:07 -07:00
Mark Charlebois c9be962f4c POSIX: Modified posix_run.sh to create rootfs dirs
The default rootfs is now in:

Build/posix_default.build/rootfs/

The subdirs fs/microsd and eeprom are now created if they do not exist.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-11 21:44:21 -07:00