Skip to content
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

Closed
wants to merge 92 commits into from
Closed

Bash scripting for posix #5162

wants to merge 92 commits into from

Commits on Apr 15, 2017

  1. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    bfa6e09 View commit details
    Browse the repository at this point in the history
  2. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    1dffbb4 View commit details
    Browse the repository at this point in the history
  3. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    15d7fec View commit details
    Browse the repository at this point in the history
  4. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    8c4709a View commit details
    Browse the repository at this point in the history
  5. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    64b4dd9 View commit details
    Browse the repository at this point in the history
  6. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    4ba21a5 View commit details
    Browse the repository at this point in the history
  7. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    0978f5e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8b2199c View commit details
    Browse the repository at this point in the history
  9. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    0a4b3f9 View commit details
    Browse the repository at this point in the history
  10. px4_posix_tasks: variable cleanup

    The px4_task_spawn_cmd function got a cleanup while debugging, however,
    no functional changes.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    fc10b38 View commit details
    Browse the repository at this point in the history
  11. Snapdragon: move some drivers to 4100 config

    These drivers are supported by the community, so they go into the 4100
    config.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    aa31172 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8145163 View commit details
    Browse the repository at this point in the history
  13. px4_daemon: use doxygen comments

    bkueng authored and julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    1c7842f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    acfaaba View commit details
    Browse the repository at this point in the history
  15. px4_daemon: \b -> \n in printf

    bkueng authored and julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    af28f1f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    4656d4a View commit details
    Browse the repository at this point in the history
  17. posix main: some clarifications in comment (it's the symlinks not the…

    … script aliases)
    bkueng authored and julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    cc07468 View commit details
    Browse the repository at this point in the history
  18. cmake: remove new install command again

    This one was probably wrong and untested. Installing needs revisiting.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    fcfb8da View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    631f21f View commit details
    Browse the repository at this point in the history
  20. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    652b5f7 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    0b1f218 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ce5f1a1 View commit details
    Browse the repository at this point in the history
  23. POSIX main: remove chroot

    chroot is removed because it hasn't been used anywhere and seems
    untested.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    0dda179 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    4f06383 View commit details
    Browse the repository at this point in the history
  25. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    20edbc2 View commit details
    Browse the repository at this point in the history
  26. 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).
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    bc9aff7 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4bcc27d View commit details
    Browse the repository at this point in the history
  28. px4_daemon: whitespace

    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    7dd0420 View commit details
    Browse the repository at this point in the history
  29. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    06e61aa View commit details
    Browse the repository at this point in the history
  30. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    e93f289 View commit details
    Browse the repository at this point in the history
  31. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    de9b9a6 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    1061849 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    1324f03 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    0df7fff View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    de2d91c View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    81dcaa5 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    4bc220e View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    d0182f0 View commit details
    Browse the repository at this point in the history
  39. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    1301f62 View commit details
    Browse the repository at this point in the history
  40. rcS: fix string comparison

    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    da51854 View commit details
    Browse the repository at this point in the history
  41. listener: use template file

    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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    8ee8d79 View commit details
    Browse the repository at this point in the history
  42. px4_log: add PX4_INFO_RAW for raw printfs

    This allows to do custom formatting but is still transported over
    sockets to clients.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    449673b View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    df4abc4 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    29c1fba View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    bacf556 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    dfc2987 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    18ad136 View commit details
    Browse the repository at this point in the history
  48. listener: big refactor of the generator

    Hopefully this makes it easier to read and change in the future.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    ff92d1e View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    c647b6a View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    d2efcf3 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    6b9ac84 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    c4499a4 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    fde59e6 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    267d421 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    d605b54 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    355dd03 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    ccebb53 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    a34536a View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    24aea97 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    906297b View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    321e22f View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    6de3973 View commit details
    Browse the repository at this point in the history
  63. unitests: reduce dependencies of param test

    This makes the unit test compile and link again after the bash changes.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    0721aec View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    653d459 View commit details
    Browse the repository at this point in the history
  65. SITL: arg change for sitl_run.sh to use rcS_test

    This allows to use a custom startup file for testing.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    054006a View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    fbb667c View commit details
    Browse the repository at this point in the history
  67. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    c0f092f View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    03702b7 View commit details
    Browse the repository at this point in the history
  69. 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
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    052372a View commit details
    Browse the repository at this point in the history
  70. POSIX: cleanup, dir and symlink fixes

    This cleans up the logic behind the symlinking and creating directories.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    fd3d8ba View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    718c5be View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    3a39de9 View commit details
    Browse the repository at this point in the history
  73. POSIX: printf fix

    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    ecac961 View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    46e89f6 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    b9c863b View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    16c89d8 View commit details
    Browse the repository at this point in the history
  77. POSIX: fix symlink logic

    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    3bcb1ea View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    1a2f52c View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    1a079b4 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    ff7b65a View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    89e4205 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    f0195b9 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    7df0716 View commit details
    Browse the repository at this point in the history
  84. cmake: fix cmake arguments

    This was fine with cmake 3.6 but did not work with cmake 3.2.2
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    2a1ff88 View commit details
    Browse the repository at this point in the history
  85. 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.
    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    171efb3 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    3bd8bc8 View commit details
    Browse the repository at this point in the history
  87. cmake: fix paths in configs

    julianoes committed Apr 15, 2017
    Configuration menu
    Copy the full SHA
    78073b2 View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    5eedfc9 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2017

  1. Configuration menu
    Copy the full SHA
    b1b909e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9bd7850 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    660df1d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5791463 View commit details
    Browse the repository at this point in the history