jflyper
a686ab45fa
Barometer Infineon DPS310 support
2020-06-29 00:09:56 +09:00
jflyper
4d11d6d630
Fix baroCalculateAltitude
2020-06-28 16:40:23 +09:00
mikeller
cedcf2d7e2
Added calibration menu to CMS.
2019-11-19 13:59:52 +13:00
mikeller
ef556c0f59
Introduced 'baroStartCalibration()' / 'baroSetGroundLevel()' to make barometer code more self contained.
2019-11-17 23:34:10 +13:00
John Polstra
cc1b8e3e39
Fix an erroneous constant in the calculation of altitude from
...
barometric pressure. The commit which introduced the error was:
35f0a8e4b0
It transposed (inadvertently, I believe) the last two digits of the
constant 0.190259f. A nearby comment references code in Ardupilot,
in which the constant is 0.190259f.
2019-09-12 12:52:16 -07:00
SteveCEvans
b3fd616680
Removed tab on blank line
2019-08-26 17:24:10 +01:00
SteveCEvans
833e760f05
Split baro processing into a number of phases and use non-blocking deferred I2C accesses
2019-08-26 17:17:31 +01:00
Dominic Clifton
53167b161f
BMP388 - Add support for BMP388 barometer.
...
BMP388 - Move the static assert.
BMP388 - Build faster when the baro driver is not enabled.
BMP388 - Fix spi init due to changes in master.
BMP388 - Add missing bmp388 unit test files.
BMP388 - Remove debug code.
BMP388 - Prepare EXTI/EOC handling for unified targets.
BMP388 - enable on unified targets.
BMP388 - Add support to NUCLEOF722.
BMP388 - Add support to NUCLEOH743.
BMP388 - Add BMP388 (via SPI) support to NUCLEOF7
* For some CI visibility on the conditional baro SPI code.
NUCLEOH743 - Add LPS baro for more CI visibility.
Remove whitespace, as requested.
Move barometer `#defines` into the implementations.
Cleanup style of method names in baro drivers.
2019-07-02 08:14:23 +12:00
jflyper
b749d56d9e
Ammend BMP085 driver for configurability of EOC and XCLR pin
2019-05-20 19:13:50 +02:00
Dominic Clifton
eea9242d7b
Baro fixes, cleanups and improvements.
...
* Add BARO debug mode.
* BMP085 - Fix EOC and XCLR initialisation.
* BMP085 - update previously dead code.
* BMP280 - Move t_fine out of the calibration data, since their usage is mixed.
* BMP280 - Move static_assert closer to definition.
2019-05-20 19:13:11 +02:00
jflyper
625959aa2f
Enforce USE_BARO and USE_MAG
2019-04-28 21:55:10 +09:00
Bruce Luckcuck
9e53d97e4d
Remove stale baro parameter baro_cf_alt
2019-01-16 18:26:13 -05:00
MJ666
e5f330fbf1
Update Baro driver for generic target
2018-12-15 07:36:25 +01:00
jflyper
9ea1428d11
Introduce per device pin pre-init
2018-12-13 11:15:26 +09:00
jflyper
9c45eee0e6
Protect mag and baro against NULL instance
2018-11-23 16:02:35 +09:00
Michael Keller
69a80a3bb0
Merge pull request #5965 from loopur/mybranch
...
Add barometer sensor QMP6988
2018-05-25 15:54:47 +12:00
Loopur
495cfb4d07
Add barometer sensor QMP6988
2018-05-18 16:26:07 +08:00
blckmn
a9f74cd6df
Removed excess trailing spaces before new lines on licenses.
2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd
Direct license replacement
2018-04-22 09:22:46 +10:00
Petr Ledvina
c11d016bc7
optimize math ( #5287 )
...
* optimize math
Results in considerable flash saving
* log_approx, exp_approx, pow_approx
Taken from https://github.com/jhjourdan/SIMD-math-prims/blob/master/simd_math_prims.h
* Fix pow in rangefinder
* Use approximate function in baro calculation
Maximum error is < 20cm
* fixup! Fix pow in rangefinder
2018-03-04 01:26:33 +13:00
qba667
5748e75408
Additional IBUS telemetry implemented.
2018-01-18 13:37:02 +01:00
Michael Keller
72712b348d
Fixed defines for BARO_LPS.
2018-01-09 17:22:06 +13:00
Chris
efc556f91a
Add LPS25HB driver
2018-01-07 18:00:19 +01:00
Martin Budden
671382234a
Enabled switch fallthrough checking by compiler
2017-12-23 19:46:40 +00:00
mikeller
b489d0ba9d
Renamed 'parameter_group' to 'pg'.
2017-12-19 23:36:31 +13:00
mikeller
a8d34dabb0
Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention.
2017-11-05 10:15:24 +13:00
jflyper
df277c4465
Wow ... don't set clock divisor against plain i/o port...
2017-08-04 12:56:23 +09:00
jflyper
2a00115895
New baro defaults
...
For I2C connected devices, default i2c address is now 0, meaning "per device default".
The address is set to the default when zero in xxxDetect.
2017-07-24 07:34:02 +09:00
jflyper
e4b067ed60
Improve default baro determination for backward compatibility
2017-07-21 13:25:44 +09:00
jflyper
8fe8da975b
Use csn instead of cs for chip select.
2017-07-18 17:21:46 +09:00
jflyper
46b3a7c9b0
Define and use i2c functions that accept busDevice_t
2017-07-18 16:46:23 +09:00
jflyper
7774e02d01
Fix bad defaults
2017-07-17 13:04:28 +09:00
jflyper
d54fc37bc7
SPI and I2C are now independent
2017-07-17 03:40:13 +09:00
jflyper
8690d37373
Touching up
2017-07-17 01:54:36 +09:00
jflyper
d2c71a6f7e
Add bus parameters to barometerConfig_t, cli handling
2017-07-16 23:57:16 +09:00
jflyper
c6339f979b
Converted BMP085
...
- Not tested
- Does not properly release IOs upon detection failure
2017-07-16 11:37:59 +09:00
jflyper
605d5603cc
Call spiBusSetInstance when setting instance
2017-07-16 04:56:58 +09:00
jflyper
f1322d1920
Converted MS5611 (I2C only)
2017-07-16 02:13:24 +09:00
jflyper
52d447d2ef
Configurable baro (BMP280)
...
- busDevice_t is now has a discriminator.
- busDevice_t is added to baroDev_t.
- BMP280 I2C and SPI drivers are consolidated.
2017-07-15 18:05:56 +09:00
Martin Budden
23f158913e
Moved time functions out of system.h into time.h
2017-05-26 14:03:28 +01:00
Petr Ledvina
58212464c5
Fix SITL warnings
2017-05-15 19:49:15 +02:00
Martin Budden
2493c214b0
Created subdirectories in drivers directory
2017-04-12 08:06:22 +01:00
Michael Keller
9c29475ba4
Changed float parameters to int16 in 'cli.c'.
...
Fixed buffer length used for 'ftoa'.
Got rid of magic numbers, replaced 'digitalIdlePercent' with 'digitalIdleValue'.
2017-04-10 13:11:01 +12:00
J Blackman
02bc606d22
Merge pull request #2429 from ellingo/master
...
Barometer initialization improvements
2017-02-27 01:33:21 +11:00
Martin Budden
0bca49d8c4
Added PG config definitions 1
2017-02-22 09:43:05 +00:00
blckmn
8e9be424ce
Removed more target specific conditionals from the main codebase
2017-02-19 17:28:29 +11:00
ellingo
948c66817e
Barometer initialization improvements
...
Assuming 1 std atm instead of vacuum before first calibration.
Sets altitude to zero during calibration (copied from cleanflight).
Stops calibration early when measurements are stable.
2017-02-18 19:25:41 +01:00
Martin Budden
5851b21e4a
Removed a number of static config pointers
2017-02-01 12:58:29 +00:00
Martin Budden
79d4b2146d
Preparation for conversion to parameter groups
2017-02-01 08:46:19 +00:00
Martin Budden
4bb6820c42
Moved sensor detection into respective sensor modules
2016-12-05 15:26:14 +00:00