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
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.
2016-10-24 09:42:01 -02:00
Lucas De Marchi
ae53920e5b
build: don't build examples with old build system
...
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file. Having the makefiles
there is misleading since people try to build and realize the build is
broken.
2016-10-11 13:03:08 +11:00
Andy Little
0d113b265c
Examples: fix examples for px4
...
The change to use AP_BoardConfig messed up the examples. Here are some
updated but there are plenty more to do.
2016-10-04 12:50:47 -03:00
William Liu
cc28c8e6ee
AP_Airspeed: AP_Airspeed_I2C: get the right status according to datasheet
2016-09-09 10:32:14 -07:00
Tom Pittenger
a66e248f5c
AP_Airspeed: remove AP_Vehicle::FixedWing dependency
2016-08-08 00:12:42 -07:00
Tom Pittenger
ce7b766d8b
AP_Airspeed: remove AP_Vehicle::FixedWing dependency
2016-08-08 00:02:42 -07:00
Tom Pittenger
ae46c38ff7
AP_Airspeed: pass in max airspeed via function call instead of using aparm
2016-08-08 00:02:42 -07:00
Tom Pittenger
1586abab8d
Revert "AP_Airspeed: Converted library to be stand-alone from APM:Plane."
...
This reverts commit 5439257236
.
2016-08-07 17:54:24 -07:00
LukeMike
4d8e7f1783
VRBRAIN / AP_Airspeed: defined ARSPD_DEFAULT_PIN for VR Brain 5.4 and VR Core 1.0
2016-08-07 20:31:51 +10:00
Tom Pittenger
c07b85f9bb
AP_Airspeed: set param "Enable" to be FLAG_ENABLE
2016-08-04 11:30:22 -07:00
AndersonRayner
5439257236
AP_Airspeed: Converted library to be stand-alone from APM:Plane.
...
Additional changes:
ARSPD_FBW_MIN and ARSPD_FBW_MAX renamed to ARSPD_MIN and ARSPD_MAX
ARSPD_MIN and ARSPD_MAX changed to floats
2016-08-04 10:09:04 -07:00
Andrew Tridgell
003c94830b
AP_Airspeed: added ARSP_PSI_RANGE parameter
...
for using pressure sensors with a different range
2016-07-20 13:38:22 +10:00
Andrew Tridgell
28d5103435
AP_Airspeed: initial support for MS4515DO on Disco
2016-07-20 13:38:18 +10:00
Lucas De Marchi
de5025a46f
AP_Airspeed: I2C: fix after conversion to I2CDevice
...
- Allow to fail init
2016-07-14 17:32:32 -03:00
Luiz Ywata
6c87b2aa7c
AP_Airspeed: AP_Airspeed_I2C: use I2CDevice interface
2016-07-14 17:32:32 -03:00
Tom Pittenger
9fb4a928e5
Revert "AP_Airspeed: coverity scan - variables not initialized in constructor"
...
This reverts commit 93462d0fe3
.
2016-07-11 22:02:22 -07:00
Tom Pittenger
93462d0fe3
AP_Airspeed: coverity scan - variables not initialized in constructor
2016-07-05 13:32:00 -07:00
Andrew Tridgell
689595080a
AP_Airspeed: ensure we have at least 10 samples for airspeed cal
...
thanks to Michael for pointing out this issue
2016-06-27 10:52:59 +10:00
Andrew Tridgell
4131b98f8c
AP_Airspeed: use non-blocking airspeed calibration
...
this prevents the EKF from being upset by a time jump
2016-05-24 17:00:56 +10:00
Lucas De Marchi
62f048c417
AP_Airspeed: remove support for flymaple
2016-05-23 21:49:45 -03:00
Tom Pittenger
2e1eef7cf0
AP_Airspeed: airspeed healthy should also check if enabled
2016-05-13 17:14:55 -07:00
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
2016-05-10 11:41:26 -03:00
AndersonRayner
74b9f624a3
Added temperature to the Airspeed.cpp example script
...
Fixed the formatting of the output data
2016-04-29 17:59:11 -03:00
Staroselskii Georgii
3feade792a
AP_Airspeed: changed default pin for Navio boards
...
Use channel 5 (i.e. /sys/kernel/adc/ch5) for Airspeed sensors instead of virtual 65 that doesn't
make sense on these boards.
2016-04-27 15:37:34 +03:00
Randy Mackay
04b2e65627
AP_Airspeed: remove unused _last_pin
...
Resolves a compiler warning
2016-04-23 23:06:21 -07:00
Lucas De Marchi
ffe36afeb2
AP_Airspeed: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
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
2016-02-16 19:49:09 -02:00
Gustavo Jose de Sousa
c2e3f05dbf
waf: ardupilotwaf: prefix build context methods with ap_
...
It helps to distinguish between things from waf and things from ardupilotwaf.
2016-01-22 20:10:29 -02:00