Pierre Kancir
3f4a3e535b
AP_Airspeed: example fix travis warning
...
missing function declaration
implicit cast
some style fix
8 years ago
murata
743d6e6db4
AP_Airspeed: Unify from print or println to printf.
8 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
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.
8 years ago
Tom Pittenger
a66e248f5c
AP_Airspeed: remove AP_Vehicle::FixedWing dependency
9 years ago
Tom Pittenger
ce7b766d8b
AP_Airspeed: remove AP_Vehicle::FixedWing dependency
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
AndersonRayner
74b9f624a3
Added temperature to the Airspeed.cpp example script
...
Fixed the formatting of the output data
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
Lucas De Marchi
7c78955591
AP_Airspeed: remove unused AP_ADC_AnalogSource
9 years ago
Caio Marcelo de Oliveira Filho
410bbe4c26
AP_Airspeed: examples use millis/micros/panic functions
9 years ago
Andrew Tridgell
a3ca732403
AP_Airspeed: show health status in examples
9 years ago
Lucas De Marchi
221d822573
AP_Airspeed: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
Caio Marcelo de Oliveira Filho
817248b2f5
AP_Airspeed: remove unnecessary includes from example
9 years ago
Caio Marcelo de Oliveira Filho
2e464a53c2
AP_HAL: make code not depend on concrete HAL implementations
...
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.
A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.
The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.
Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.
The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
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
Andrew Tridgell
e66b56970e
AP_Airspeed: convert example from .pde to .cpp
10 years ago
Randy Mackay
2a6421d1bf
Airspeed: fix example sketch
10 years ago
Andrew Tridgell
c565d3b805
AP_Airspeed: fixed example build
10 years ago
Randy Mackay
293eb74a37
AirSpeed: fix example sketch
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
f6f51ceebe
AP_Airspeed: fixed example build
11 years ago
Andrew Tridgell
c1646fec73
AP_Airspeed: fixed example build
11 years ago
Andrew Tridgell
0f7e78e418
Airspeed: fixed example to setup pin
11 years ago
Andrew Tridgell
dbd8f4b735
AP_Airspeed: fixed example build
11 years ago
Randy Mackay
c18b3f6094
AP_Airspeed: fix example sketch
11 years ago
Andrew Tridgell
a339ec25c8
AP_Airspeed: fixed example build
11 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
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
Andrew Tridgell
69c8df3326
AP_Airspeed: fixed example build
...
removed Airspeed_Calibration test, as it is not useful
12 years ago
Andrew Tridgell
98d6331387
AP_Airspeed: fixed example build
12 years ago
Randy Mackay
6cd18868c2
AirSpeed: fix example sketch compile error
12 years ago
Andrew Tridgell
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
12 years ago
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
12 years ago
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
12 years ago
Andrew Tridgell
53105efbcd
HAL_AVR: more uart0 -> console changes
12 years ago
Pat Hickey
dfc8e91fd3
AP_Airspeed: port to AP_HAL
12 years ago
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
12 years ago
rmackay9
56f88821e9
AP_AHRS: fix example sketch
...
AP_Airspeed: fix example sketch
AP_Baro: fix example sketch
AP_Declination: fix example sketch
AP_Math: fix example sketch
12 years ago
rmackay9
e4c8eaa181
AP_Airspeed: fixed constructor compile error in example sketch
13 years ago
uncrustify
3c2873b4f5
uncrustify libraries/AP_Airspeed/examples/Airspeed/Airspeed.pde
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