Mark Charlebois
1ca05aaa64
orb_advert_t changed to void * and checks changed to nullptr
...
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.
Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:42:49 -07:00
Mark Charlebois
9758112e31
Use px4_config.h instead of nuttx/config.h
...
Modified code to use OS independent header file for config settings.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 10:55:41 -07:00
Lorenz Meier
6e4b95e844
Airspeed: Move to 0-based index
2015-02-09 22:56:21 +01:00
Lorenz Meier
beee7a89ed
Airspeed: less chatty
2014-11-15 16:55:04 +01:00
Lorenz Meier
127948f32f
Remove absolute pressure field as its not useful and confusing anywary
2014-08-24 11:49:45 +02:00
Julian Oes
e09bc02c37
meas_airspeed: don't reset the filter below 0
2014-08-23 18:53:45 +02:00
Julian Oes
6480747c69
Revert "airspeed_calibration: stop talking about Pa and and hashtags"
...
This reverts commit c6fb75f66f .
2014-08-23 18:49:00 +02:00
Julian Oes
c6fb75f66f
airspeed_calibration: stop talking about Pa and and hashtags
2014-08-23 18:44:09 +02:00
Julian Oes
40fe9ab969
meas_airspeed: don't take the aboslute value
2014-08-23 18:03:01 +02:00
Lorenz Meier
9d7e3feffc
airspeed: Filter slightly more, just a touch to not induce phase delay
2014-07-31 11:18:59 +02:00
Lorenz Meier
2b55eb605e
Make airspeed filter a bit smoother, but do not induce a huge phase delay
2014-07-29 11:27:59 +02:00
Lorenz Meier
3b3e6f5aaa
Increase filter pass-band
2014-07-28 14:21:50 +02:00
Lorenz Meier
f7a40c5c6d
Improve I2C address comment. Make filter much stronger to damp any non-realistic vehicle motion.
2014-07-23 16:55:42 +02:00
Lorenz Meier
7f0e675228
Pass over drivers to reduce build size
2014-07-23 08:24:56 +02:00
Lorenz Meier
7ca184de45
MEAS airspeed: Stricter initialization and constructors
2014-07-16 08:54:40 +02:00
Lorenz Meier
91bedc5c1c
airspeed drivers: Start handlers stack fixes and start handler review
2014-07-16 07:54:09 +02:00
Lorenz Meier
f3549d775c
Airspeed driver: Use the known sensor offset for raw value as well
2014-07-14 08:33:35 +02:00
Lorenz Meier
56e1fe382b
Remove voltage field for MEAS sensor
2014-07-11 09:10:15 +02:00
Lorenz Meier
709d104de4
airspeed driver: Do not spam the console on error, report the system change only once
2014-04-20 21:43:18 +02:00
Lorenz Meier
fc39af08a1
airspeed: Prevent the filter from overshooting into the negative airspeed range
2014-04-05 17:02:37 +02:00
Andrew Tridgell
cdec5e1d05
Included raw differential pressure field
2014-04-05 13:17:39 +02:00
Andrew Tridgell
9719af623d
Merged voltage compensation
2014-04-05 13:14:43 +02:00
Andrew Tridgell
00c82f0836
Merged airspeed changes
2014-04-05 13:10:35 +02:00
Thomas Gubler
bc451eef4b
Merge remote-tracking branch 'upstream/master' into diff_press_filter
...
Conflicts:
src/drivers/meas_airspeed/meas_airspeed.cpp
2014-03-21 13:33:19 +01:00
Lorenz Meier
8af83f7074
Make error message less dramatic, as its part of a scanning progress
2014-03-21 08:11:28 +01:00
Lorenz Meier
98ef3b9ab8
Make driver start less verbose
2014-03-21 08:07:56 +01:00
Lorenz Meier
c5a1f4617c
Fixed MS4525 error flag handling
2014-03-18 18:30:05 +01:00
Thomas Gubler
0784ef9189
add low pass filter to meas airspeed driver including logging of filtered value
2014-03-14 01:13:22 +01:00
Lorenz Meier
7a351c317b
Merge branch 'beta' of github.com:PX4/Firmware into beta
2014-02-15 22:19:27 +01:00
Lorenz Meier
387bfad1ca
Fixed status printing for airspeed sensor
2014-02-15 22:19:14 +01:00
Lorenz Meier
4bd83dcaeb
Fix compile errors
2014-02-15 21:20:02 +01:00
Lorenz Meier
28536682aa
Fix airspeed sensor
2014-02-15 21:00:48 +01:00
Lorenz Meier
773f70a9df
Merged origin/master into pubsub_cleanup
2014-02-09 16:04:32 +01:00
Lorenz Meier
2dc3cf5e43
Remove unneeded header and commented out dead code from MEAS airspeed driver
2014-01-26 14:58:21 +01:00
Lorenz Meier
d199710651
Fixed up init sequence of all sensors - we can publish in interrupt context, but not advertise! All advertisements now contain valid data
2014-01-14 15:40:46 +01:00
Lorenz Meier
d72c82f66b
Airspeed does not publish if disabled
2014-01-12 11:53:15 +01:00
Andrew Tridgell
1f564a95ee
meas_airspeed: avoid trivial dependency on math lib
...
including the math lib adds a huge amount to flash usage
2014-01-07 09:33:10 +01:00
Thomas Gubler
ae9fae5aae
fix MEAS airspeed and airspeed calibration
2013-11-10 19:25:38 +01:00
Lorenz Meier
2cd9ad97ea
Removed unnecessary return statements
2013-10-24 09:26:03 +02:00
Andrew Tridgell
4893509344
drivers: report error_count in drivers where possible
2013-09-12 09:26:49 +02:00
Andrew Tridgell
36b7b7bc5f
airspeed: convert to using RingBuffer class
2013-09-12 00:52:21 +02:00
Andrew Tridgell
935ed2fe49
meas_airspeed: don't use stale/bad data in airspeed reading
...
also fixed handling of perf counters on error
2013-08-28 11:16:55 +02:00
Lorenz Meier
0012b39b37
Merge branch 'master' of github.com:PX4/Firmware into fmuv2_bringup
2013-08-06 09:54:14 +02:00
Lorenz Meier
28fa96e2db
Made sure airspeed tests reset the sensors to default state
2013-08-06 09:53:52 +02:00
Lorenz Meier
461b2eb366
Merge branch 'mpu6k_queue' of github.com:PX4/Firmware into fmuv2_bringup
2013-08-06 09:15:24 +02:00
Lorenz Meier
901a9c3e35
Hotfix: MEAS Airspeed sensor fixes from Sarthak Kaingade
2013-08-05 12:44:38 +02:00
Lorenz Meier
5ddbe24d8e
Fixed code style for meas_airspeed.cpp
2013-08-05 12:26:31 +02:00
px4dev
9d6ec6b365
Restructure things so that the PX4 configs move out of the NuttX tree, and most of the PX4-specific board configuration data moves out of the config and into the board driver.
...
Rename some directories that got left behind in the great board renaming.
2013-08-02 22:34:55 -07:00
Lorenz Meier
382c637fab
Fixed stack sizes for airspeed drivers
2013-07-28 15:41:10 +02:00
Lorenz Meier
830dff9b6a
First operational test version, provides correct readings (as far as tests were possible)
2013-07-25 11:16:25 +02:00