Commit Graph

52 Commits

Author SHA1 Message Date
Beat Küng 1eca97757c sitl_run.sh: fix $rootfs not set (needed for efk2 replay) 2016-09-29 10:53:33 +02:00
Carlo Wood 03d176d097 Bug fixes, typos, indentation.
Over time I made a few changes unrelated to what I'm really working on.
These changes are hereby committed first. The bug fixes are related to
what I'm doing in that I need them to be fixed for future commits.

Tools/sitl_run.sh: rename label to rcS_dir and fix usage help.
cmake/common/px4_base.cmake: Remove the check on OUT_UNPARSED_ARGUMENTS,
  and a few typos and indentation issues.
cmake/configs/posix_sitl_replay.cmake: Set the correct variable
  (config_sitl_rcS_dir) to the correct directory.
cmake/nuttx/px4_impl_nuttx.cmake: typos and indentation issues,
  and removal of a redundant FORCE (INTERNAL implies FORCE).
cmake/posix/px4_impl_posix.cmake: typos and indentation issues.
cmake/qurt/px4_impl_qurt.cmake: typos and indentation issues.
src/modules/mavlink/mavlink_ftp.cpp : possible strict-aliasing breakage.

NOTES

The second argument passed to sitl_run.sh is the value of
config_sitl_rcS_dir. This fact is missing from the usage help.
I renamed 'label' to 'rcS_dir' to better reflect this.
Also, for the 'replay' config the wrong variable was set causing
the call to sitl_run.sh to skip an argument and fail (ie the
debugger was passed as rcS_dir and so on).

The check on OUT_UNPARSED_ARGUMENTS in px4_parse_function_args
basically causes every passed IN variable to be REQUIRED and is
therefore a bug. The test for the presence of the REQUIRED arguments
follows directly after and is sufficient for this job. This bug went
unnoticed because currently every argument to OPTIONS, ONE_VALUE,
and MULTI_VALUE is actually passed to the function(s) calling
px4_parse_function_args (them being REQUIRED or not).

The changes in mavlink_ftp.cpp are to avoid a possible aliasing bug
and (mostly) to avoid the compiler warning/error: dereferencing type-
punned pointer will break strict-aliasing rules [-Werror=strict-aliasing].
2016-09-13 16:31:08 +02:00
Daniel Agar 31ddf6bdd9 sitl_run.sh use full path to jmavsim_run.sh 2016-09-13 11:30:38 +02:00
Beat Küng e7afecb544 Tools: add separate jmavsim_run.sh script
It is useful to run jmavsim separately, for example when debugging mainapp
separately, or running some other external tool on mainapp (like heap
analysis)
2016-09-13 11:30:38 +02:00
Lorenz Meier f511d49cc2 Improvements to SITL to make paths more flexible. (#5181) (#5255)
* Path cleanup for SITL.

* Restructured sitl scripts dir.

* Set integration tests to use ekf2 for vtol.

* Fix sitl paths for mac.
2016-08-25 21:47:45 +02:00
Julian Oes 14ed65f0e4 sitl_run.sh: use ps instead of jps (#5376)
The tool jps does not seem to be available on macos Java.
2016-08-24 17:07:14 +02:00
Lorenz Meier 102f5b54d7 Revert "Improvements to SITL to make paths more flexible. (#5181)"
This reverts commit 699b6a2cb3.
2016-08-05 21:29:49 +02:00
James Goppert 699b6a2cb3 Improvements to SITL to make paths more flexible. (#5181) 2016-08-05 06:23:59 -04:00
James Goppert b6a9ff756c Rename mainapp to px4. 2016-07-29 11:05:01 +02:00
Daniel Agar d804f5727e run tests in posix sitl with gazebo 2016-05-13 13:01:42 +02:00
Andreas Antener cbc94fbe8c first attempt to run mavros tests in new sitl environment 2016-04-20 11:05:29 +02:00
Lorenz Meier 55e4e75a4f SITL: Generate SDF from xacro on every build 2016-04-08 18:20:59 -07:00
Lorenz Meier 079151b3fe New strategy to build and run jMAVSIM 2016-04-05 19:09:29 -07:00
Roman 1ce99e3b96 ekf2 replay: some cosmetics 2016-04-05 21:24:11 +02:00
Roman bd4a0e30de ekf2 replay: allow user to change parameters 2016-04-05 21:24:11 +02:00
Lorenz Meier 34b6354fa6 Expand SITL run 2016-02-27 11:48:31 +01:00
Lorenz Meier 23e9693641 Allow chrooting the application 2015-12-22 09:48:11 +01:00
Lorenz Meier 8cc54ac661 SITL run: Request best scheduling for SITL processes - next up is lockstep 2015-12-01 13:01:23 +01:00
Lorenz Meier fb24a54ca4 SITL run: Always execute cleanup action 2015-11-23 13:51:18 +01:00
Lorenz Meier 23cfe5c41f SITL run: Abort on first error 2015-11-23 13:38:05 +01:00
Lorenz Meier 4ae15e3d84 SITL run: Better Gazebo output, less CMake warnings 2015-11-23 12:40:33 +01:00
Lorenz Meier a4a9ff7046 Fix debug targets for sitl run 2015-11-21 17:43:07 +01:00
tumbili 2f0b24feab cmake: replace vtol model with tailsitter model 2015-11-18 16:11:10 +01:00
Youssef Demitri 199f6478ee enable online model lookup in gazebo 2015-11-13 16:29:26 +01:00
jgoppert 68e4b33167 Added valgrind to sitl. 2015-11-07 11:49:58 -05:00
Lorenz Meier 3d13e771a8 Support runs without simulation 2015-10-30 16:33:19 +01:00
Lorenz Meier a394dd5b0d Add gazebo, gazebo_iris and gazebo_vtol targets 2015-10-29 10:35:35 +01:00
tumbili 218f11f54b kill gazebo properly 2015-10-27 13:14:17 +01:00
jgoppert 4241e526aa Updated sitl scripts for LPE. 2015-10-26 16:03:22 -04:00
tumbili 1767acd1e9 use correct startup scipt depending on simulator 2015-10-26 12:24:27 +01:00
James Goppert dab48553c7 Added export to gazebo variables. 2015-10-25 19:25:18 -04:00
Lorenz Meier 9cbcca1f49 Fix Gazebo handling 2015-10-25 18:25:37 +01:00
jgoppert 7d9c6592fd Remove bash debugging. 2015-10-25 17:58:16 +01:00
jgoppert f831cc6cfa Don't kill if jmavsim not found. 2015-10-25 17:58:16 +01:00
jgoppert a23ba97f3f sitl bash fix for pid recording 2015-10-25 17:58:16 +01:00
jgoppert a688c89460 Fixed kill command for java. 2015-10-25 17:58:16 +01:00
jgoppert c520a678a6 More intelligent jmavsim killing. 2015-10-25 17:58:16 +01:00
jgoppert 21cf3e0cce This kills some annoying processes that might still be around. 2015-10-25 17:58:16 +01:00
jgoppert 0106be3e89 Added local position estimator. 2015-10-24 20:34:33 +02:00
Lorenz Meier 292b87fe2c Exit simulator 2015-10-23 23:58:28 +02:00
tumbili 06f5e242d1 support launching gazebo automatically for SITL 2015-10-23 09:33:55 +02:00
Lorenz Meier b61e95adfd Automate SITL run 2015-10-17 17:41:57 +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 672a6d8f9b Add debug targets to SITL run 2015-09-20 12:54:22 +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
Lorenz Meier 17287ddd2c POSIX: Fix start script path 2015-08-28 10:48:38 +02:00
Simon Wilks 4eef65f313 Enable ms5611 driver and fix build errors. 2015-08-18 23:01:52 +02:00
Lorenz Meier 52687cb8e1 Rename make sitlrun to make sitl_quad 2015-07-04 07:25:08 -07:00