Commit Graph
13 Commits
Author SHA1 Message Date
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 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
Lorenz Meier 1cc4c808a8 Upgrade UAVCAN to multi pub/sub A API 2015-01-29 16:33:53 +01:00
Holger Steinhaus 51ffb887c3 UAVCAN: initialize device id for mag and baro to allow DEVIOCGDEVICEID ioctl to return useful data 2014-11-11 11:29:35 +01:00
Pavel Kirienko eab701b896 Improved UAVCAN status reporting 2014-08-26 00:52:33 +04:00
Pavel Kirienko 3866b5a5fe Resource leak fix 2014-08-24 03:02:52 +04:00
Pavel Kirienko e9da830316 UAVCAN: initializing all bridges by default 2014-08-24 00:06:47 +04:00
Pavel Kirienko 4e0d7c6b0e UAVCAN: redundant sensors support 2014-08-23 23:14:59 +04:00
Pavel Kirienko 7132141cc4 UAVCAN: Printing all known sensor bridge names with usage info 2014-08-22 20:33:35 +04:00
Pavel Kirienko 6870cd4d3d UAVCAN baro driver 2014-08-22 20:15:11 +04:00
Pavel Kirienko 6ebd59c633 UAVCAN: improved sensor bridge factory 2014-08-22 15:52:35 +04:00
Pavel Kirienko 29dbe8aed5 UAVCAN magnetometer driver 2014-08-22 14:27:32 +04:00
Pavel Kirienko 0d9f6b6e2e UAVCAN: Refactored and generalized sensor bridge support 2014-08-22 01:52:23 +04:00