Beat Küng
43c2970fb9
vehicle_gps_position: add heading field
2018-07-16 12:18:37 +02:00
Daniel Agar
5dc23def2a
move pressure altitude from baros to sensors module
2018-04-11 23:26:58 -04:00
Daniel Agar
3ead5c2afd
delete unused MAGIOCSLOWPASS/MAGIOCGLOWPASS
2017-12-31 09:47:51 -05:00
Daniel Agar
edea4a369e
uavcan start enforcing code style ( #7856 )
2017-08-25 13:07:21 -04:00
Julien Lecoeur
abcb920df4
Fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7.1.0
...
BMP280: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
gnss: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
fmu: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
timer.c: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
px4cannode_led: fix -Werror=implicit-fallthrough on arm-none-eabi-gcc 7
Fix -Werror=implicit-fallthrough on gcc7
2017-07-18 08:24:37 +02:00
Todd Stellanova
fd47e0cbb3
Set system real time clock once from GNSS data.
...
Fixes #7421
Tested with Pixracer and Zubax GNSS2.0
2017-06-16 07:46:39 +05:30
Beat Küng
ce7d8d2270
sensor_mag.msg: add is_external flag & set it in the mag drivers
...
With this we don't have to use the ioctl MAGIOCGEXTERNAL, which does not
work on POSIX (eg. RPi).
2017-06-14 19:53:07 +02:00
Pavel Kirienko
5788701cc7
Replaced warn() with PX4_WARN()
2017-04-06 12:05:57 +02:00
Pavel Kirienko
02a9ccc4f2
Removed dependency on <algorithm>
2017-04-06 12:05:57 +02:00
Pavel Kirienko
098b57534d
UAVCAN GNSS bridge: proper handling of various time bases
2017-04-06 12:05:57 +02:00
Pavel Kirienko
8e61ed9b77
Republishing GNSS Fix2 if no GNSS publishers are available on the bus
2017-04-06 12:05:57 +02:00
Pavel Kirienko
14249d3318
UAVCAN GNSS bridge status output shows whether support for the old Fix message is active
2017-04-06 12:05:57 +02:00
Pavel Kirienko
75c45b62d7
UAVCAN GNSS Fix2 handling
2017-04-06 12:05:57 +02:00
Mathieu Bresciani
d67b6efda3
PixHawk Pro: Update mag IDs to have external higher priority
2017-03-07 23:43:28 +08:00
Paul Riseborough
0ba31b521c
uavcan: Populate baro device ID
...
TODO - use unique HW ID
2017-01-19 19:24:52 +01:00
Lorenz Meier
66b9ee2d24
UAVCAN: Make GPS module use the multi-topic facility so that a normal GPS and an UAVCAN GPS can co-exist and do not write on top of each other.
2016-12-26 12:12:44 +01:00
Beat Küng
e2afb0be6b
px4_log.h: remove hrt_absolute_time() declaration (it does not belong here)
2016-08-24 21:24:35 +02:00
Pavel Kirienko
d12be196a2
Fixed #5153
2016-08-18 17:14:53 +02:00
Beat Küng
cf5d959f1b
gnss.cpp: switch to relative gps timestamp
2016-06-24 00:22:01 +02:00
Beat Küng
e2a7145379
vehicle_gps_position: remove timestamp_variance & timestamp_velocity (they're not used)
2016-06-24 00:22:01 +02:00
Beat Küng
89f5bd27e8
vehicle_gps_position: use timestamp field instead of timestamp_position
...
timestamp was unused. This allows to remove timestamp_position.
2016-06-24 00:22:01 +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
Julian Oes
c152f88f7f
uavcan: fix after calibration refactor
2016-03-24 13:08:30 +01:00
Pavel Kirienko
6c4f09c0e4
Fixed memory leak in UAVCAN baro driver
2015-10-26 10:19:56 +01:00
Pavel Kirienko
e2b801a323
Fixes 2911
2015-09-27 12:25:15 +02:00
Lorenz Meier
21d1b4ba2e
Merged beta into master
2015-08-22 14:06:01 +02:00
Pavel Kirienko
3860dbdc8c
UAVCAN Barometer driver fix - reporting temperature in Celsius degrees, not in Kelvin
2015-08-22 13:54:56 +02:00
Pavel Kirienko
473d321af8
UAVCAN Magnetometer driver update - no logical changes
2015-08-22 13:54:56 +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
David Sidrane
22d46fa733
Merged master_uavcan_modular src/modules/uavcan/
2015-07-09 11:22:35 -10:00
Lorenz Meier
c9fefe236b
Merged release into master
2015-06-13 11:06:01 +02:00
David Sidrane
68276ff345
Back Port from Master - Changes to build on latest uavcan master with FW upload and Node ID
2015-06-05 06:43:10 -10:00
David Sidrane
2d796f408d
Ran Astyle
2015-06-04 03:27:40 -10:00
David Sidrane
6155a1557f
Changes to build on latest uavcan master with FW upload and Node ID allocation
2015-06-04 02:37:59 -10:00
Mark Charlebois
31923c3add
On more fixup for orb_advert_t changed to void *
...
Reviewed all changes in pull request and made sure all cpp files
check orb_advert_t types against nullptr and c files check against
NULL.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-05-27 14:42:49 -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
21dfd0243d
drivers: use new ringbuffer namespace everywhere
2015-05-24 10:04:38 +01:00
Andrew Tridgell
a4bece7595
uavcan-baro: use RingBuffer for read() support
2015-04-04 10:20:51 +02:00
Holger Steinhaus
d06761bba8
uavcan-baro: add read()-style interface to baro device
2015-04-04 10:20:38 +02:00
Daniel Agar
8aae66b893
trivial code style cleanup round 2
2015-03-27 23:38:58 -04:00
Lorenz Meier
1a91c7da79
UAVCAN: Move to 0-based indices
2015-02-09 22:56:23 +01:00
Pavel Kirienko
2f7a9eaf65
Fix for a compilation failure
2015-01-29 16:33:53 +01:00
Lorenz Meier
1cc4c808a8
Upgrade UAVCAN to multi pub/sub A API
2015-01-29 16:33:53 +01:00
Ban Siesta
25fc9d791a
renaming of gps time to UTC time
2015-01-04 10:43:28 +00:00
Holger Steinhaus
2ce2d26d52
UAVCAN: preserve original UAVCAN message timestamps
2014-11-18 14:58:04 +01:00
Holger Steinhaus
e026324784
UAVCAN: fix mag report timestamp
2014-11-13 16:58:41 +01:00
Holger Steinhaus
16d74e3c31
UACVAN: add read()-style interface to mag device
2014-11-13 16:17:35 +01:00
Holger Steinhaus
0fa622f22b
UAVCAN: declare mag external again to allow different rotation than the internal mag
2014-11-13 16:17:35 +01:00
Holger Steinhaus
4d489ef7f4
UAVCAN: improve mag compatibility
2014-11-13 16:17:35 +01:00