liang
8de44ec319
AP_Airspeed: protect sample timestamp while get data
5 years ago
duran9dv
8d4215fd82
Update AP_Airspeed_MS4525.cpp
...
update airspeed sensor to read and work with Pixhawk 4 adding { 3, MS4525D0_I2C_ADDR }, to the code
6 years ago
Andrew Tridgell
fe064a2d4e
AP_Airspeed: use WITH_SEMAPHORE()
...
and removed usage of hal.util->new_semaphore()
6 years ago
Andrew Tridgell
58b0ac07ec
AP_Airspeed: support dual airspeed sensors
...
allow for a primary and secondary airspeed sensor
7 years ago
Francisco Ferreira
d3ed4420e6
AP_Airspeed: remove unused MS4525D0_I2C_BUS macro
8 years ago
Vinicius Juvinski
78deddabda
AP_Airspeed: MS4525: Add support to I2C Bus 2
...
BBBMini use I2C Bus number 2 and MS4525 just use up to bus 1, so I
addedd this bus 2 to address struct.
8 years ago
Andrew Tridgell
6ec32472c5
AP_Airspeed: average two readings for airspeed
...
given we're using it to check for errors, we may as well reduce analog
noise too
8 years ago
Michael du Breuil
4932a8b9ef
Airspeed: Sanity check MS4525DO data, and utilize a double read
8 years ago
murata
af65be5aa4
AP_Airspeed: Change from magic number 0 to definition name.
8 years ago
Lucas De Marchi
5472bc4de1
Global: change Device::PeriodicCb signature
...
Remove bool return as it's never being used and not supported on PX4.
8 years ago
Andrew Tridgell
43bac678cd
AP_Airspeed: Added MS5525 airspeed driver
...
also improved averaging in MS4525 driver
8 years ago
Andrew Tridgell
04731dccd6
AP_Airspeed: rename MS4525 driver
...
ready for new driver types
8 years ago
Andrew Tridgell
14a1f559c7
AP_Airspeed: added ARSPD_TYPE and use standard driver backend methods
...
this will allow for new sensor types
8 years ago
Andrew Tridgell
497b87fa65
AP_Airspeed: switched to in-tree I2C driver for all boards
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
William Liu
cc28c8e6ee
AP_Airspeed: AP_Airspeed_I2C: get the right status according to datasheet
9 years ago
Andrew Tridgell
003c94830b
AP_Airspeed: added ARSP_PSI_RANGE parameter
...
for using pressure sensors with a different range
9 years ago
Andrew Tridgell
28d5103435
AP_Airspeed: initial support for MS4515DO on Disco
9 years ago
Lucas De Marchi
de5025a46f
AP_Airspeed: I2C: fix after conversion to I2CDevice
...
- Allow to fail init
9 years ago
Luiz Ywata
6c87b2aa7c
AP_Airspeed: AP_Airspeed_I2C: use I2CDevice interface
9 years ago
Lucas De Marchi
cc4504e613
AP_Airspeed: fix coding style
...
- replace tabs with spaces
- remove C-style void from function arguments
- use pragma once
- fix pointer alignement
- remove unused header: AP_Airspeed_I2C_PX4 - we actually use
AP_Airspeed_PX4
9 years ago
Caio Marcelo de Oliveira Filho
2b10e0fac0
AP_Airspeed: use millis/micros/panic functions
9 years ago
Gustavo Jose de Sousa
d42b132507
AP_Airspeed: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Lucas De Marchi
cc1fbddc95
AP_Airspeed: use functor macros
...
Functor is not yet being used but let's make is macro fallback to the
previous Delegate implementation for easy of transition between the two.
10 years ago
Andrew Tridgell
dcd7f9d26d
AP_Airspeed: use raw (signed) airspeed
...
this allows us to detect when the user has the ports the wrong way
around, and mark the sensor unhealthy
11 years ago
Andrew Tridgell
c64aa0e4de
AP_Airspeed: fixed I2C semaphore handling for I2C airspeed
...
this affects MS4525DO on APM2
11 years ago
Andrew Tridgell
2095b2a2d7
AP_Airspeed: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
291369db7f
AP_Airspeed: split up airspeed driver
...
this gives us separate backends for PX4, analog and I2C. This allows
the MS airspeed sensor to work on Linux, and it should work on APM2 as well.
12 years ago