Commit Graph
156 Commits
Author SHA1 Message Date
Julian Oes f24b2a701f sensors: first part of a calibration refactor
This adds uORB messages to publish calibration data by sensors which is
then consumed by the sensors. Currently this is only used on Snapdragon
and guarded by QURT ifdefs.
2016-03-24 13:08:30 +01:00
Julian Oes a3967872f3 df_bmp280_wrapper: hack to publish altitude
Previously we only published pressure which wasn't inav for the position
estimator.
2016-03-21 11:38:07 +01:00
Julian Oes 65947346eb df_hmc5883_wrapper: get the var swapping right 2016-03-12 12:22:05 +01:00
Julian Oes 09dd88ec01 df_hmc5883_wrapper: fix mag rotation
The external GPS+Mag needs some rotation.
2016-03-12 12:22:05 +01:00
Lorenz Meier 32368e5eda Baro sim: Cleanup 2016-03-12 11:07:55 +01:00
Lorenz Meier c1321ec721 GPS sim: Add missing velocity timestamp 2016-03-12 11:07:34 +01:00
Julian Oes 7fc8a213ac df_mpu9250_wrapper: astyle 2016-02-19 16:59:48 +01:00
Julian Oes 10f1ff46f0 df_hmc5883_wrapper: astyle 2016-02-19 16:59:48 +01:00
Julian Oes b41fbe49f3 df_bmp280_wrapper: astyle 2016-02-19 16:59:48 +01:00
Julian Oes adf9647aab barosim: corrected wrong return value 2016-02-19 16:59:48 +01:00
Julian Oes 1524ff7f80 HMC5883: added wrapper for DriverFramework 2016-02-19 16:59:47 +01:00
Julian Oes 4c288eaa97 posix drivers: comment file name update 2016-02-19 16:59:47 +01:00
Julian Oes f7697eec66 BMP280: added the baro driver 2016-02-19 16:59:47 +01:00
Julian Oes 67597a604e Rename DfImu to DfMpu9250Wrapper 2016-02-19 16:59:47 +01:00
Julian Oes adb44c2918 df_imu: added gyro publishing, cleanup 2016-02-19 16:59:46 +01:00
Julian Oes 507b9130fd df_imu: remove debug relict 2016-02-19 16:59:46 +01:00
Julian Oes ec8a58a9ac df_imu: get the accel to publish to uORB 2016-02-19 16:59:46 +01:00
Mark Charlebois 791ec37f43 Code formatter fixes
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Mark Charlebois 419f4c49ce Added new config entry for DF driver entries
DF drivers can now be added in each config file by adding

set(config_df_driver_list
	bmp280
	...
	)

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-02-19 16:59:46 +01:00
Julian Oes f1cc0d522c New lightweight class to connect to the MPU9250
It needs to be determined if this class should be for any imu sensor or
if it is specific to the MPU9250.
Also, the callback doesn't publish anything just yet.
2016-02-19 16:59:46 +01:00
Mark Charlebois 9f3bf8e9f4 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:41 +01:00
Lorenz Meier 62d685440a Posix: Do not spam console with tone alarm 2016-02-09 21:46:10 +01:00
Roman 644ce51956 gyrosim: calculate delta angles and delta velocities 2015-12-02 13:02:33 +01:00
Lorenz Meier 119c82de4e Baro sim: Code style fix 2015-12-01 14:14:47 +01:00
Lorenz Meier a880725bd7 Baro sim: Fix up struct use 2015-12-01 14:07:11 +01:00
Lorenz Meier c140c2b59c Baro sim: Ensure struct is initialized to zero 2015-12-01 13:58:28 +01:00
Lorenz Meier bc1639386b Fix compilation of baro sim on Linux 2015-12-01 13:54:37 +01:00
Lorenz Meier 9fb2a408bf baro sim: Code style 2015-12-01 12:43:49 +01:00
Lorenz Meier f0a4979da6 Merged master into driver_framework 2015-12-01 12:34:02 +01:00
Lorenz Meier 9ee4760fe0 Barosim: Simplify to a plain loop without reschedules or sub interfaces. Behaves now. The DriverFramework needs closer inspection for busy-running threads. 2015-11-30 00:41:46 +01:00
Lorenz Meier c28f394c3c Gyro sim: Remove unused perf counter 2015-11-29 13:42:42 +01:00
David Sidrane 731daec744 Added missing conditional compilation control for FMUV4 2015-11-28 09:13:15 +01:00
Erik de Castro Lopo 5e9a8d0c03 Baro sim: Add missing initializers 2015-11-26 13:29:11 +11:00
Lorenz Meier 176fb3b185 Gyrosim: Code style fix 2015-11-25 11:16:28 +01:00
Lorenz Meier 24767547e9 Baro sim: Code style fix 2015-11-25 11:16:16 +01:00
Lorenz Meier 6a80d8b3dc Baro sim: Code style fix 2015-11-25 11:16:00 +01:00
Lorenz Meier 58aa8107de Accelsim: Code style fix 2015-11-25 11:15:43 +01:00
Mark Charlebois f3126e9d3a Fixes for DriverFramework, accelsim and gyrosim
DriverFramework was updated to properly delete nodes in managed lists.

Baro was fixed to use DriverFramework.

Accelsim was fixed with change to DriverFramework to return < 0 when start()
is called and the driver was already started, or stop() is called but the
driver was not running.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-24 22:46:20 -08:00
Mark Charlebois 1aeca4f64d Fixed code format and removed unused std::list
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-23 23:09:10 -08:00
Mark Charlebois 0a8075ee33 Fixed accelsim
Accelsim runs the accel and mag separately now.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-11-23 21:30:33 -08:00
Lorenz Meier 274eb39208 Tone alarm: Reset work when resetting notes 2015-11-22 14:01:52 +01:00
Lorenz Meier a3e15e161c Gyro sim: do not spam output 2015-11-22 14:01:52 +01:00
Lorenz Meier 2749a57641 Add gyro instrumentation 2015-11-22 14:00:31 +01:00
Lorenz Meier a521066a0d Fixed accel sim code style 2015-11-21 17:47:18 +01:00
Lorenz Meier 6acb8850d4 Baro sim: Initialize to 100 Hz 2015-11-21 17:46:18 +01:00
Lorenz Meier 3b38004725 Accelsim: fix device ID 2015-11-21 17:45:40 +01:00
Lorenz Meier 4b56587188 Gyrosim: fix rate and device id, also output of info command 2015-11-21 17:45:06 +01:00
Lorenz Meier cbbdb8af9b Gyro sim: add missing call initializer 2015-11-21 14:23:15 +01:00
Lorenz Meier 75e962ee7c Merged master into driver_framework 2015-11-20 09:14:37 +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