Patrick José Pereira
b014b6c857
AP_Baro: Use SSL variables
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Patrick José Pereira
f22f053c83
AP_Baro: Use C_TO_KELVIN
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Patrick José Pereira
c7f832e81f
AP_Baro: Add SimpleUnderWaterAtmosphere function
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 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
Andrew Tridgell
8b7bf5cf7a
AP_Baro: allow setHIL to set last update time
9 years ago
Andrew Tridgell
0b71652afc
AP_Baro; allow for exact replay of baro data
9 years ago
Andrew Tridgell
8a987bf67d
AP_Baro: removed filtering of baro data in HIL/SITL
...
this was just causing lag in replay and doesn't actually help in SITL
9 years ago
Lucas De Marchi
81a298c9c8
AP_Baro: reduce header scope
...
We don't need to expose to other libraries how each backend is
implemented. AP_Baro.h is the main header, included by other libraries.
Instead of including each backend in the main header, move them to where
they are needed. Additionally standardize the order and how we include
the headers.
The advantages are:
- Internals of each backend is not exposed outside of the
library
- Faster incremental builds since we don't need to recompile
whoever includes AP_Baro.h because a backend changed
9 years ago
wsilva32
da9118fbd0
AP_Baro: average SITL baro measurements using update()
9 years ago
Gustavo Jose de Sousa
f18802bc46
AP_Baro: 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
Andrew Tridgell
5bb57a31f7
AP_Baro: split into frontend/backend
...
this allows for support of multiple sensors on a board
10 years ago
Andrew Tridgell
8b794602d1
AP_Baro: make get_temperature() a const function
10 years ago
Randy Mackay
72f6985bd8
Baro_HIL: use healthy flag
11 years ago
Andrew Tridgell
a458f1bf5f
AP_Baro: minor improvements to Baro HIL code health check
11 years ago
Andrew Tridgell
74c3b404ee
AP_Baro: avoid some float conversion warnings
11 years ago
Andrew Tridgell
b2bd81f262
AP_Baro: added alternative setHIL interface
...
uses pressure and temperature for better log replay
11 years ago
Andrew Tridgell
2cd781997f
AP_Baro: changed HIL driver to use floats and better handle starup
11 years ago
Andrew Tridgell
3393a5c99e
AP_Baro: prevent a race condition in the SITL baro driver
11 years ago
Andrew Tridgell
fc119d9b80
AP_Baro: cleaned up temperature and pressure units
...
thanks to Mike McCauley for pointing this out
12 years ago
Paul Riseborough
ba009e55e3
AP_Baro : Fixed bug in temperature units in AP_Baro_HIL
12 years ago
Andrew Tridgell
ebebee4f06
AP_Baro: extend the atmospheric model to higher altitudes
12 years ago
Andrew Tridgell
0c6725f289
AP_Baro: improved the accuracy of the barometer model
12 years ago
Andrew Tridgell
26bf636541
AP_Baro: fixed a build warning
12 years ago
Andrew Tridgell
7cec3caf19
AP_Baro: cleaned up setHIL method
...
move pressure calculation into library
12 years ago
Andrew Tridgell
c6c1fce2f1
AP_Baro: removed HIL constructor
...
this wasn't calling the parent class
12 years ago
Andrew Tridgell
2d089174cd
AP_Baro: rename AP_Baro_BMP085_HIL to AP_Baro_HIL
...
there is nothing specific to the BMP085 in it
12 years ago
Pat Hickey
5d40074e4e
AP_Baro: port to AP_HAL
12 years ago
uncrustify
b39411e8d4
uncrustify libraries/AP_Baro/AP_Baro_BMP085_hil.cpp
13 years ago
Andrew Tridgell
c9ba693e1f
AP_Baro: the HIL baro needs to inherit calibrate() from the parent class
...
this was what caused the renorm errors
13 years ago
Andrew Tridgell
034fb5b194
APM: fixed hil build
13 years ago
Andrew Tridgell
f501503eb0
AP_Baro: improved barometer averaging
...
this changes the barometer calculations to floating point. On a MS5611
this is actually about twice as fast as the previous 64 bit
calculations, but gains us more accuracy as we are able to take
advantage of sub-bit precision when we average over 8 samples.
13 years ago
Andrew Tridgell
209136386b
AP_Baro: added get_pressure_samples() interface
...
this returns how many samples were used to calculate the last pressure
13 years ago
Andrew Tridgell
c387edd74c
Baro: added get_altitude() and get_climb_rate() interfaces
...
this allows the barometer driver to calibrate and return altitude and
climb rate values. This will be used by the AHRS drift correction code
for vertical velocity
The climb rate uses a 5 point average filter
13 years ago
Randy Mackay
ed19c25a97
Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h".
...
Modified FastSerial's write function to return size_t (number of bytes written).
13 years ago
Andrew Tridgell
7ba744a11a
I2C: convert barometer library to new I2C library
...
this also adds a healthy attribute and error checking
13 years ago
Andrew Tridgell
3648c81dd9
barometer: fixed HIL barometer build
13 years ago
Pat Hickey
f445ec1242
AP_Baro_BMP085(+_HIL): Rename classes from APM_BMP085 to AP_Baro_BMP085.
13 years ago
Pat Hickey
7ef146044e
AP_Baro: move all APM_BMP085 files inside AP_Baro
13 years ago
Andrew Tridgell
02f25ac36d
libraries: rename purple to APM2
13 years ago
Pat Hickey
2d8ce38aeb
barometer: add purple_hardware option to Init()
...
this allows selection of right hardware at Init() time
13 years ago
Michael Oborne
7ef51f723d
Sensor hil fix's
14 years ago