Commit Graph

89 Commits

Author SHA1 Message Date
Daniel Agar d7aaab07fc delete unused SENSORIOCGQUEUEDEPTH 2017-12-31 09:47:51 -05:00
Daniel Agar 4980b93830 delete unused SENSORIOCGROTATION 2017-12-31 09:47:51 -05:00
Daniel Agar 9c378a7ca1 delete unused SENSORIOCSROTATION 2017-12-31 09:47:51 -05:00
ChristophTobler a4d37f7120 PX4Flow: add possibility to specify sonar orientation and adapt to new defaults 2017-09-25 08:52:21 +02:00
Daniel Agar 3289fa292b px4flow fix sign-compare 2017-09-07 10:27:36 +02:00
Julien Lecoeur 41cc679258 PX4Flow: allow restart directly after stop 2017-08-20 19:31:24 +02:00
Julien Lecoeur 7a3a9a75d5 Add command line options to PX4Flow app for I2C address and sampling rate 2017-08-20 19:31:24 +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
Paul Riseborough 3787fafdff px4flow: update default rotation and documentation
The driver performs the rotation from sensor frame to body frame.
The recommended installation default is with the Y sensor axis pointing forward.
2016-12-30 10:39:10 +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
Nicolas de Palezieux ebce93f338 only advertise range topic of px4flow board if it is the primary range device (#5390)
this allows selecting another range device such as a lidar by starting that app first
2016-08-26 14:28:46 +02:00
Lucas De Marchi 18330f7ab7 Move __STDC_FORMAT_MACROS to build system
__STDC_FORMAT_MACROS changes the behavior of inttypes.h to allow
defining format macros for printf-like functions. It needs to be defined
before any include is done, otherwise due to include chains and header
guards it may not take effect.

Instead of having to define it everywhere it is used, move the define to the
build system. Also update ecl and DriverFramework submodules to deal with the
changed definitions.
2016-07-10 16:31:36 +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
Daniel Agar 2487dbfc92 remove Wpacked and cleanup unused warning flags 2016-05-19 21:49:34 +02:00
Daniel Agar 69c1ce1714 WIP logger serialization 2016-05-14 11:27:07 +02:00
Daniel Agar eb29b33620 use gcc attributes to align and pack 2016-05-14 11:27:07 +02:00
Daniel Agar 76387b1693 uorb autogeneration 2016-05-14 11:27:07 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Lorenz Meier 6e34e0acaf Flow: Use shorter perf names 2016-03-28 13:04:53 +02:00
Julian Oes acf9be488d Revert "px4flow: disable distance data transmission from px4flow sensor"
This reverts commit 47f79a66d1 because it
was just an intermediate debug commit.
2016-03-21 16:06:41 -04:00
Lorenz Meier 3e1f5c232b Flow driver: Handle rotation parameter if present 2016-03-14 09:29:53 +01:00
bugobliterator 47f79a66d1 px4flow: disable distance data transmission from px4flow sensor 2016-03-13 17:47:56 +01:00
Kabir Mohammed 309212b52b px4flow : rotate gyro readings as well 2016-03-08 08:52:08 +01:00
David Sidrane d6c6cb72b2 Support PX4_I2C_BUS_ONBOARD not defined 2015-11-28 09:13:15 +01:00
Kabir Mohammed 792f1747c7 rangefinders : remove annoying gotos 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 174464e2cc PX4 Flow: Fixed code style 2015-10-19 13:17:43 +02:00
Lorenz Meier f50695c099 Flow: Remove unused perf counters on exit 2015-10-10 16:03:09 +02:00
Daniel Agar 6c10cf18e4 re-enable Werror 2015-10-06 18:28:30 -04:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert 2a60ffd554 Added stdc_format_macros for all inttypes.h includes. 2015-09-24 17:44:27 -04:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04: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 ea2975c2a9 Merged beta into master 2015-08-11 11:03:01 +02:00
Lorenz Meier 72c3f4b815 Flow: Shrink boot handler size 2015-08-11 09:24:56 +02:00
Lorenz Meier 2a80c80a4a PX4 FLOW: Silence alarming messages on a normal boot 2015-08-01 17:16:01 +02:00
Lorenz Meier 3679c25125 PX4 FLOW: Silence alarming messages on a normal boot 2015-08-01 17:15:25 +02:00
Simon Laube d9e6cb0f58 implemented retrying the connection to the px4flow sensor before giving up. 2015-07-04 18:27:01 +02:00
Simon Laube dac74db104 change the nested if structure which tries all i2c busses to a loop. 2015-07-04 18:26:52 +02:00
Simon Laube 7a93348340 implemented retrying the connection to the px4flow sensor before giving up. 2015-06-30 18:28:19 +02:00
Simon Laube 93dfc435a4 change the nested if structure which tries all i2c busses to a loop. 2015-06-30 17:53:19 +02:00
Lorenz Meier f46cbae012 px4flow driver: update topic names 2015-05-27 15:21:33 -07:00
Lorenz Meier 4565f57468 Merged release_v1.0.0 into master 2015-05-27 15:28:41 -07:00
Lorenz Meier a2bb8cd766 PX4FLOW driver: Fix use of topic initialization 2015-05-27 15:15:37 -07:00
Mark Charlebois 1ca05aaa64 orb_advert_t changed to void * and checks changed to nullptr
The existing orb_advert_t use thoughout the code sometimes tries
to treat it as a file descriptor and there are checks for < 0
and ::close calls on orb_advert_t types which is an invalid use
of an object pointer, which is what orb_advert_t really is.

Initially I had changed the -1 initializations to 0 but it was
suggested that this should be nullptr. That was a good recommendation
but the definition of orb_advert_t had to change to void * because
you cannot initialize a uintptr_t as nullptr.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:42:49 -07:00
Mark Charlebois a734fc96d1 extensive orb_advert_t fixes
The calls to orb_advertise were being mishandled throughout the code.
There were ::close() calls on memory pointers, there were checks
against < 0 when it is a pointer to a object and values larger than
0x7ffffffff are valid. Some places orb_advert_t variables were
being initialized as 0 other places as -1.

The orb_advert_t type was changed to uintptr_t so the pointer value
would not be wrapped as a negative number. This was causing a failure
on ARM.

Tests for < 0 were changed to == 0 since a null pointer is the valid
representation for error, or uninitialized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-27 14:41:33 -07:00
Ban Siesta 1734b97635 px4flow: tell the user which PX4FLOW couldn't be connected 2015-05-26 23:04:09 -07:00
Ban Siesta 414f3330b3 px4flow: tell the user which PX4FLOW couldn't be connected 2015-05-25 18:34:31 +01:00
Ban Siesta 9f314dd191 drivers: corrected log string 2015-05-24 20:56:25 +01:00