Andrew Tridgell
09792d3056
AP_RangeFinder: removed unusued AP_Common/Semaphore.h
6 years ago
Randy Mackay
a72477590f
AP_RangeFinder: format fixes
6 years ago
Dmitri Ranfft
5eff01a86f
RangeFinder: allow up to 10 range finders to be used at once
6 years ago
Randy Mackay
82a28dc0fc
AP_RangeFinder: check I2C dev during detect
6 years ago
Andrew Tridgell
b1e4434332
AP_RangeFinder: use WITH_SEMAPHORE()
...
and removed usage of hal.util->new_semaphore()
6 years ago
Randy Mackay
1b0f0a7559
AP_RangeFinder: support last_reading_ms
...
Benewake, LeddarOne, LightWareSerial, MAVLink, MaxsonarI2CXL, MaxsonarSerialLV, NMEA, PX4_PWM, uLanding and Wasp already stored the last read time so for these drivers, this change just moves that storage to the state structure
analog, BBB_PRU, Bebop, LightWareI2C, PulsedLightLRF, TeraRangerI2C, VL53L0X did not store the last read time so this was added
7 years ago
Randy Mackay
98e87db274
AP_RangeFinder: MaxsonarI2C reports no data after 300ms
7 years ago
Randy Mackay
85efab1ec8
AP_RangeFinder: reduce MaxsonarI2C update to 10hz
7 years ago
Randy Mackay
fd2e5741ce
AP_RangeFinder: MaxsonarI2C formatting fixes
7 years ago
Francisco Ferreira
02586b0a2e
AP_Rangefinder: search buses 0 and 1 for Maxbotix I2C driver
7 years ago
Peter Barker
30c4ea8123
AP_RangeFinder: stop storing sensor type as a variable
...
And change method name
8 years ago
Peter Barker
0b1c67d170
AP_RangeFinder: remove unused parameters from detect and constructors
8 years ago
Pierre Kancir
8b38bd2e33
AP_RangeFinder: add sensor type to backend
8 years ago
murata
d9dbf6e1eb
AP_OpticalFlow: Change from magic number 0 to definition name.
8 years ago
Lucas De Marchi
5472bc4de1
Global: change Device::PeriodicCb signature
...
Remove bool return as it's never being used and not supported on PX4.
8 years ago
Andrew Tridgell
e88519364f
AP_RangeFinder: fixed maxbotix I2C semaphore and bus usage
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
Lucas De Marchi
4ab1d7cf41
AP_RangeFinder: MaxsonarI2CXL: add some fixes
...
- coding style changes and some renames
- fix bus number
- use be16toh
9 years ago
Murilo Belluzzo
f2d5eb9a97
AP_RangeFinder_MaxsonarI2CXL: Fix driver after I2CDevice conversion
...
* Simplify semaphore releasing logic
* Fix typo
9 years ago
Luiz Ywata
c167364fa0
AP_RangeFinder: MaxsonarI2CXL: use I2CDevice interface
9 years ago
Gustavo Jose de Sousa
5d39587469
AP_RangeFinder: 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
Randy Mackay
fadfa70e99
RangeFinder_MaxSonar: set status
10 years ago
Andrew Tridgell
baa0217bec
AP_RangeFinder: trigger a new reading automatically
...
this fixes Maxbotix I2C
11 years ago
Andrew Tridgell
ed346fd639
AP_RangeFinder: convert MaxbotixI2C driver to new API
11 years ago
Andrew Tridgell
429431157b
AP_RangeFinder: disable old rangefinder drivers
...
these will be re-enabled when they are converted to the new class API
11 years ago
Randy Mackay
e1fabadd3c
MaxsonarI2C: read method returns int16_t
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
Christopher Hrabia
744f610409
RangeFinder_I2C: fixed bug with interchanged min max values
...
- add usage of mode-filter and min-max constrain, similar to MaxsonarXL
12 years ago
Pat Hickey
a38ce8962e
AP_Rangefinder: ported to AP_HAL. Only officially supports MaxsonarXL.
12 years ago
rmackay9
f68523b39b
AP_RangeFinder_MaxsonarI2CXL: resolve shadowed variable compiler warning
12 years ago
rmackay9
321d40f73a
AP_RangeFinder: added support for MaxBotix XL I2C sonar
12 years ago