Lorenz Meier
7398164fcc
Updated PX4 use / API of low level GPIO and other hardware-centric system facilities
2016-05-28 14:56:17 +02:00
Paul Riseborough
2b370417e8
drivers: Correct IMU coning correction implementation
...
Previous did not match the matlab simulation in: https://github.com/priseborough/InertialNav/blob/master/models/imu_error_modelling.m
2016-05-28 11:47:23 +02:00
Daniel Agar
69c1ce1714
WIP logger serialization
2016-05-14 11:27:07 +02:00
Daniel Agar
eb29b33620
use gcc attributes to align and pack
2016-05-14 11:27:07 +02:00
Julian Oes
080a136e50
integrator: add function to return filtered data
...
Instead of only being able to get the integral and its integration time,
it can also be handy to get the integral divided/differentiated by the
the integration time. This data is then just filtered by the integrator.
2016-05-12 12:41:40 +02:00
Julian Oes
f528c63030
integrator: add a put method for known intervals
...
This adds a second put method to the integrator class. This allows to
integrate with known intervals between samples, rather than based on
timestamps. This makes integrating the samples coming out of the MPU9250
FIFO buffer easier.
2016-05-04 22:28:19 +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
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
Julian Oes
d824ca3a14
integrator: fix style
2016-04-25 12:48:48 +02:00
Julian Oes
302bf879de
integrator: improvements and cleanup
...
The integrator had an untested read mode which did not apply the coning
correction. Instead of keeping two integrals (auto/read) it is now one
and the reset mechanism can be selected by setting the
auto_reset_interval to 0 to disable it or some positive number else.
Also, the integrator could potentially explode if a (single) timestamp
was wrong, so before the last integrated one. This is now caught with a
dt of 0 instead of inf/nan.
2016-04-25 12:48:48 +02:00
Julian Oes
b49b012d35
ringbuffer: update header file
...
The header file was not in source with the source file.
2016-03-24 13:09:16 +01:00
jwilson
9a97140ad8
Removing test code.
2016-02-19 16:59:49 +01:00
jwilson
b31472af0c
Cherry-picked i22438c8
...
Original description:
Modified the sensor module to prevent the selection of an invalid
secondary/tertiary gyro if the primary gyro times out
2016-02-19 16:59:49 +01:00
Julian Oes
fbac24ad28
vdev_posix: switch back to CLOCK_REALTIME
...
Otherwise SITL doesn't work anymore, at least on Linux
2016-02-19 16:59:48 +01:00
Julian Oes
1cd49a6dd5
vfile.cpp: added file that got removed in merge
2016-02-19 16:59:47 +01:00
Julian Oes
7a42b259b2
device.h: add file which got lost in merge
2016-02-19 16:59:47 +01:00
Julian Oes
b2ad3f5fbd
POSIX: get px4_poll right
...
Like this the timeouts are going through instead of hanging everything.
2016-02-19 16:59:47 +01:00
Mark Charlebois
014f15d8b0
Rebase changes on upstream master
...
This brings in many of the changes from the PX4 fork on ATLFLight.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2016-02-19 16:59:43 +01:00
Lorenz Meier
15e7b19991
uORB: Block on simulation delay for orb_check() calls as well
2016-02-05 16:36:43 +01:00
Lorenz Meier
443a58cafe
px4_poll() on POSIX: Block execution in simulation if required
2016-02-05 00:53:58 +01:00
Lorenz Meier
e88367d722
SPI: Support setting the lock mode
2016-01-22 17:11:46 +01:00
Lorenz Meier
20c8c6a2fa
Fix VDev formatting
2016-01-07 22:24:10 +01:00
Lorenz Meier
cb52a7eeec
Raise number of max FDs for VDev
2016-01-05 22:53:27 +01:00
Lorenz Meier
fc2b9a5031
Print backtrace on file descriptor exceed error
2016-01-05 19:03:29 +01:00
Lorenz Meier
adad9271df
POSIX: Warn about file descriptor exceed with associated thread name
2016-01-05 19:02:07 +01:00
Lorenz Meier
c91df50d7e
VDev: fix code style
2016-01-02 09:59:06 +01:00
Lorenz Meier
55ce8c0c42
Fix QuRT build error
2016-01-02 01:27:29 +01:00
Lorenz Meier
d9d90881a7
VDev: Code style fix
2015-12-06 13:42:38 +01:00
Lorenz Meier
314bb49bce
Unit tests: Workaround for driver framework. Now unit tests are fully enabled
2015-12-06 12:19:24 +01:00
Andreas Antener
08a1797eec
changed isnan checks and cmake compiler condition for apple machines
2015-12-03 15:39:41 +01:00
tumbili
f91af2221f
fix sem error for linux
2015-12-01 16:51:38 +01:00
Lorenz Meier
f035f11e30
vdev posix: Code style
2015-12-01 12:43:12 +01:00
Lorenz Meier
aa36e54c93
VDEV: More active reporting
2015-12-01 11:53:00 +01:00
Lorenz Meier
5126f81aed
Fix corner cases in timing and in handling poll list iteration in VDEV posix
2015-12-01 10:28:49 +01:00
Lorenz Meier
f42b338f16
VDev: Switch to a timed wait semaphore
2015-11-23 19:51:45 +01:00
Lorenz Meier
e12766826c
VDev posix: Initialize HRT work
2015-11-22 14:01:52 +01:00
Lorenz Meier
aafb11ae92
VDev: Less verbose in header
2015-11-22 14:00:31 +01:00
Lorenz Meier
bffce0c9eb
VDEV: Less verbose
2015-11-22 14:00:31 +01:00
Mark Charlebois
34410e7ce4
Changes for updated DriverFramework
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-11-19 19:03:10 -08:00
Mark Charlebois
618626103f
Use DevMgr::getNextDevicePath()
...
Also, a fix for number of args passed for accelsim.
Updated to newest version of DriverFramework.
DF drvices show up now in list_devices
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-11-16 16:57:57 -08:00
Mark Charlebois
3f20d78dfe
Fixed code style
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-11-16 14:01:39 -08:00
Mark Charlebois
dbe3b0e52b
Re-enabling code to handle DF framework
...
Updated to latest DriverFramework and changed ioctl args to
unsigned int from void *.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-11-16 13:51:39 -08:00
Lorenz Meier
65cf8caef2
POSIX Device: Fix IOCTL interface
2015-11-14 11:16:42 +01:00
Lorenz Meier
cc8f159bcc
REVERT THIS COMMIT LATER: Temporarily disable the device listing
2015-11-12 15:31:38 +01:00
Lorenz Meier
437133aac4
Merged driver_framework from mcharleb
2015-11-12 15:20:15 +01:00
Mark Charlebois
efd9995a10
Ported more simulated sensors to DriverFramework
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-11-10 07:45:13 -08:00
Lorenz Meier
06987c6244
Lock vdev devmap
2015-11-02 11:06:29 +01:00
Lorenz Meier
c0a6635400
Lock VDEV table to prevent concurrent access
2015-11-02 10:51:53 +01:00
Lorenz Meier
fe216b5c5f
Device: Fixed code style
2015-10-19 13:15:22 +02:00