Michael Schaeuble
8566cabd76
Make some code-style fixes
2016-08-05 10:15:11 +02:00
Michael Schaeuble
0b7fa4f5ad
Apply sensor calibration after coordinate frame rotation
2016-08-05 10:15:11 +02:00
Michael Schaeuble
e600e29ea4
Add DF wrapper for AK8963
2016-08-05 10:15:11 +02:00
Michael Schaeuble
ae66085f89
MPU6050: Apply calibration after coordinate frame rotation
2016-07-22 09:21:55 +02:00
Michael Schaeuble
2197bf518d
Fix code style
2016-07-22 09:21:55 +02:00
Michael Schaeuble
e73d8d73e1
Add DF wrapper for MPU6050
2016-07-22 09:20:27 +02:00
Lucas De Marchi
18330f7ab7
Move __STDC_FORMAT_MACROS to build system
...
__STDC_FORMAT_MACROS changes the behavior of inttypes.h to allow
defining format macros for printf-like functions. It needs to be defined
before any include is done, otherwise due to include chains and header
guards it may not take effect.
Instead of having to define it everywhere it is used, move the define to the
build system. Also update ecl and DriverFramework submodules to deal with the
changed definitions.
2016-07-10 16:31:36 +02:00
Julian Oes
fedde86bf4
df_lsm9ds1_wrapper: new DF submodule, fixes
2016-06-25 12:00:49 +02:00
Julian Oes
4c0ed8bdd5
df_lsm9ds1_wrapper: astyle
2016-06-25 12:00:49 +02:00
Hidenori
ef729ab2d8
MS5611 driver wrapper for RPi
2016-06-25 12:00:49 +02:00
Miguel Arroyo
8b8513fe8c
Adds LSM9DS1 Wrapper
2016-06-25 12:00:49 +02:00
Lorenz Meier
925c340915
Remove unused code from simulated driver
2016-06-24 00:24:09 +02:00
Beat Küng
f8e9a19889
gps_position: convert uint64 timestamp_time -> int32 timestamp_time_relative
...
We need to make this timestamp relative to the main timestamp. Necessary
for replay, and saves some space.
2016-06-24 00:22:01 +02:00
Beat Küng
e2a7145379
vehicle_gps_position: remove timestamp_variance & timestamp_velocity (they're not used)
2016-06-24 00:22:01 +02:00
Beat Küng
89f5bd27e8
vehicle_gps_position: use timestamp field instead of timestamp_position
...
timestamp was unused. This allows to remove timestamp_position.
2016-06-24 00:22:01 +02:00
Julian Oes
d92496a7f7
df_ms5607_wrapper: astyle ( #4853 )
2016-06-20 15:29:30 +02:00
Michael Schaeuble
47613fefa0
Don't advertise garbage, apply same fix from #4735
2016-06-20 12:55:01 +02:00
Michael Schaeuble
52d8723d55
Add df_ms5607_wrapper (a renamed copy from BMP280)
2016-06-20 12:55:01 +02:00
Miguel Arroyo
58f6835b19
Fixes Function signature MPU9250
2016-06-07 16:49:27 -04:00
Julian Oes
a548b5bd5e
tonealrmsim: better output of tone_alarm in SITL
2016-06-07 22:10:56 +02:00
Julian Oes
5e4e896dad
tone_alrmsim: add missing string for home set tone
2016-06-07 22:10:56 +02:00
Julian Oes
69bb602291
gyrosim: be less verbose
2016-06-07 22:10:56 +02:00
Julian Oes
a381c6cea5
df_mpu9250_wrapper: removed a debug printf
2016-06-07 22:10:56 +02:00
Julian Oes
354b31e1b1
DF driver wrappers: astyle
2016-06-07 14:04:11 +02:00
Julian Oes
44207a3a5c
df_trone_wrapper: don't advertise garbage
2016-06-07 14:04:11 +02:00
Julian Oes
40d6a4e5fc
df_isl29501_wrapper: don't advertise garbage
2016-06-07 14:04:11 +02:00
Julian Oes
7c57696752
df_bmp280_wrapper: don't advertise garbage
2016-06-07 14:04:11 +02:00
Julian Oes
144b0a179a
df_hmc5883_wrapper: fix wrong variable name
2016-06-01 08:39:10 +02:00
Julian Oes
3e176fa91f
df_mpu9250_wrapper: usage is info
2016-06-01 08:39:10 +02:00
Julian Oes
d5a7aaa09d
df_hmc5883_wrapper: rotation on driver level
2016-06-01 08:39:10 +02:00
Julian Oes
969940e98a
df_mpu9250_wrapper: add rotation to internal mag
2016-06-01 08:39:10 +02:00
Kabir Mohammed
a7ae7907f7
add rotation support to mpu9250 wrapper
2016-06-01 08:39:10 +02:00
Julian Oes
99cf6758d2
DF driver wrappers: whitespace fixes
2016-05-31 16:43:13 +02:00
Julian Oes
4e54bed051
df_mpu9250_wrapper: bool comparison without ==
...
I prefer this way because I think it's more readable.
2016-05-31 16:43:13 +02:00
Julian Oes
b0b7832048
DF driver wrappers: advertise with actual data
2016-05-31 16:43:13 +02:00
jwilson
76095ebba5
Responding to PR feedback. All items resolved.
...
Signed-off-by: jwilson <jwilson@qti.qualcomm.com >
2016-05-31 16:43:12 +02:00
jwilson
67ea3d6ec6
Fixing function which retrievs mag calibration values.
...
Signed-off-by: jwilson <jwilson@qti.qualcomm.com >
2016-05-31 16:43:12 +02:00
jwilson
c6250657eb
Added mag support to the DriverFramework mpu9250 driver. Shortened parameter names for legacy drivers. Added temporary ifdef's in the calibration code for Snapdragon Flight builds.
...
Signed-off-by: jwilson <jwilson@qti.qualcomm.com >
2016-05-31 16:43:12 +02:00
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
Julian Oes
45bb1786b6
Fix SITL CPU ( #4657 )
...
* accelsim: add debug output like in gyrosim
* DriverFramework: update submodule
This brings lower CPU usage because of scheduling in us instead of ms.
2016-05-27 18:52:38 +02:00
Daniel Agar
2487dbfc92
remove Wpacked and cleanup unused warning flags
2016-05-19 21:49:34 +02:00
Lorenz Meier
c67907ffb2
BMP280 wrapper: Clean up floating point operations
2016-05-19 15:44:37 +02:00
Kabir Mohammed
529460d573
Fix RPi2 build system
2016-05-19 15:41:50 +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
Daniel Agar
76387b1693
uorb autogeneration
2016-05-14 11:27:07 +02:00
Julian Oes
e064cb645e
gpssim: fix command line argument handling
...
The gpssim interface was pretty broken, from random usage complaints to
segfaults.
2016-05-13 22:07:46 +02:00
Julian Oes
89661b2d9a
df_mpu9250_wrapper: use all accel/gyro data
...
Use the data which has been filtered by the integrator for the
instantanous values instead of only 1 out of 32 samples.
This is to better support estimators and modules other than ekf2 which
uses the integrated gyro/accel values anyway.
2016-05-12 12:41:40 +02:00
Daniel Agar
7aa6e85563
enable Wshadow
2016-05-05 13:32:42 +02:00
Julian Oes
aafcae7e6f
MPU9250: integrate using the FIFO sample interval
...
Instead of calculating time offsets between samples, it is easier just
to assume a constant sampling time. Then all samples can be integrated,
and published every forth time the FIFO buffer has been emptied.
The sampling in the sensor happens at 8kHz, the driver empties the
buffer at 1kHz, and publishes (and resets the integration) at 250 Hz.
2016-05-04 22:28:19 +02:00