Julian Oes
eb1ab4011a
sensors: the ifdef logic was inverted ( #4401 )
2016-04-29 16:21:52 +02:00
Julian Oes
49ae3e17d5
land_detector: fix wrong astyle formatting ( #4399 )
2016-04-29 15:36:18 +02:00
Lorenz Meier
1b11049e42
Land detector: fix code style
2016-04-29 15:01:39 +02:00
Lorenz Meier
a741257293
Enable new ESP8266 TELEM2 output mode
2016-04-29 14:59:11 +02:00
Lorenz Meier
18b72241ce
System params: Update choices for ESP8266
2016-04-29 14:58:41 +02:00
Lorenz Meier
8b9b02bee8
Land detector: Update params
2016-04-29 14:58:27 +02:00
Lorenz Meier
5c1d2c1cee
Land-detector: Better granularity for manual and auto flight modes
2016-04-29 14:50:45 +02:00
Julian Oes
234068989b
sensors: treat RPi like QURT
2016-04-29 13:50:18 +02:00
Lorenz Meier
3ccd9988d3
Multicopter land detector: Enforce sync between system and detector
2016-04-29 12:34:58 +02:00
Lorenz Meier
109f88564d
Commander: Init land detector
2016-04-29 12:34:28 +02:00
Lorenz Meier
567364317a
Fix formatting in battery
2016-04-29 11:16:41 +02:00
Lorenz Meier
4a94835880
Fix formatting in sensors
2016-04-29 11:16:27 +02:00
Beat Küng
825d754036
orb nuttx: add irqsave() guard around 64bit timestamp readout
2016-04-29 11:15:16 +02:00
Beat Küng
1ce5d795be
orb: move SmartLock into global space and use it also for NuttX
2016-04-29 11:15:16 +02:00
Beat Küng
4269db73a0
refactor semaphore: move into separate file
2016-04-29 11:15:15 +02:00
Beat Küng
843e54f554
orb DeviceMaster posix: make destructor virtual
2016-04-29 11:15:15 +02:00
Beat Küng
c6da90ac63
orb nuttx: fix threadding issue in uORB::DeviceNode::write
...
same issue as in posix code: 64bit values are not atomic in general.
2016-04-29 11:15:15 +02:00
Beat Küng
44012be8b6
orb posix: fix multi-threading issues
...
in detail:
- in the write method: the following are not necessarily atomic operations:
_last_update = hrt_absolute_time();
_generation++;
- appears_updated() was called with a lock held in some cases, but not
in ioctl
- use the SmartLock class, so that unlock() is not needed before every
return call. Makes it less error prone
2016-04-29 11:15:15 +02:00
Beat Küng
9a0cff2a00
vdev: add a SmartLock class that automatically unlocks when going out of scope
2016-04-29 11:15:15 +02:00
Beat Küng
aacfd8d553
orb: add some comments about locking
2016-04-29 11:15:15 +02:00
Beat Küng
5cf78da7d7
orb uORB::DeviceMaster::_flavor: make it const, it's never changed
2016-04-29 11:15:15 +02:00
Beat Küng
c61a5acd59
orb DeviceNode::filp_to_sd: make this method static
...
Makes it easier to see that no class members are accessed
2016-04-29 11:15:15 +02:00
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
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
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