Skip to content
Snippets Groups Projects
  1. Nov 28, 2018
  2. Nov 27, 2018
  3. Nov 26, 2018
  4. Nov 25, 2018
  5. Nov 24, 2018
    • Mara Bos's avatar
      3c660acc
    • Mara Bos's avatar
      Add dynamic modules on Posix. · d13836eb
      Mara Bos authored
      You can now add `DYNAMIC` as an option to `px4_add_module`, which will
      cause that module to no longer be compiled into the px4 executable, but
      instead produce a separate shared library file, which can be loaded and
      executed with the new `dyn` command:
      
          pxh> dyn ./hello.px4mod start
      
      This will load the shared object file `hello.px4mod` if it wasn't
      already loaded, and execute its main function with the given arguments.
      d13836eb
  6. Nov 23, 2018
    • Mara Bos's avatar
      Always use FILE* for standard output. · e9fb17c5
      Mara Bos authored
      The threads running commands for clients through the Posix daemon used
      to write to a char buffer through snprintf (etc.) which was then written
      directly to the file descriptor, whereas in the other case printf
      (etc.) was used to write to stdout (FILE*). Both versions used some
      macro's and repeated code to have the same output.
      
      This change unifies these two cases by using a FILE* in both cases. The
      (line) buffering is done by the standard C library's implementation
      (just like with stdout), and px4_log.c now uses the same code in all
      cases (using fprintf, etc.) for printing (colored) output.
      e9fb17c5
Loading