-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bash scripting for posix #5162
Bash scripting for posix #5162
Commits on Apr 15, 2017
-
tag_to_version.py: fix Python3 error
subprocess.communicate returns bytes instead of a str which is not the same for Python3. Therefore, we need to decode the bytes.
Configuration menu - View commit details
-
Copy full SHA for bfa6e09 - Browse repository at this point
Copy the full SHA bfa6e09View commit details -
cmake: remove folder src/firmware
The folder src/firmware was not intuitive. Why would the binaries for SITL be inside a src and why even inside a src/firmware folder. Also, the rootfs was put there which made it even more confusing. The CMakeLists.txt files are moved into cmake/ and get now called from the main CMakeLists.txt.
Configuration menu - View commit details
-
Copy full SHA for 1dffbb4 - Browse repository at this point
Copy the full SHA 1dffbb4View commit details -
qshell: support for return value
Instead of just sending commands, qshell will now also wait until the command has finished on QURT and sent back a return value. This will allow all modules on the DSP side to be spawned from the Linux side meaning that we only need one config/startup file instead of two.
Configuration menu - View commit details
-
Copy full SHA for 15d7fec - Browse repository at this point
Copy the full SHA 15d7fecView commit details -
adb_upload: create folders before pushing
Previously the script failed if the folder on the destination was not already existing. This therefore makes pushing easier.
Configuration menu - View commit details
-
Copy full SHA for 8c4709a - Browse repository at this point
Copy the full SHA 8c4709aView commit details -
posix: spawn PX4 modules in bash
This adds the possibility to spawn PX4 modules out of bash. Basically, the main executable can now be started as a server/daemon or as a client. The server replaces the existing functionality of the main exe with the pxh shell, however, it also opens a pipe that clients can talk to. Clients can run or spawn PX4 modules or commands by connecting to the server over the pipe. They clients will get the stdout and return value of their commands via a client specific pipe back. This work will allow to start all modules using a bash script similar to the way it is done in NuttX where the NuttShell scripts the startup scripts and starts the modules.
Configuration menu - View commit details
-
Copy full SHA for 64b4dd9 - Browse repository at this point
Copy the full SHA 64b4dd9View commit details -
SITL: use new client shell in SITL
This is a first step to use the new shell capabilities for SITL. The new startup bash script rcS merges (and therefore replaces) the two existing scripts rcS_gazebo_iris and rcS_jmavsim_iris. More cleanup will be necessary for the rest of the SITL startup scripts.
Configuration menu - View commit details
-
Copy full SHA for 4ba21a5 - Browse repository at this point
Copy the full SHA 4ba21a5View commit details -
Snapdragon: use new shell to start all modules
Instead of different mainapp.config and px4.config files, we can now use a unified rcS bash script which starts all the modules based on parameters, mainly the SYS_AUTOSTART param.
Configuration menu - View commit details
-
Copy full SHA for 0978f5e - Browse repository at this point
Copy the full SHA 0978f5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b2199c - Browse repository at this point
Copy the full SHA 8b2199cView commit details -
pxh: argv needs to end with a nullptr
The comment was wrong that argv needs an additional 0 termination. Instead it needs a nullptr at the end.
Configuration menu - View commit details
-
Copy full SHA for 0a4b3f9 - Browse repository at this point
Copy the full SHA 0a4b3f9View commit details -
px4_posix_tasks: variable cleanup
The px4_task_spawn_cmd function got a cleanup while debugging, however, no functional changes.
Configuration menu - View commit details
-
Copy full SHA for fc10b38 - Browse repository at this point
Copy the full SHA fc10b38View commit details -
Snapdragon: move some drivers to 4100 config
These drivers are supported by the community, so they go into the 4100 config.
Configuration menu - View commit details
-
Copy full SHA for aa31172 - Browse repository at this point
Copy the full SHA aa31172View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8145163 - Browse repository at this point
Copy the full SHA 8145163View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c7842f - Browse repository at this point
Copy the full SHA 1c7842fView commit details -
Configuration menu - View commit details
-
Copy full SHA for acfaaba - Browse repository at this point
Copy the full SHA acfaabaView commit details -
Configuration menu - View commit details
-
Copy full SHA for af28f1f - Browse repository at this point
Copy the full SHA af28f1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4656d4a - Browse repository at this point
Copy the full SHA 4656d4aView commit details -
posix main: some clarifications in comment (it's the symlinks not the…
… script aliases)
Configuration menu - View commit details
-
Copy full SHA for cc07468 - Browse repository at this point
Copy the full SHA cc07468View commit details -
cmake: remove new install command again
This one was probably wrong and untested. Installing needs revisiting.
Configuration menu - View commit details
-
Copy full SHA for fcfb8da - Browse repository at this point
Copy the full SHA fcfb8daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 631f21f - Browse repository at this point
Copy the full SHA 631f21fView commit details -
POSIX: copy init and mixer files for SITL
Instead of using non-working install commands, the mixer and startup files are now copied as part of the build in cmake.
Configuration menu - View commit details
-
Copy full SHA for 652b5f7 - Browse repository at this point
Copy the full SHA 652b5f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b1f218 - Browse repository at this point
Copy the full SHA 0b1f218View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce5f1a1 - Browse repository at this point
Copy the full SHA ce5f1a1View commit details -
chroot is removed because it hasn't been used anywhere and seems untested.
Configuration menu - View commit details
-
Copy full SHA for 0dda179 - Browse repository at this point
Copy the full SHA 0dda179View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f06383 - Browse repository at this point
Copy the full SHA 4f06383View commit details -
px4_daemon: fail if the client pipe already exists
The client pipe is supposed to be specific (by UUID), so the path shouldn't exist already.
Configuration menu - View commit details
-
Copy full SHA for 20edbc2 - Browse repository at this point
Copy the full SHA 20edbc2View commit details -
history: limit the number of history entries
This is a protection to avoid filling the memory if we are entering a lot of commands (e.g. auto-generated).
Configuration menu - View commit details
-
Copy full SHA for bc9aff7 - Browse repository at this point
Copy the full SHA bc9aff7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bcc27d - Browse repository at this point
Copy the full SHA 4bcc27dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dd0420 - Browse repository at this point
Copy the full SHA 7dd0420View commit details -
px4_daemon: fix client parsing
Sometimes the client ends up reading more than one packet in one read. The parsing is not made for this and would require a (ring)buffer for it. The solution of this commit just reads as much as needed from the pipe which avoids having to do buffering and parsing.
Configuration menu - View commit details
-
Copy full SHA for 06e61aa - Browse repository at this point
Copy the full SHA 06e61aaView commit details -
posix: changes sitl_run.sh and main.cpp cleanup
This changes the paths in sitl_run.sh quite a bit to allow the px4 binary to run in the rootfs directory which should make it convenient and very close to the NuttX variant. Also main.cpp got a big cleanup after the big rebase with some conflicts. Quite some functionality was removed but it has yet to be seen if it needs to be re-added.
Configuration menu - View commit details
-
Copy full SHA for e93f289 - Browse repository at this point
Copy the full SHA e93f289View commit details -
px4_log: cleanup log levels, now they make sense
Before DEBUG and INFO log levels where inverted which didn't make much sense in my eyes.
Configuration menu - View commit details
-
Copy full SHA for de9b9a6 - Browse repository at this point
Copy the full SHA de9b9a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1061849 - Browse repository at this point
Copy the full SHA 1061849View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1324f03 - Browse repository at this point
Copy the full SHA 1324f03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0df7fff - Browse repository at this point
Copy the full SHA 0df7fffView commit details -
Configuration menu - View commit details
-
Copy full SHA for de2d91c - Browse repository at this point
Copy the full SHA de2d91cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81dcaa5 - Browse repository at this point
Copy the full SHA 81dcaa5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bc220e - Browse repository at this point
Copy the full SHA 4bc220eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0182f0 - Browse repository at this point
Copy the full SHA d0182f0View commit details -
SITL init: more models, more options
- Support for different models using the unified startup script rcS. - Support to choose the estimator by setting the environment variable PX4_ESTIMATOR. - Support to choose the logger by setting the environment variable PX4_LOGGER.
Configuration menu - View commit details
-
Copy full SHA for 1301f62 - Browse repository at this point
Copy the full SHA 1301f62View commit details -
Configuration menu - View commit details
-
Copy full SHA for da51854 - Browse repository at this point
Copy the full SHA da51854View commit details -
Instead of having all of the C++ code inside the Python file it is nicer to have a separate template file with the C++ headers, etc.
Configuration menu - View commit details
-
Copy full SHA for 8ee8d79 - Browse repository at this point
Copy the full SHA 8ee8d79View commit details -
px4_log: add PX4_INFO_RAW for raw printfs
This allows to do custom formatting but is still transported over sockets to clients.
Configuration menu - View commit details
-
Copy full SHA for 449673b - Browse repository at this point
Copy the full SHA 449673bView commit details -
Configuration menu - View commit details
-
Copy full SHA for df4abc4 - Browse repository at this point
Copy the full SHA df4abc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29c1fba - Browse repository at this point
Copy the full SHA 29c1fbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bacf556 - Browse repository at this point
Copy the full SHA bacf556View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfc2987 - Browse repository at this point
Copy the full SHA dfc2987View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18ad136 - Browse repository at this point
Copy the full SHA 18ad136View commit details -
listener: big refactor of the generator
Hopefully this makes it easier to read and change in the future.
Configuration menu - View commit details
-
Copy full SHA for ff92d1e - Browse repository at this point
Copy the full SHA ff92d1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c647b6a - Browse repository at this point
Copy the full SHA c647b6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2efcf3 - Browse repository at this point
Copy the full SHA d2efcf3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b9ac84 - Browse repository at this point
Copy the full SHA 6b9ac84View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4499a4 - Browse repository at this point
Copy the full SHA c4499a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for fde59e6 - Browse repository at this point
Copy the full SHA fde59e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 267d421 - Browse repository at this point
Copy the full SHA 267d421View commit details -
Configuration menu - View commit details
-
Copy full SHA for d605b54 - Browse repository at this point
Copy the full SHA d605b54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 355dd03 - Browse repository at this point
Copy the full SHA 355dd03View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccebb53 - Browse repository at this point
Copy the full SHA ccebb53View commit details -
Configuration menu - View commit details
-
Copy full SHA for a34536a - Browse repository at this point
Copy the full SHA a34536aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24aea97 - Browse repository at this point
Copy the full SHA 24aea97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 906297b - Browse repository at this point
Copy the full SHA 906297bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 321e22f - Browse repository at this point
Copy the full SHA 321e22fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6de3973 - Browse repository at this point
Copy the full SHA 6de3973View commit details -
unitests: reduce dependencies of param test
This makes the unit test compile and link again after the bash changes.
Configuration menu - View commit details
-
Copy full SHA for 0721aec - Browse repository at this point
Copy the full SHA 0721aecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 653d459 - Browse repository at this point
Copy the full SHA 653d459View commit details -
SITL: arg change for sitl_run.sh to use rcS_test
This allows to use a custom startup file for testing.
Configuration menu - View commit details
-
Copy full SHA for 054006a - Browse repository at this point
Copy the full SHA 054006aView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbb667c - Browse repository at this point
Copy the full SHA fbb667cView commit details -
SITL: implement shutdown command as systemcmd
The shutdown command needs to be a proper systemcmd, otherwise the alias and symlink generation doesn't work and we end up calling shutdown of the host computer which is to be avoided.
Configuration menu - View commit details
-
Copy full SHA for c0f092f - Browse repository at this point
Copy the full SHA c0f092fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03702b7 - Browse repository at this point
Copy the full SHA 03702b7View commit details -
px4fmu_test: use normal quad x mixer
There is no good reason to use a specific test mixer, except more cmake code around it. Therefore just use the same mixer as default, and at some point px4fmu_test and px4fmu_default can get merged
Configuration menu - View commit details
-
Copy full SHA for 052372a - Browse repository at this point
Copy the full SHA 052372aView commit details -
POSIX: cleanup, dir and symlink fixes
This cleans up the logic behind the symlinking and creating directories.
Configuration menu - View commit details
-
Copy full SHA for fd3d8ba - Browse repository at this point
Copy the full SHA fd3d8baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 718c5be - Browse repository at this point
Copy the full SHA 718c5beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a39de9 - Browse repository at this point
Copy the full SHA 3a39de9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecac961 - Browse repository at this point
Copy the full SHA ecac961View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46e89f6 - Browse repository at this point
Copy the full SHA 46e89f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9c863b - Browse repository at this point
Copy the full SHA b9c863bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 16c89d8 - Browse repository at this point
Copy the full SHA 16c89d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bcb1ea - Browse repository at this point
Copy the full SHA 3bcb1eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a2f52c - Browse repository at this point
Copy the full SHA 1a2f52cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a079b4 - Browse repository at this point
Copy the full SHA 1a079b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff7b65a - Browse repository at this point
Copy the full SHA ff7b65aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89e4205 - Browse repository at this point
Copy the full SHA 89e4205View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0195b9 - Browse repository at this point
Copy the full SHA f0195b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7df0716 - Browse repository at this point
Copy the full SHA 7df0716View commit details -
This was fine with cmake 3.6 but did not work with cmake 3.2.2
Configuration menu - View commit details
-
Copy full SHA for 2a1ff88 - Browse repository at this point
Copy the full SHA 2a1ff88View commit details -
cmake: use cp instead of cmake -E copy
cmake -E copy does not support copying multiple files with versions < 3.5. Therefore, just use cp for now.
Configuration menu - View commit details
-
Copy full SHA for 171efb3 - Browse repository at this point
Copy the full SHA 171efb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bd8bc8 - Browse repository at this point
Copy the full SHA 3bd8bc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78073b2 - Browse repository at this point
Copy the full SHA 78073b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5eedfc9 - Browse repository at this point
Copy the full SHA 5eedfc9View commit details
Commits on Apr 17, 2017
-
Configuration menu - View commit details
-
Copy full SHA for b1b909e - Browse repository at this point
Copy the full SHA b1b909eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bd7850 - Browse repository at this point
Copy the full SHA 9bd7850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 660df1d - Browse repository at this point
Copy the full SHA 660df1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5791463 - Browse repository at this point
Copy the full SHA 5791463View commit details