Beat Küng
1a57488ac6
orb: add a separate uORB::Manager::initialize() method
...
This fixes a race condition: uORB::Manager::get_instance() is used in a
multi-thread context, but the singleton initialization was not thread-safe.
Further, this avoids having to check for nullptr every time the singleton
is accessed.
uORB::Manager::initialize() is called when uorb is started. No one else
accesses the singleton before that point, because it is only used in the
orb_* methods, and in muorb. Both require uorb to be started already when
they are used.
2016-04-29 11:15:15 +02:00
Lorenz Meier
1b133931a6
Battery charge estimation: Refactor the filtering strategy and move it to the backend, doing integration before and filtering the resulting charge estimate
2016-04-29 11:05:44 +02:00
Lorenz Meier
343b8fb50f
Sensors app: Send proper throttle setting to battery charge level estimator
2016-04-29 11:02:51 +02:00
Lorenz Meier
49d174aae4
Add small script to sync meta data to QGC build
2016-04-29 11:02:29 +02:00
Lorenz Meier
52d85f56e1
upload sh: Fix portability
2016-04-29 11:02:15 +02:00
Julian Oes
08f88d006f
sensors: use the empty sensor init for RPi as well
...
The RPi build is based on the same DriverFramework base like the QURT
build, therefore it should use the same empty sensor init function.
2016-04-29 10:02:53 +02:00
Beat Küng
1827f78ab7
orb unit tests: use orb_unadvertise & create a separate test for it
...
Now 'uorb test' can be called multiple times.
2016-04-29 09:31:08 +02:00
Beat Küng
9da537c092
uorb: add uorb_unadvertise method
...
This is necessary when using multiple instances of a topic. However it does
not free the underlying resources, as it is assumed they will be used again
at a later point.
2016-04-29 09:31:08 +02:00
Paul Riseborough
4c9c102597
Merge pull request #115 from PX4/fix_isfinite_again
...
ekf: another stab at fixing isfinite for all
2016-04-29 09:12:59 +10:00
Julian Oes
f8a48f9cc5
ekf: now it should even compile for NuttX
2016-04-28 16:30:49 +02:00
Julian Oes
12f4d6f703
ekf: another stab at fixing isfinite for all
...
The previous solution did not work for Snapdragon, so I needed to copy
what is used in px4_defines.h.
2016-04-28 16:09:12 +02:00
Julian Oes
0c0d251003
Intersil wrapper continued
...
* Qflight: add intersil sensor driver
* df_isl_wrapper: change driver lib name to isl
* posix-config: add df_isl_wrapper start command to eagle startup
* isl_wrapper: cleanup isl wrapper
* isl: remove unused option -R
* isl: change the driver name to isl29501
* DriverFramework: updated submodule again
This is to get the latest `make fix-style` changes.
* df_isl29501_wrapper: rename wrapper all the way
2016-04-28 15:31:40 +02:00
Andreas Antener
f1d86a9064
removed not needed memsets
2016-04-28 13:39:02 +02:00
Andreas Antener
a6878fb653
initialize offboard structs
2016-04-28 13:39:01 +02:00
Lorenz Meier
3345a586d2
Battery: Initialize lowpass value properly
2016-04-28 13:24:53 +02:00
Lorenz Meier
4441b74020
sensors: Default battery to a 50% setting
2016-04-28 13:06:02 +02:00
Lorenz Meier
a676af3d42
Battery: Deal with symmetric throttle
2016-04-28 13:05:44 +02:00
Lorenz Meier
d67ff7564f
Fix sdlog2 race between copy and store
2016-04-28 12:20:16 +02:00
Lorenz Meier
e42b1dc948
Revert "fix bug in the logging app:"
...
This reverts commit 29c5c25f47 .
2016-04-28 12:14:29 +02:00
jwilson
eb89cddea3
Adds pressure sensor driver to the build and modifies the configuration file to get the associated driver loaded.
2016-04-28 08:53:06 +02:00
Roman
29c5c25f47
fix bug in the logging app:
...
- either sensor combined or the replay topic where copied into
the union buffer but at times the memory was overwritten by other
topics which updated below
- this change makes sure that the two topics are copied into the union
buffer at the correct location in the code
2016-04-27 21:40:07 +02:00
Lorenz Meier
5bcdfed203
Improve trigger meta
2016-04-27 19:57:26 +02:00
Lorenz Meier
a01cb1d0b8
Bump param meta version
2016-04-27 16:40:58 +02:00
Lorenz Meier
2fc6cdd994
Gazebo SITL: Ensure a tightly closed altitude control loop
2016-04-27 15:30:44 +02:00
Lorenz Meier
65d0d1f9e3
Commander: Allow better battery failsafe warning / actions
2016-04-27 14:40:56 +02:00
Paul Riseborough
22ad87599c
Merge pull request #112 from PX4/fix_ubuntu1604_2
...
ekf: compile fix for Ubuntu 16.04
2016-04-27 21:21:04 +10:00
Julian Oes
46e207106b
ekf: use std::isfinite instead of isnan
2016-04-27 12:58:22 +02:00
Lorenz Meier
f3586b371a
Travis CI: Upload all default targets
2016-04-27 12:17:55 +02:00
Lorenz Meier
7a197c5384
Travis CI: Re-create historic file names
2016-04-27 12:14:52 +02:00
Lorenz Meier
83f146aea7
Update master build
2016-04-27 11:42:01 +02:00
David Sidrane
161f92250f
Update CMakeLists.txt ( #4377 )
...
Removes warning as Cmake now using STACK_MAIN
2016-04-27 08:29:06 +02:00
Julian Oes
99286cf1bd
ekf2: replace !isnan with PX4_ISFINITE ( #4374 )
2016-04-26 22:15:30 +02:00
Julian Oes
ea3adee28a
shmem_qurt: fix format
2016-04-26 10:23:39 +02:00
Julian Oes
e3c9135ac2
param_shmem: fix bug where params didn't stick
...
There was the case where a param was changed on the Linux side but the
change did not get saved on the DSP side because the param was not in
the local list of changed params on the DSP side. On save, the param
index is now refreshed, and param_get is called on all params that have
changed. This is a hacky workaround but resolves the problem for now.
2016-04-26 10:21:01 +02:00
Lorenz Meier
7b702ee37e
Merge pull request #105 from georgehines/matlab-log-import
...
fix a field name that I missed last time
2016-04-26 10:03:37 +02:00
Lorenz Meier
7c7945961e
Merge pull request #107 from dagar/l1_init
...
L1 initialize everything
2016-04-26 10:01:27 +02:00
Lorenz Meier
2fff2d4eac
Robustify single mode selection. Fixes #4364
2016-04-26 09:11:35 +02:00
Mark Whitehorn
1a5040b9d2
only call fsync in NUTTX builds
2016-04-25 21:51:09 +02:00
Mark Whitehorn
6f20b9e1df
fix unused variable error
2016-04-25 21:51:09 +02:00
Mark Whitehorn
4cf427510e
fix problem with log_file_path and add msg timestamps
2016-04-25 21:51:09 +02:00
Daniel Agar
fe5a337c99
l1 initialize everything
2016-04-25 14:39:11 -04:00
Andrew Tridgell
6552f925f8
px4fmu: allow control of safety state on FMUv4
...
allows for MAVLink control of safety state
2016-04-25 17:25:47 +02:00
Nicolas de Palezieux
9199c5ec17
changed parameters to int32_t to prevent stack smashing
2016-04-25 16:16:04 +02:00
Nicolas de Palezieux
b1c6a2c7ab
ensure PWM_DISARMED value is sent to ESCs if snapdragon does not send anything else
2016-04-25 16:11:49 +02:00
Julian Oes
f454d74a51
mavlink: fix Snapdragon build
2016-04-25 15:35:22 +02:00
Julian Oes
2e476ce6bf
gps/devices: updated submodule
...
This includes the mtk bugfix for Snapdragon.
2016-04-25 06:21:36 -07:00
Julian Oes
5e5af9c37f
posix px4_layer: fix Mac build
2016-04-25 06:21:36 -07:00
Julian Oes
ee57055b99
posix px4_layer: fix linking error on QURT
2016-04-25 06:21:36 -07:00
Julian Oes
c975d01200
gps: fix Snapdragon build
2016-04-25 06:21:36 -07:00
Lorenz Meier
191afe499c
Gazebo: More Eigen3 fixes
2016-04-25 14:53:01 +02:00