Randy Mackay
9b940687c1
AP_RangeFinder: rename CompanionComputer files to MAVLink
9 years ago
Randy Mackay
c541cb27f8
AP_RangeFinder: rename CompanionComputer to MAVLink
9 years ago
Allan Matthew
d3831e4a5d
RangeFinder: add MAVLink rangefinder
9 years ago
Julien Beraud
33a699f29c
AP_RangeFinder: Add support for bebop Rangefinder
...
This rangefinder uses an spi device to send pulses and an iio driver
in buffer mode to get data
The data is then analyzed and the maximum pulse received is considered to
represent the echo of the pulses that have been sent. The distance in time
between the pulse that is sent and the pulse with the maximum amplitude
is used to calculate the altitude based on the speed of sound.
There is a dependency with libiio, and in order to build, there is a need
to provide a rootfs that includes libiio.a.
The other solution is to build dynamically after having updated the rootfs
to use on compiled with a more recent toolchain and include libiio
9 years ago
Tom Pittenger
6718241dad
cleanup comments
9 years ago
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'
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Randy Mackay
2deaf5280e
RangeFinder: add User to param descriptions
...
First sensor appears in standard list, second in advanced
9 years ago
Andrew Tridgell
5800f0c884
AP_RangeFinder: default to two rangefinders
...
and fixed documentation strings for rangefinder 3 and 4 if enabled
10 years ago
Andrew Tridgell
8538aa9840
AP_Rangefinder: allow for up to 4 rangefinders
10 years ago
Andrew Tridgell
6afb3895c0
AP_RangeFinder: added doc strings for new rangefinder types
10 years ago
Andrew Tridgell
7d30ce2e36
AP_RangeFinder: added lightware serial rangefinder
10 years ago
Grant Morphett
bec21a51a4
AP_RangeFinder: Just fixing the parameter name in the description
10 years ago
Andrew Tridgell
dff235dc36
AP_RangeFinder: support LightWare I2C laser rangefinders
...
this has been tested with the SF10/C
10 years ago
mirkix
1b0f482d37
AP_RangeFinder: Add support for HC-SR04 Range Finder connected to BBB
10 years ago
Randy Mackay
d366c30358
AP_RangeFinder: fix potential out-of-bounds read
...
Issue found by Coverity
10 years ago
Randy Mackay
ac76562638
RangeFinder: init state and drivers
...
resolves a coverity defect
10 years ago
Tom Pittenger
6acd92be1e
AP_RangeFinder: compiler warnings: compare signed to unsigned
10 years ago
Tom Pittenger
5ead138917
RangeFinder: fix compile warnings re float constants
10 years ago
Randy Mackay
7663b8eade
RangeFinder: replace healthy with status and no_data methods
10 years ago
Randy Mackay
8ed6207ca8
RangeFinder: add pre-arm checks
10 years ago
Randy Mackay
f1cbd1f03b
RangeFinder: add ground clearance parameter
10 years ago
Andrew Tridgell
389148ac54
AP_RangeFinder: use RNGFND_OFFSET for distance offset in PWM and I2C
10 years ago
Andrew Tridgell
a6d76b4e03
AP_RangeFinder: added PX4-PWM rangefinder
...
uses PWM input driver to read a rangefinder
10 years ago
Emile Castelnuovo
c38b11eec8
AP_RangeFinder: added VRBRAIN to use PX4 libraries
10 years ago
Emile Castelnuovo
b0b892e578
AP_Rangefinder: added support for VRBRAIN boards
10 years ago
Randy Mackay
01c669ee15
RangeFinder: minor param description update
...
Also initialise primary instance to 0.
No functional change.
10 years ago
Andrew Tridgell
2eeec3fabe
AP_RangeFinder: fixed oversized parameter RNGFND2_SETTLE_MS
10 years ago
Andrew Tridgell
70ca87c4e6
AP_RangeFinder: handle all I2C rangefinder types on PX4 in PX4Firmware
10 years ago
Randy Mackay
b3bbec24e4
RangeFinder: TYPE param description to PX4-I2C
11 years ago
Randy Mackay
8ce4893180
RangeFinder: TYPE param description to PX4-MaxbotixI2C
...
This hopefully reduces confusion for PX4/Pixhawk users with MaxBotix I2C
sonar
11 years ago
Andrew Tridgell
b38c9544f9
AP_RangeFinder: make values clearer for APM2
11 years ago
akdslr
54d0db863b
AP_RangeFinder: Changed sonar to rangefinder in the parameter descriptions
11 years ago
akdslr
8c6718fe2d
AP_RangeFinder: Removed the use of type Auto
11 years ago
Andrew Tridgell
f6d9bc5d7e
AP_RangeFinder: fixed detection of multiple types
...
Pair-Programmed-With: Allyson Kreft
11 years ago
Andrew Tridgell
9386295428
AP_RangeFinder: added SONAR2_TYPE parameter
...
thanks to Allyson for noticing
11 years ago
Andrew Tridgell
05d4f5fb5a
AP_RangeFinder: convert PX4 driver to new API
11 years ago
Andrew Tridgell
ed346fd639
AP_RangeFinder: convert MaxbotixI2C driver to new API
11 years ago
Andrew Tridgell
0063d83dbc
AP_RangeFinder: convert the PulsedLight driver to new API
...
not tested yet
11 years ago
Andrew Tridgell
6f33ca4988
AP_RangeFinder: added SONAR_RMETRIC option
...
this allows correct support for non-ratiometric rangefinders such as
the SF/02
11 years ago
Andrew Tridgell
cb037f3416
AP_RangeFinder: new rangefinder API ready for its first backend
...
the backends are setup to have just the minimum functionality needed
for a rangefinder, with all of the higher level logic in the
frontend. This should make writing a new backend easier
11 years ago
akdslr
3f17969b19
AP_RangeFinder: Changes from the May 4th plane test flight
11 years ago
Randy Mackay
8d54e50897
RangeFinder: remove raw_value, orientation variables
...
This saves 10bytes of RAM
11 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
e69e4a5695
AP_RangeFinder: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
ba83950fc4
libraries: replace constrain() with constrain_float()
...
this makes the type much more obvious. Thanks to Tobias for the
suggestion.
12 years ago
Pat Hickey
a38ce8962e
AP_Rangefinder: ported to AP_HAL. Only officially supports MaxsonarXL.
12 years ago
uncrustify
b57832e19b
uncrustify libraries/AP_RangeFinder/RangeFinder.cpp
13 years ago
rmackay9
f264e29814
AP_RangeFinder - cut over to use new ModeFilter from Filter library
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