Commit Graph
68 Commits
Author SHA1 Message Date
Daniel Agar 384e3bb693 meas_airspeed status aspd_com_err 2017-02-04 08:47:37 +01:00
David Sidrane fa6ad99aba Enable MEAS Airspeed voltage_correction based on ADC_SCALED_V5_SENSE not CONFIG_ARCH_BOARD_xxx
ADC_SCALED_V5_SENSE is defined and derived based on HW that provides
    and adc input that samples the V5 Rail or in the case of FMUv5 the
    V5 supply.
2017-01-21 11:45:36 +01: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
Felix Hu bd580e09bf supports MindPXv2 borad which is a product from AirMind. 2016-03-30 19:45:39 +02:00
David Sidrane a67097731a Renamed pax4fmu-v3 to pax4fmu-v4 2015-11-28 09:13:15 +01:00
David Sidrane f3b7585a89 Wip FMUV3 2015-11-28 09:13:15 +01: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 135543f03f Airspeed MEAS: fix code style 2015-08-23 10:49:09 +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 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