Commit Graph

15 Commits

Author SHA1 Message Date
Freek van Tienen 75ee6ebcea [makefile] Remove ffast-math compiler flags (#2852) 2022-04-01 13:29:17 +02:00
Freek van Tienen 009b121cfd [ins] Add EKF2 from the PX4 ECL library (#2402)
* [abi] Add timestamp to AGL and BARO_ABS

* [make] Add support for c++0x for all architectures

* [math] Add air density calculation

* [gps] Add horizontal and vertical position accuracy

* [boards] PX4FMU change default baudrate and add SBUS

* [ins] Add EKF2

* [tests] Add Bebop2 with EKF2

* [nps] Fix jsbsim simulator initialisation and GPS accuracy
2019-04-12 23:12:31 +02:00
Felix Ruess 71cb6564d7 [build] linux: add C include dirs when compiling c++ 2016-07-15 14:02:57 +02:00
Gautier Hattenberger 45b305ab10 [build] add boards specific flags when needed
and activate LTO compilation to reduce code size on small board naze32
2016-04-30 23:16:07 +02:00
Felix Ruess a4c86bd177 [linux] mark object files as precious 2016-03-15 11:56:26 +01:00
Felix Ruess 4907d032bc [build] parallelize and cleanup linux builds 2016-01-30 20:12:23 +01:00
Felix Ruess 0e44f01fa0 [build] use -ggdb3 DEBUG_FLAGS by default
-ggdb3 make slightly bigger .elf files, but allows gdb to understand
macros, which paparazzi uses somewhat extensively.
Make this the default, since it only impacts the size of the debug sections and
not the size of the flashed binary (in the lpc21/stm32 case).
On the linux system we really don't care about these few more bytes...
2015-04-30 18:39:13 +02:00
Felix Ruess f1309a0f34 Merge pull request #1117 from paparazzi/linux_sys_time_thread
Since using SIGALRM to call the sys_tick_handler (via setitimer) can cause problems like interrupting some other syscalls
(i.e. read,write, ioctl), setup a separate thread and use timer_fd instead.
That is a Linux-specific set of functions that presents POSIX timers as file descriptors rather than signals.

If the thread runs with a normal priority it can happen that some timer events are missed (and hence sys_time not updated in time).
So added a function to set a higher prio for that thread (needs root rights or properly set up limits for the user).
In some simple tests no events were missed when running with prio 29 via SCHED_FIFO, even if events would be missed,
the sys_tick_handler is called the appropriate number of times (so that the time is correct again after)...

After these changes also fix some bugs discovered in the ardrone navdata reading.
Reading is now done in a separate thread which waits on a condition variable until the navdata_update event loop has copied the buffer.
2015-03-03 18:10:06 +01:00
Felix Ruess 9189469316 [build system] also include deps for cpp files 2015-03-02 16:19:46 +01:00
Felix Ruess c18355d4a5 [arch/linux] run sys_time thread with higher rt prio 2015-02-23 17:54:10 +01:00
Felix Ruess e9523b9138 [arch/linux] test using timer_fd instead of SIGALRM
and create a separate thread for the sys_tick handling...

seems that some timer event are missed...
2015-02-23 17:19:47 +01:00
Felix Ruess 99ae466fcc [conf] cleanup linux makefiles 2015-02-15 19:13:42 +01:00
Felix Ruess cc95717679 [conf] arm-linux makfile refactor, hf for bbb 2015-02-15 19:13:38 +01:00
Felix Ruess 58ca0696bd [build] use same float_abi for linking as for compiling 2015-01-19 14:40:55 +01:00
Felix Ruess e94c4b3cfc [airborne] rename arch/omap to arch/linux 2014-12-03 18:48:43 +01:00