Files
paparazzi/sw/airborne/math
Gautier Hattenberger 68ea2b661e
Issues due date / Add labels to issues (push) Has been cancelled
Doxygen / build (push) Has been cancelled
[wls] return when a solution is found instead to reach max iter (#3617)
This bug is intruduced by #3320. Without the return, wls only ends after
reaching max_iter. In simulation, only 1 iteration is needed to reach a
solution in flight, while max iter is set to 10.

https://github.com/paparazzi/paparazzi/pull/3320/changes#diff-fd1514a7b2a74afb97095b63a4d2d7986c427e9d939db0a36eb68620d9e351c1R273
2026-03-17 10:00:43 +01:00
..
2018-09-12 15:02:20 +02:00
2019-02-07 11:05:03 +01:00
2025-10-20 16:57:24 +02:00
…

Math library

Math lib used in all airborne code of paparazzi.

See also the @ref math docs.

HOWTO install a shared library to use in other projects

  1. Build library: in sw/airborne/math, type make shared_lib

The default build directory is var/build/math, to change it: BUILDDIR=<your_build_dir> make shared_lib

  1. Install library: in this folder, type make install_shared_lib

the default install dir is /usr/local and will install files in

  • /usr/local/lib
  • /usr/local/lib/pkgconfig
  • /usr/local/include/pprz

to change the install dir: PREFIX=<your_install_dir> make install_shared_lib

note that the default install dir needs root privilege and is usually called via sudo make shared_lib

HOWTO use the shared library

  1. with pkg-config --cflags --libs pprzmath

  2. by hand:

  • LIBS: -L<prefix>/lib -lpprzmath
  • CFLAGS: -I<prefix>/include/pprz

"make clean" will only clean the build directory