Peter Barker
996399331b
AP_Airspeed: allow more libraries to compile with no HAL_GCS_ENABLED
2023-09-05 22:23:51 +10:00
Peter Barker
c88a53b662
AP_Airspeed: tidy AP_Airspeed includes, use AP_AIRSPEED_ENABLED properly
2023-07-18 11:03:07 +10:00
murata
7ef7db717c
AP_Airspeed: Delete unused definitions
2022-09-15 09:52:54 +10:00
Andrew Tridgell
ee5fc4ad8e
AP_Airspeed: use row_times_mat
2022-09-11 07:57:16 +10:00
Andrew Tridgell
61a27698da
AP_Airspeed: fixed airspeed cal on 2nd airspeed sensor
...
we need to use the pressure from the sensor we are calibrating
2022-05-17 19:34:32 +10:00
Hwurzburg
615b8add8c
AP_Airspeed: add inflight airspeed cal rc switch
2020-11-25 21:30:15 +11:00
Andrew Tridgell
f51378f2e8
AP_Airspeed: enable for use in AP_Periph
2019-10-21 19:12:01 +11:00
Peter Barker
ef8baf28ad
AP_Airspeed: clarify mavlink packet assembly is re-ordered field order
...
This makes it clear that the fields must be arranged according to the
order in the header file rather than that in the message definition
2019-07-11 11:53:35 +10:00
Peter Barker
04ebb9de0b
AP_Airspeed: use send_to_active_channels for airspeed_autocal
2019-06-29 16:04:26 +10:00
Michael du Breuil
e43605cc9b
AP_Airspeed: Remove a number of unneeded top level includes
2019-06-27 14:56:21 +10:00
Peter Barker
5cfba85095
AP_AirSpeed: take EAS2TAS directory from baro; use for all backends
...
Plane was only setting EAS2TAS in the primary frontend; calibration
expected it to be set on each instance.
2019-06-06 12:44:36 +10:00
Peter Barker
c25ce2cee8
AP_AirSpeed: move sending of airspeed_autocal into AP_AirSpeed
2019-03-06 11:32:52 +11: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
Andrew Tridgell
2c68b5dac3
AP_Airspeed: fixed airspeed autocal
...
don't use negative pressures
2017-09-22 18:24:29 +10: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
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
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
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
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
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
2015-12-01 16:28:09 -02:00
Lucas De Marchi
221d822573
AP_Airspeed: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
2015-11-04 12:14:11 +11:00
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.
2015-08-11 16:28:42 +10:00
Andrew Tridgell
6b87c9fdf7
AP_Airspeed: avoid some float conversion warnings
2014-07-08 20:26:44 +10:00
Andrew Tridgell
b8e4e35a0d
AP_Airspeed: use pythagorous3()
2014-04-01 22:15:12 +11:00
Andrew Tridgell
9ab1a79b5a
AP_Airspeed: changed sqrt() to sqrtf()
2014-04-01 22:09:21 +11:00
Andrew Tridgell
2e742582e4
AP_Airspeed: changed to AP_Vehicle.h
...
also allow updates to ARSPD_RATIO from user while autocal is running
2013-09-13 11:45:57 +10:00
Andrew Tridgell
b7e54bd463
AP_Airspeed: reduce speed of autocal
...
it was responding to noise too rapidly
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
2013-09-12 07:48:57 +10:00
Andrew Tridgell
1328316bfc
AP_Airspeed: fixed saving of airspeed ratios
2013-08-31 10:26:27 +10:00
Paul Riseborough
1c7bdc40ec
AP_Airspeed : Expanded range of ARSPD_RATIO adjustment
2013-08-31 08:03:11 +10:00
Andrew Tridgell
0c06dff2db
AP_Airspeed: constrain internal state of calibration code
2013-08-30 13:01:34 +10:00
Andrew Tridgell
3916a07dcf
AP_Airspeed: added logging of airspeed calibration internals
2013-08-30 13:01:34 +10:00
Paul Riseborough
5a68c515dc
AP_Airspeed: Altitude Calibration - added constrain on P matrix diagonals
2013-07-22 12:50:02 +10:00
Andrew Tridgell
3ba0dec4b3
AP_Airspeed: fixed typo
2013-07-22 12:50:02 +10:00
Paul Riseborough
d1805f4349
AP_Airspeed: Airspeed Calibration computational efficiency improvement
2013-07-22 12:50:02 +10:00
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
2013-07-22 12:50:01 +10:00
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>
2013-07-22 12:50:01 +10:00