Commit Graph

25 Commits

Author SHA1 Message Date
stmoon d219b8cf46 fix the bug for double space 2016-09-01 08:44:16 +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 0ad0602560 Added missing timestamp to topic listener 2016-05-25 22:21:19 +02:00
Beat Küng 9259406a29 generate_listener.py: add a timeout of 2 seconds
abort if within 2s there is no new message published
2016-04-15 15:02:26 +02:00
Beat Küng 1269dfbc43 generate_listener.py: fix listener command
the loop variable i was increased even if no topic was updated. This means
less messages are outputed than specified.
2016-04-15 14:29:35 +02:00
Lorenz Meier 6c13cef85e Lister: Add missing uint16 2016-01-25 21:46:07 +01:00
Lorenz Meier a49dbbc9a8 Lister: Fix Clang compile error 2016-01-20 11:01:31 +01:00
Lorenz Meier 56957e7ee4 Improved listener tool 2016-01-19 19:26:31 +01:00
tumbili 3337eb8f1a unsubscribe from topic to prevent overflow in device handler list 2015-11-20 16:09:49 +01:00
Roman a8ab52b444 topic_listener: allow listening to actuator control groups 2015-11-19 09:13:44 +01:00
Mark Charlebois 468bac71c2 Fixed PRI64 to PRId64 in generate_listener.py
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-10-19 10:05:04 -07:00
Lorenz Meier bb2e5b7c84 Update listener to also support double precision 2015-10-15 12:31:56 +02:00
Lorenz Meier b126f00052 Merged master 2015-10-14 22:07:49 +02:00
Daniel Agar 4e4d10d8b9 generate_listener.py don't depend on platform dependant slash 2015-10-14 01:56:17 -04:00
Ben Dyer 7dacb835b9 Fixing build on targets without the UAVCAN module 2015-10-14 00:50:07 +11:00
Ben Dyer 148148b6a0 Update libuavcan and add missing PRI64 define 2015-10-13 21:50:23 +11:00
Lorenz Meier 348c480feb Improve formatting of topic listener output 2015-10-10 12:39:05 +02:00
Lorenz Meier acd7235880 FMUv2: Add topic listener 2015-10-10 12:27:45 +02:00
Lorenz Meier 4de777fd2f Topic listener: Fix code generation 2015-09-20 12:55:18 +02:00
Kyle Manna c593451e5d Tools: Convert Python 2 syntax to Python 3 compatible
* The `print """` syntax appears invalid in Python 3 which is the
  default for the Python binary on my system (and soon many more).
* Convert the file (using `2to3`) to a version that's compatible with
  Python 2 and Python 3.
* Tested against Python 2.7.10 and 3.4.3.
2015-06-11 00:07:54 -07:00
Mark Charlebois 00296ba241 POSIX: Fixed uint64_t print in generated topic_listener.cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-19 16:42:55 -07:00
Mark Charlebois 872e1ebda0 GCC fixes for warnings
GCC was more picky about prototypes for inlines being required.

The generate_listener.py script used incorrect printf formats and
was casting %f params to float, but printf casts all %f params to
double per the spec.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 11:45:23 -07:00
tumbili 4b34d0c297 improved topic listener 2015-05-04 23:10:23 +02:00
Mark Charlebois 8e589adb24 topic_listener: added missing build deps
The posix build would complain that toipc_listener.cpp did not exist
and there was no rule to create it.

The required rule was added to src/systemcmds/topic_listener/module.mk

The script generate_listener.py is run from the Build tree and needs to
access $(PX4_BASE)/msgs so $(PX4_BASE) is now passed as an argument to
generate_listener.py

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-26 20:02:58 -07:00
tumbili 3af6e9d76e added autogenerated code for topic listener tool 2015-04-26 22:17:16 +02:00