Commit Graph

65 Commits

Author SHA1 Message Date
Beat Küng e061842219 posix main: only try to generate symlinks if data path argument given
if not given, the dirs are either not needed (eg RPI) or assumed to
exist already
2016-09-30 13:50:51 +02:00
Beat Küng 0da44b7166 posix main: make <data_directory> argument optional, default to CWD 2016-09-06 10:41:36 +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
James Goppert 818840b576 Path cleanup, low impact changes (#5340)
* Low impact changes from path_cleanup branch.

This is a step towards minimizing the diff with path_cleanup branch.

* Update ecl.

* Revert matrix update.

* Revert ecl and matrix.

* Update sitl gazebo.

* Revert sitl_gazebo and matrix changes.
2016-08-18 15:37:23 -04: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
Julian Oes 544ea72d4c Snapdragon: set CPUs scaling to performance mode
Sdlog2 misses least updates when the CPU scaling governor is set at
maximum performance. This is not optimal to save power but the best
effort until there is a RT patched kernel on Snapdragon.
2016-07-07 16:48:27 +02:00
Beat Küng 513900fb16 printf log: colorize output under POSIX & tty output according to the log level 2016-06-09 15:25:11 +02:00
Beat Küng 03f7ee9b12 posix shell: do not complaining about non-existing command muorb on SITL exit
Namely the following output after Ctrl-C:
Invalid command: muorb
type 'help' for a list of commands
2016-06-09 15:25:11 +02:00
Beat Küng 1b5edcabec posix shell: avoid printing non-printable characters (like Ctrl-C) 2016-06-09 15:25:11 +02:00
Beat Küng 5b811facab posix console/scripts: treat lines starting with # as comment 2016-06-09 15:25:11 +02:00
Beat Küng a7c7a46be8 posix console: output newline before process_line
Before the output looked like this:
pxh> logger statusINFO  [logger]   Running
INFO  [logger]   Wrote 0.13 MiB (avg  0.72 KiB/s)
INFO  [logger]   Since last status: dropouts: 0 (max len: 0.000 s), max used buffer: 7176 / 12288 B
2016-06-09 15:25:11 +02:00
Julian Oes 4cb073a48b POSIX main: get the newlines right 2016-06-07 22:10:56 +02:00
Julian Oes 9c9f22fd40 main: don't add a newline after every line 2016-06-07 22:10:56 +02:00
Lorenz Meier f204a145c7 POSIX: Improve console management 2016-05-13 10:35:19 +02:00
Lorenz Meier b2029f7a35 POSIX: Fix code style of main app 2016-04-05 19:09:30 -07:00
Lorenz Meier 0baa625681 Adjustements and improvements in the simulation interface 2016-04-05 19:09:30 -07:00
Julian Oes e0db3c7411 POSIX main: astyle 2016-02-19 16:59:48 +01:00
Julian Oes 10afd4abb4 posix main: tell us which command failed 2016-02-19 16:59:48 +01:00
Mark Charlebois a844619b35 Fixed terminal when exiting mainapp
mainapp was not restoring the original terminal setttings on exit

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:47 +01:00
Julian Oes 41269468f2 POSIX main: get rid of some leftover printfs 2016-02-19 16:59:46 +01:00
Julian Oes bfd37c4458 POSIX main: set exit flag and exit gracefully
On Control+C, 'muorb stop' is now always executed, however this
shouldn't break POSIX SITL where the command is just not available.
2016-02-19 16:59:46 +01:00
Julian Oes 9d875a7e67 POSIX main: always add newline after a command 2016-02-19 16:59:46 +01:00
Julian Oes 166f6e2e7a posix sitl: bring the pxh back 2016-01-25 21:22:10 +01:00
Julian Oes 6ce5e1be49 posix sitl: don't exit if a command fails 2016-01-25 19:03:48 +01:00
Stefan 41abe9221e Update main.cpp
spelling mistakes
2016-01-11 08:37:43 +01:00
Lorenz Meier d0735eae25 Fix SITL Linux compile error 2015-12-22 13:28:42 +01:00
Lorenz Meier e18c497513 POSIX: Add missing header 2015-12-22 10:18:32 +01:00
Lorenz Meier 23e9693641 Allow chrooting the application 2015-12-22 09:48:11 +01:00
Lorenz Meier e7d2295565 Bumped max SITL args to 10 2015-11-25 22:01:35 +01:00
Lorenz Meier 5a0c09c98d Merge branch 'master' into driver_framework 2015-11-22 13:59:01 +01:00
Roman de22fd4b4b SITL shell: do not save command if it replicates the previous one 2015-11-22 09:40:17 +01:00
Lorenz Meier 7c7ef7f767 Fix system boot commandline handling 2015-11-21 17:10:43 +01:00
Lorenz Meier 4576e515e2 Merge branch 'master' into driver_framework 2015-11-20 09:46:25 +01:00
Lorenz Meier 1f33451690 POSIX: Fix code style 2015-11-20 09:46:05 +01:00
Lorenz Meier 12e09d70a9 Merge branch 'master' into driver_framework 2015-11-20 09:24:13 +01:00
Lorenz Meier 3c8a52a72b POSIX shell: Fix enter handling 2015-11-20 09:23:57 +01:00
Lorenz Meier 75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +01:00
Roman 5103ba1c23 implemented better shell for SITL 2015-11-19 09:09:51 +01:00
Mark Charlebois 9074d3dd8e Adding in DriverFramework
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-10 13:21:13 +01:00
tumbili b081c5c33b added signal handler for floating point exceptions 2015-10-23 14:00:24 +02:00
Lorenz Meier d60f201dc8 POSIX: Fix formatting 2015-10-19 13:35:46 +02:00
Lorenz Meier 4dce80423c POSIX: Do not exit script on error 2015-09-16 18:51:31 +02:00
Lorenz Meier e697cabb6a POSIX: Exit on failure if not running as daemon. This is to ensure errors do not go unnoticed during bench testing 2015-09-12 17:12:16 +02:00
Lorenz Meier 12372d7de6 POSIX: Abort script on executable failure 2015-09-12 16:58:14 +02:00
Lorenz Meier 63f9a1e609 POSIX: 1) Really exit on CTRL-C, 2) Clean up boot log, 3) add eye-candy! 2015-09-12 15:45:19 +02:00
Lorenz Meier 779efc1cbc POSIX: Fix shell printing 2015-09-12 12:11:17 +02:00
Lorenz Meier 8d0ecda8c6 Add additional delay to system startup to overcome sensor init noise. Needs a proper solution 2015-09-06 15:53:13 +02:00
Lorenz Meier 54209af679 POSIX: Improve shell so it does not spam the user, enable CTRL-C to actually quit the application. Twiddle the app boot delay to avoid a race with the commander app. Needs a proper fix on the startup sequencing. 2015-09-06 15:37:35 +02:00