Tom Pittenger
ce7b766d8b
AP_Airspeed: remove AP_Vehicle::FixedWing dependency
9 years ago
Tom Pittenger
ae46c38ff7
AP_Airspeed: pass in max airspeed via function call instead of using aparm
9 years ago
Tom Pittenger
1586abab8d
Revert "AP_Airspeed: Converted library to be stand-alone from APM:Plane."
...
This reverts commit 5439257236
.
9 years ago
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
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
Tom Pittenger
9fb4a928e5
Revert "AP_Airspeed: coverity scan - variables not initialized in constructor"
...
This reverts commit 93462d0fe3
.
9 years ago
Tom Pittenger
93462d0fe3
AP_Airspeed: coverity scan - variables not initialized in constructor
9 years ago
Andrew Tridgell
689595080a
AP_Airspeed: ensure we have at least 10 samples for airspeed cal
...
thanks to Michael for pointing out this issue
9 years ago
Andrew Tridgell
4131b98f8c
AP_Airspeed: use non-blocking airspeed calibration
...
this prevents the EKF from being upset by a time jump
9 years ago
Tom Pittenger
2e1eef7cf0
AP_Airspeed: airspeed healthy should also check if enabled
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
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
Emile Castelnuovo
25818f08a3
AP_Airspeed: added VRBRAIN board type
10 years ago
Andrew Tridgell
2235d18d67
AP_Airspeed: make it possible to tell if a airspeed sensor is unhealthy
...
we need use() to reflect if the user wants to use the sensor, so the
arming checks can tell if it is not working as expected
10 years ago
Andrew Tridgell
258542b939
AP_Airspeed: added ARSPD_SKIP_CAL parameter
...
allows airspeed calibration to be skipped for easier startup
10 years ago
Andrew Tridgell
9c631944f7
AP_Airspeed: expose raw pressure for logging
10 years ago
Andrew Tridgell
ef0eca4835
AP_Airspeed: fixed airspeed in Replay
10 years ago
Andrew Tridgell
a4cd9c4bd7
AP_Airspeed: added HIL support
11 years ago
Randy Mackay
4cf7f01694
AP_Airspeed: init members to reduce compiler warnings
11 years ago
Andrew Tridgell
ad4db4de6c
AP_Airspeed: added setHIL() method
...
useful for log playback
11 years ago
Andrew Tridgell
03cc777991
AP_Airspeed: added last_update_ms() interface
11 years ago
Andrew Tridgell
d853d65b84
AP_Airspeed: added ARSPD_TUBE_ORDER parameter
...
This allows for either order of tube connection by default, but the
order can be specified if need be
11 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
cf1f05a198
AP_Airspeed: expose get_temperature()
11 years ago
Andrew Tridgell
c22df0fa60
AP_Airspeed: fixed a build warning
11 years ago
Andrew Tridgell
9d7f24f754
AP_Airspeed: added healthy() API
11 years ago
Paul Riseborough
71de4ddcd0
AP_Airspeed : Fixes bug that caused airspeed calibration to be sent a zero airspeed
...
This bug resulted in the airspeed ratio going to the maximum value of 4 and staying there. This could lead to a very slow flying model and a stall.
11 years ago
Andrew Tridgell
e60d5d4f33
AP_Airspeed: fixed some warnings
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
Andrew Tridgell
2e742582e4
AP_Airspeed: changed to AP_Vehicle.h
...
also allow updates to ARSPD_RATIO from user while autocal is running
12 years ago
Andrew Tridgell
3916a07dcf
AP_Airspeed: added logging of airspeed calibration internals
12 years ago
Andrew Tridgell
3c66cb8af1
AP_Airspeed: added EAS2TAS in airspeed driver
...
this keeps the true airspeed ratio in the airspeed driver, which seems
the most logical place
12 years ago
Andrew Tridgell
893d2da6f6
AP_Airspeed: added auto-calibration support
...
This uses a Kalman filter to calculate the right ARSPD_RATIO at runtime
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
12 years ago
Andrew Tridgell
9d66adae13
AP_Airspeed: added get_airspeed_ratio() and set_airspeed_ratio()
...
This is to help Paul develop an automatic tuning system for airspeed
ratio
12 years ago
Andrew Tridgell
68adeb041d
AP_Airspeed: support ARSPD_PIN option for choosing source
...
this gives us support for arbitrary analog pins for the airspeed
sensor, plus support for the EagleTree airspeed driver on PX4
12 years ago
Andrew Tridgell
00e905b025
AP_Airspeed: use new voltage_average() API in Airspeed driver
12 years ago
Andrew Tridgell
b5a23d934b
Airspeed: updates for new AP_Param API
12 years ago
Pat Hickey
7017a35fc3
AP_Airspeed: fix for AnalogIn read_average
12 years ago
Pat Hickey
dfc8e91fd3
AP_Airspeed: port to AP_HAL
12 years ago
Andrew Tridgell
0c864fd4dc
AP_Airspeed: a bit more filtering
...
this helps reduce noise at low speed
13 years ago
uncrustify
90419ad834
uncrustify libraries/AP_Airspeed/AP_Airspeed.h
13 years ago
Andrew Tridgell
47be6d8ad1
AP_Airspeed: remove airspeed filter and run at 10Hz
...
this saves on the filter memory, and gives just as good a result
13 years ago
Andrew Tridgell
f95b06a880
AHRS: make airspeed sensor available to AHRS
...
this will be used for long term dead-reckoning
13 years ago
Andrew Tridgell
dcc50b5705
AP_Airspeed: removed values passed to constructor
13 years ago
Andrew Tridgell
feb456de56
Airspeed: Added AP_Airspeed sensor library
...
this will allow an airspeed sensor object to be passed to AHRS for
dead reckoning
13 years ago