TsuyoshiKawamura
8faadc2ebb
AP_Airspeed: removed #include duplicates
2019-01-03 09:40:50 +09:00
DOMINATOR\Eugene
d3eb24bc01
AP_Airspeed: Temperature conversion in consistence with other libraries
2018-11-19 17:31:12 +00:00
DOMINATOR\Eugene
c81f9e6baa
AP_Airspeed: update data with logging
2018-11-17 07:52:42 +11:00
Andrew Tridgell
fe064a2d4e
AP_Airspeed: use WITH_SEMAPHORE()
...
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Michael du Breuil
88aa20d691
AP_Airspeed: Make user facing messages clearer, improve handling of bad tube order
2018-10-02 06:28:47 +10:00
liang.tang
653766c4cc
AP_Airspeed: uavcan airspeed supported
2018-09-05 17:22:08 +10:00
liang.tang
f4a8006333
AP_Airspeed: fix spd3x correct pressure issue
2018-09-02 16:38:51 -07:00
Michael du Breuil
f2b4e06a1a
AP_Airspeed: Add 5"H2O DLVR differential sensor driver
2018-08-08 09:07:17 +10:00
Michael du Breuil
6225f51815
AP_Airspeed: Remove APM doc references
2018-08-01 09:24:26 +10:00
Michael du Breuil
fc44f693e5
AP_Airspeed: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Michael du Breuil
57f3e9cd88
AP_Airspeed: Remove unused ADC include
2018-07-17 09:29:50 +10:00
Andrew Tridgell
8a2f1fdb3d
AP_Airspeed: fixed airspeed filtering issue
...
this fixes an issue where an airspeed sensor that becomes unhealthy
can have an undue effect after the sensor becomes healthy again.
In a recent flight log the MS4525 airspeed sensor went unhealthy for a
few seconds, and at the same time gave a reading of 12m/s. The plane
was flying at 24m/s. While the sensor was unhealthy the code correctly
switched to the airspeed estimate, which was fine.
When the airspeed sensor become healthy again the IIR filter in
AP_Airspeed meant that the speed read at 12m/s initially, then came up
to 24m/s over a couple of seconds. This caused the VTOL motors to come
on for a few seconds.
2018-06-14 09:13:30 +10:00
Michael du Breuil
abd5bffda5
AP_Airspeed: Clean up some comments, prevent a potential out of range access
2018-05-29 00:10:40 +01:00
Patrick José Pereira
237101a50e
AP_Airspeed: Use SSL air density
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-05-23 02:36:43 +01:00
Michael du Breuil
f6624cc8b2
AP_Airspeed: Use named float wrapper
2018-05-17 00:59:45 +01:00
Peter Barker
30f944b921
AP_AirSpeed: notify of calibration start
2018-04-02 23:25:05 +01:00
Michael du Breuil
a46c60f4de
AP_Airspeed: Create a singleton
2018-03-21 13:36:35 +00:00
Tom Pittenger
b1a4540359
Revert "AP_Airspeed: blending of several sensors and failure recognition"
...
This reverts commit 26c7614118
.
2018-03-09 13:12:05 -08:00
Eugene Shamaev
26c7614118
AP_Airspeed: blending of several sensors and failure recognition
2018-03-09 11:27:20 -08:00
Peter Barker
a7647e77d9
AP_Airspeed: fix compiler warnings
...
In file included from
../../libraries/AP_Airspeed/AP_Airspeed_SDP3X.cpp:21:
../../libraries/AP_Airspeed/AP_Airspeed_SDP3X.h:57:11: warning: private
field '_temperature' is not used [-Wunused-private-field]
float _temperature;
^
../../libraries/AP_Airspeed/AP_Airspeed_SDP3X.h:58:11: warning: private
field '_pressure' is not used [-Wunused-private-field]
float _pressure;
2018-03-02 09:26:37 +09:00
David Ingraham
2547ca399a
AP_Airspeed: Fix ARSPD2_TYPE docs
2018-01-26 13:19:53 -08:00
Andrew Tridgell
58b0ac07ec
AP_Airspeed: support dual airspeed sensors
...
allow for a primary and secondary airspeed sensor
2018-01-16 07:14:20 +11:00
rde-mato
87e3777f67
AP_Airspeed: added SDP3X airspeed sensor driver
2018-01-16 07:14:20 +11:00
Michael du Breuil
5fedc65efb
AP_Airspeed: Allow specifying the MS5525 address
2018-01-10 17:49:35 +00:00
Andrew Tridgell
55f73f4163
AP_Airspeed: fixed timing errors in MS5525 driver
...
this fixes issue #7188 , where we could read from the MS5525 sensor too
soon after requesting data and the result coming back would be garbage
2017-12-27 11:05:54 -08:00
Hiroshi Takey (hiro2233)
fb5b6f2169
AP_Airspeed: Updated Airspeed example.
2017-12-26 14:57:58 +00:00
Andrew Tridgell
8c1cf9affe
AP_Airspeed: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Peter Barker
1e512338f9
AP_AirSpeed: clarify comment
2017-11-23 10:40:30 +11:00
Lucas De Marchi
69b6d95cb2
global: use static method to construct AP_Board_Config{,_CAN}
2017-09-26 03:01:21 +01:00
Andrew Tridgell
2c68b5dac3
AP_Airspeed: fixed airspeed autocal
...
don't use negative pressures
2017-09-22 18:24:29 +10:00
Mark Whitehorn
f32f51f843
AP_Airspeed: eliminate airspeed positive bias
2017-09-22 18:21:09 +10:00
Lucas De Marchi
e2e836f676
AP_Airspeed: use FALLTHROUGH define
...
When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
2017-08-22 23:59:13 -07:00
Francisco Ferreira
d3ed4420e6
AP_Airspeed: remove unused MS4525D0_I2C_BUS macro
2017-08-05 03:15:52 +01:00
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.
2017-08-05 03:15:32 +01:00
Peter Barker
3214b48f8c
AP_AirSpeed: eliminate GCS_MAVLINK::send_statustext_all
2017-07-11 23:53:53 +01:00
Andrew Tridgell
7b73004882
AP_Airspeed: added ARSPD_USE=2 for gliders
2017-05-04 22:59:02 -07:00
Pierre Kancir
3f4a3e535b
AP_Airspeed: example fix travis warning
...
missing function declaration
implicit cast
some style fix
2017-04-13 19:56:16 +01:00
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
2017-04-04 08:40:31 +10:00
Michael du Breuil
4932a8b9ef
Airspeed: Sanity check MS4525DO data, and utilize a double read
2017-04-01 11:19:39 +11:00
murata
af65be5aa4
AP_Airspeed: Change from magic number 0 to definition name.
2017-02-18 14:12:36 +00:00
murata
743d6e6db4
AP_Airspeed: Unify from print or println to printf.
2017-01-27 18:20:22 +11:00
Lucas De Marchi
f6a4a4dbe8
AP_Airspeed: MS5525: use common macros to deal with endianness
...
Instead of calling a special method in the device, just use be16toh()
which is implemented for all platforms in our special sparse-endian.h
file. It has the advantage of using a special type for different
endianness and makes no assumption we are running on LE.
2017-01-26 23:18:27 -08:00
Lucas De Marchi
5472bc4de1
Global: change Device::PeriodicCb signature
...
Remove bool return as it's never being used and not supported on PX4.
2017-01-14 10:03:54 +11:00
Tom Pittenger
84bdf15203
AP_Airspeed: updated comment to match PR
2016-12-05 17:19:57 -08:00
Andrew Tridgell
43bac678cd
AP_Airspeed: Added MS5525 airspeed driver
...
also improved averaging in MS4525 driver
2016-12-05 16:51:49 -08:00
Andrew Tridgell
04731dccd6
AP_Airspeed: rename MS4525 driver
...
ready for new driver types
2016-12-05 16:51:49 -08:00
Andrew Tridgell
14a1f559c7
AP_Airspeed: added ARSPD_TYPE and use standard driver backend methods
...
this will allow for new sensor types
2016-12-05 16:51:49 -08:00
Andrew Tridgell
497b87fa65
AP_Airspeed: switched to in-tree I2C driver for all boards
2016-11-09 17:07:59 +11:00
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
2016-11-02 16:04:47 -02:00
Peter Barker
42f3f7195b
AP_Airspeed: add missing parameter metadata
2016-10-27 09:15:03 -07:00