Daniel Agar
38f45d1a9d
airspeed sensor startup improvements ( #7903 )
2017-10-05 14:29:44 -07:00
Lorenz Meier
a945cd9fc2
Sensors: Clean up boot output ( #8005 )
...
Various sensors had too verbose or confusing boot output that would make the boot log hard to read. This patch ensures all output is consistently indicating if there is a real error or an optional sensor just not present. It also removed redundant error messages and adds an indication on which bus the sensor was probed.
2017-09-25 11:19:11 -04:00
Daniel Agar
fd8a5644e8
ets_airspeed posix port
2017-08-31 09:27:36 +02:00
Daniel Agar
b2a81ed35b
multi diff pres sensor publication and logging
2017-08-19 22:49:29 +02:00
Daniel Agar
e303c2ad89
eagle tree airspeed allow negative differential pressure
2017-07-08 21:54:04 +02:00
Daniel Agar
eb067291bf
airspeed sensors apply offset separately
2017-07-06 10:05:07 -04:00
Daniel Agar
7029be87c0
MS5525 differential pressure driver
2017-07-06 10:05:07 -04:00
Lorenz Meier
b29e0040f1
ETS airspeed: Work around weird choice of manufacturer zero level cutoff
2017-01-16 08:26:37 -08:00
Beat Küng
241fd629ce
ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR
2016-09-30 13:50:51 +02:00
Julian Oes
8ff237c69f
Remove size optimization for individual modules
...
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
James Goppert
967e4dd127
Modified cmake to use STACK_MAX and STACK_MAIN
2016-04-14 13:36:36 -04:00
Lorenz Meier
7c0407d0ef
ETS airspeed: Fixed code style
2015-10-19 13:17:57 +02:00
Lorenz Meier
fa5071b3c5
Remove module.mk files to prevent confusion of adopters upgrading
2015-10-06 11:23:20 +02:00
James Goppert
1d6b31d196
Switch to cmake build system.
2015-09-07 20:37:45 -04:00
Lorenz Meier
53d4c5473f
Merge beta in master
2015-08-23 11:21:38 +02:00
Lorenz Meier
bac89be4b9
Airspeed ETS: fix code style
2015-08-23 10:48:58 +02:00
Mark Charlebois
a589d15c52
Refactored debug() and log() in CDev
...
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.
Changed to macros that preserve the output format. Uses new macro that
can be used to implement per object, runtime selectable logging
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:07:06 -07:00
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
127948f32f
Remove absolute pressure field as its not useful and confusing anywary
2014-08-24 11:49:45 +02:00
Lorenz Meier
7f0e675228
Pass over drivers to reduce build size
2014-07-23 08:24:56 +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
50414257a8
Remove voltage field for digital sensors
2014-07-11 09:09:57 +02:00
Don Gagne
92adbe9216
Fix compiler warnings
2014-06-29 17:47:24 -07:00
Andrew Tridgell
c945693054
ets airspeed: Support raw field
2014-05-20 07:32:31 +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
42bba67893
Move changes regarding the filtered airspeed consistently across sensors, use actual air temperature instead of board temperature
2014-03-23 16:56:07 +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
28536682aa
Fix airspeed sensor
2014-02-15 21:00:48 +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
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
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
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
Andrew Tridgell
dad76c56c6
ets_airspeed: cope with zero value from ETS airspeed sensor
2013-07-30 10:58:47 +02:00
Lorenz Meier
382c637fab
Fixed stack sizes for airspeed drivers
2013-07-28 15:41:10 +02:00
Lorenz Meier
97f732ccf1
Fixed up ets driver (not tested, WIP on meas driver)
2013-07-22 09:19:59 +02:00
Lorenz Meier
7fe2aa2797
Fixed last few compile errors, ready for testing
2013-07-14 11:22:20 +02:00
Lorenz Meier
290ca1f9bf
Reworked airspeed driver to keep most of it abstract
2013-07-10 21:45:59 +02:00
Lorenz Meier
f87595a056
Minor initialization / formatting change
2013-07-10 20:59:35 +02:00
Lorenz Meier
dc600e7d65
First stab at IOCTL driven offset handling (in PA) for all airspeed sensors. Untested
2013-07-10 20:58:47 +02:00
Simon Wilks
01255a4cec
Remove the <15kmh cuttoff and report kmh via HoTT.
2013-07-07 01:10:47 +02:00
Simon Wilks
24cb66c833
And yet more formatting cleanups
2013-06-16 21:17:07 +02:00