Commit Graph

60 Commits

Author SHA1 Message Date
ChristophTobler 21f97cfce6 LidarLite: update for new orientation convention
add possibility to specify orientation and adapt to new defaults and use px4_getopt
2017-09-25 08:52:21 +02:00
José Roberto de Souza 66e77c49ae ll40ls: Refactor interface(PWM and I2C) selection and allow probe in more I2C buses 2017-08-02 11:49:10 +02:00
Beat Küng 546bd2b4d0 drivers: remove the overflow perf counter
This was used together with the read() interface, but we don't use that
so the counters are wrong.
2017-03-20 09:11:34 +01:00
Lorenz Meier 381611bb66 LL40LS: Make commandline arguments easier to use 2016-12-28 15:07:56 +01:00
Lorenz Meier 9c2f4503a1 Additional test command feedback 2016-12-28 15:04:28 +01:00
Beat Küng 241fd629ce ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR 2016-09-30 13:50:51 +02:00
Julian Oes 8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Lorenz Meier 7398164fcc Updated PX4 use / API of low level GPIO and other hardware-centric system facilities 2016-05-28 14:56:17 +02:00
ChristophTobler f2af55d92f changed min/max distance for ll40ls (lidar) 2016-02-10 09:24:39 +01:00
David Sidrane 30bc968ed6 Ran Astyle 2015-11-28 09:13:15 +01:00
David Sidrane d6c6cb72b2 Support PX4_I2C_BUS_ONBOARD not defined 2015-11-28 09:13:15 +01:00
Kabir Mohammed 7136f6e880 ll40ls : add missing struct inititalisation 2015-10-28 22:38:38 +01:00
Kabir Mohammed 792f1747c7 rangefinders : remove annoying gotos 2015-10-28 22:38:38 +01:00
Kabir Mohammed 83b70688d7 Fix formatting 2015-10-28 22:38:38 +01:00
Kabir Mohammed 832780b966 Fix ranger multi-advertise 2015-10-28 22:38:38 +01:00
Lorenz Meier 9d670dd877 LL40LS: Fixed code style 2015-10-19 13:14:00 +02:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert 181d8db128 Merge branch 'master' into cmake-2 2015-09-10 14:03:48 -04:00
tumbili 10171df59a ll40ls: do not start driver if already started 2015-09-09 22:58:51 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Andrew Tridgell 41b3452e22 ll40ls: added support for 'blue label' lidars
the key is splitting up read_reg() into two transfers
2015-08-17 09:18:38 +02:00
Mark Charlebois a589d15c52 Refactored debug() and log() in CDev
These functions used vprintf which is not available on all platforms.
They also do not enable line and file debug output.

Changed to macros that preserve the output format.  Uses new macro that
can be used to implement per object, runtime selectable logging

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-08-11 12:07:06 -07:00
Lorenz Meier af28016a10 Merge pull request #2236 from TSC21/drivers_cleanup
drivers: added validity check
2015-06-26 07:39:09 +02:00
Lorenz Meier 4f92afd420 Lidar lite driver: Fix use of topic initialization 2015-05-27 15:15:19 -07:00
TSC21 79e084a154 drivers: added validity check 2015-05-26 18:05:26 +01:00
James Goppert 5955773574 Lidar lite driver fixes.
Conflicts:
	src/modules/uORB/Subscription.cpp
2015-05-25 21:55:03 -04:00
Ban Siesta 69cbbd9b5e distance_sensor: changed all distance sensors to orb_advertise_multi 2015-05-24 19:20:25 +01:00
Ban Siesta a729d6f301 ll40ls: first stab at adapting ll40ls to the new distance_sensor msg 2015-05-24 15:59:29 +01:00
Ban Siesta 2c4c0ecb32 ll40ls: forgot to remove commented out stuff in PWM driver 2015-05-24 13:00:45 +01:00
Ban Siesta e7f1f3ba28 ll40ls: made PWM driver version functional 2015-05-24 12:47:04 +01:00
Ban Siesta ef658cf926 ll40ls: changed I2C driver to new ringbuffer namespace, and various style stuff 2015-05-24 12:46:23 +01:00
Ban Siesta fbc4ca61ac ll40ls: removed unneeded comments 2015-05-24 12:44:53 +01:00
Ban Siesta 0ab0de5805 ll40ls: adapt the cli interface, so that the commands work with the PWM and I2C driver 2015-05-24 12:42:14 +01:00
Ban Siesta 1151996c0b ll40ls: Weffc++ was complaining about 'class LidarLitePWM' has pointer data members, had to disable it 2015-05-24 12:38:22 +01:00
Ban Siesta e67f681935 ll40ls: astyle 2015-05-24 09:44:10 +01:00
Johan Jansen c4bc9d19cb LidarLite: Added collect phase to PWM 2015-03-24 12:57:22 +01:00
Johan Jansen 4e7fa5aade LidarLite: Add uORB handling in PWM drivers 2015-03-24 12:23:15 +01:00
Johan Jansen d160817de3 LidarLite: Fix bug for I2C ioctl 2015-03-24 12:06:54 +01:00
Johan Jansen 874c319888 LidarLite: Code cleanup 2015-03-24 11:49:34 +01:00
Johan Jansen b1da12b43f LidarLite: Added PWM version of the LidarLite driver 2015-03-24 11:31:11 +01:00
Johan Jansen eeb8562c6e LidarLite: Compile with weffc++ and fix all warnings 2015-03-24 10:10:11 +01:00
Johan Jansen b084558a79 LidarLite: Code cleanup, prepare for PWM version of the driver 2015-03-24 10:04:40 +01:00
Lorenz Meier 95dd7d415f LL40S driver: Signedness of ticks and comment fix. 2015-02-20 09:22:12 +01:00
Andrew Tridgell 9d288a9a9a ll40ls: added reset and backoff logic to driver
this adds automatic resets of the lidar when it becomes unresponsive,
and also tries to cope with NACKs from long acquisition times. It also
adds a "ll40ls regdump" command, and fixes "ll40ls reset" to reset the
sensor.

The default acquisition period is changed to 50ms, with backoff to
100ms on a NACK

Note that there are still times when the sensor can get into an
unrecoverable state.

Thanks to Austin, Dennis and Bob from PulseLight for assistance in
tracking down the problems.
2015-02-20 09:10:24 +01:00
Lorenz Meier 2f4d820063 LL40S: Move to 0 based index 2015-02-09 22:56:22 +01:00
Andrew Tridgell 7b6620b319 ll40ls: fixed exit code on external sensor startup failure 2015-01-01 13:06:46 +01:00
Lorenz Meier dfc368ad46 Merge pull request #1497 from PX4/ll40lsdefaultmax
ll40ls: max distance according to datasheet
2014-12-14 13:14:23 +01:00
Thomas Gubler b6b80dcac1 ll40ls: write min and max to report 2014-12-14 12:10:29 +01:00
Thomas Gubler 0575f67300 ll40ls: fix whitespace 2014-12-14 12:10:29 +01:00
Thomas Gubler 4a70da5c2c ll40ls: max distance according to datasheet
Datasheet:
http://pulsedlight3d.com/pl3d/wp-content/uploads/2014/11/LIDAR-Lite.pdf
2014-12-13 19:01:00 +01:00