Claudio Micheli
4b7be38e67
Added uORB publishing.
...
TODO: Need to fix driver cycling.
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
700fd5652d
Added parsing function. Everything works OK.
...
TODO:
- Clean up the code
- Add uORB publishing messages
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Claudio Micheli
591e8fde5d
Initial commit. Integrated new distance sensor hardware.
...
TODO: Parsing the data
Signed-off-by: Claudio Micheli <claudio@auterion.com >
2019-01-15 09:17:24 +01:00
Julian Oes
5b9dea5604
Replacing usleep with px4_usleep
...
This is a step towards isolating time from the system.
2018-12-22 10:32:18 +01:00
Daniel Agar
f692ad04d0
boards organization
2018-11-26 14:40:14 -08:00
Daniel Agar
7caf9803ed
delete unimplemented SENSORIOCRESET IOCTL
2018-11-06 07:43:43 +08:00
Daniel Agar
d2ed091a1d
delete IOCTL SENSOR_POLLRATE_MAX
...
- only SENSOR_POLLRATE_DEFAULT is needed
2018-11-06 07:43:43 +08:00
Daniel Agar
556a9422b5
delete IOCTL SENSOR_POLLRATE_MANUAL
...
- only used in self tests
2018-11-06 07:43:43 +08:00
Daniel Agar
8dfd55fc9e
delete unused IOCTL SENSORIOCGPOLLRATE
2018-11-06 07:43:43 +08:00
Daniel Agar
9cd3e3d1cf
distance sensors delete unused IOCTL SENSORIOCSQUEUEDEPTH
2018-11-06 07:43:43 +08:00
Daniel Agar
f59f0d4b2d
delete unused IOCTL SENSOR_POLLRATE_EXTERNAL
2018-11-06 07:43:43 +08:00
Mara Bos
10c20b38ad
Fix many format strings.
...
Fixes these invalid format strings:
- A `%d` for a pointer (replaced it by `%p`)
- A 0x%08x (and a 0x%0x8!) for a pointer (replaced by %p)
- 2 cases of `%d` for a `ssize_t` (replaced it by `%zi`)
- 1 case of a %u for an `int` (replaced by %i)
- 3 cases of %d for a `long` (replaced by %ld)
- 19 cases of `%d`, `%i`, `%u` or `%lu` for a `size_t` (replaced it by `%zu`)
- An unused formatting argument (removed it)
- A missing `%d` (added it)
- A missing `%s` (added it)
- 2 cases of `%llu` for a `uint64_t` (replaced it by `"%" PRIu64`)
- 6 cases of giving a string directly as format string (replaced it by `("%s", string)`)
- 2 cases of %*-s, which should probably have been %-*s.
(Looks like NuttX accepts (the invalid) %*-s, but other platforms don't.)
- A %04x for a `uint32_t` (replaced by "%04" PRIx32)
2018-10-27 12:44:51 +02:00
Jake Dahl
e6d78b89a2
::write() returns number of bytes written, so I check for not zero as a pass
2018-10-17 12:42:35 -04:00
Jake Dahl
cbae32a50a
I missed a ::write, stupid jenkins
2018-10-17 12:42:35 -04:00
Jake Dahl
edf82d3937
added return values that I check for ::read and ::write
2018-10-17 12:42:35 -04:00
Jake Dahl
39d0e0b80c
changed px4_read/write to ::read/write
2018-10-17 12:42:35 -04:00
Jake Dahl
51ffee8137
removed px4_poll, something changed and broke the way I was using it. This has been tested successfully
2018-10-17 12:42:35 -04:00
Hamish Willee
8806389f24
Remove long command option from sf1xx driver docs
2018-10-17 10:34:33 +02:00
Hamish Willee
0e2aab46c9
Add module doc for sf1xx rangefinder
2018-10-17 10:34:33 +02:00
Daniele Pettenuzzo
a2d1f6ddce
ll40ls driver: support also lidar lite v3HP ( #10578 )
2018-10-04 00:54:27 -04:00
Beat Küng
0ac5f2cd8b
ulanding radar: add UART config param
2018-09-28 10:29:31 +02:00
Beat Küng
f0c0b6f6e8
params: remove unused SENS_EN_* params
...
Replaced with the more general serial config params.
2018-09-25 07:53:29 +02:00
Beat Küng
babe300960
sf0x: avoid reopening the UART on startup
...
And:
- return correct return code in SF0X::init()
- remove unneeded SF0X::probe()
2018-09-25 07:53:29 +02:00
Beat Küng
b5e552924a
serial drivers/modules: add yaml config files
2018-09-25 07:53:29 +02:00
Beat Küng
91a1ac1b60
sf0x: add -d param to pass the serial port
2018-09-25 07:53:29 +02:00
Beat Küng
d5bef4a932
sf0x.cpp: avoid using exit()
2018-08-31 18:11:58 +02:00
Daniel Agar
12dd9b475e
tfmini add missing PX4_ERR argument
2018-08-30 19:04:13 +02:00
Jake Dahl
5a678295b3
added a check to ensure the initialize settings function succeeds. If it does not, the driver fails gracefully. This handles the case that the device is not there.
2018-08-28 18:52:23 -04:00
Jake Dahl
507a872546
Made changes as requested by the dev team.
2018-08-27 21:15:04 +02:00
Jake Dahl
07d606ef83
Added TI PGA460 driver functionality to PX4.
2018-08-27 21:15:04 +02:00
Daniel Agar
fa9b968a16
ulanding cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
f2ef8708b2
tfmini cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
483bacad87
teraranger cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
cfe34ee19c
srf02 cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
ebcd3b0b2e
sf1xx cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
8cb222494a
sf0x cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
9a2def25f3
mb12xx cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
bdba733dd4
ll40ls cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
585d3bbe55
leddar_one cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Daniel Agar
b7bf2dd688
hc_sr04 cleanup unnecessary Device CDev usage
2018-08-27 13:14:15 -04:00
Lorenz Meier
1d027f938c
tfmini: fix format and fix driver start / stop logic so it works when running PX4 as threads on Linux.
2018-08-26 12:05:09 +02:00
Mohammed Kabir
38bae7d401
tfmini : restructure parsing logic to always publish latest measurement
2018-08-26 12:05:09 +02:00
Mohammed Kabir
3afa018954
tfmini : fix scheduling and modernize output
...
This reduces the scheduling interval to 9ms, such that the driver is always ready to read new data. Running it at exactly 100Hz is not correct since the driver and sensor measurement intervals are not "in sync", causing the driver to miss data. This causes a fill-up of the UART buffer.
2018-08-26 12:05:09 +02:00
mcsauder
722e891730
Add doxy styling to method comments and update comments, replace goto statements with stop() calls and return statements.
2018-08-05 09:54:46 +02:00
Philipp Oettershagen
da2fbf60b5
distance sensors: Improve variable naming / description
2018-07-16 21:59:04 +10:00
Philipp Oettershagen
35bde5c9fc
LL40LS: Implement driver-specific filtering based on the datasheet and experiments
2018-07-16 21:59:04 +10:00
DanielePettenuzzo
6cb17839ee
distance sensors: remove bus_option array and add it to i2c.h header
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
c13d69a610
distance sensor drivers: change all open and close to px4_open and px4_close
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
8f4e9228bf
mb12xx driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions
2018-07-03 17:33:18 +02:00
DanielePettenuzzo
fed6c9ae34
srf02 driver: add -b and -a flags to choose i2c busses and remove nuttx stuff such as exit functions
2018-07-03 17:33:18 +02:00