Commit Graph

77 Commits

Author SHA1 Message Date
TSC21 57f1f01319 microRTPS_transport: replace printf() with PX4_ERR() 2019-02-15 08:54:58 +00:00
Gabriel Moreno 6bb0046407 urtps: fix UART speed setting to work in Linux
The previous code used the numeric baudrate as the speed argument
for cfsetispeed() and cfsetospeed(). This works in OSX and NuttX,
but is not portable.

This fix introduces a new method to convert baudrate to speed using
constants such as B115200.

Signed-off-by: Gabriel Moreno <gabrielm@cs.cmu.edu>
2019-02-15 08:54:58 +00:00
Daniel Agar c0b464e9e2 replace <cinttypes> with <inttypes.h>
- <cinttypes> isn't available in the NuttX c++ library
2019-01-06 19:20:57 -05:00
TSC21 3c246ce170 microRTPS: improve verbosity with the usage of px4_log types 2019-01-02 00:14:18 +00:00
TSC21 adbec90018 microRTPS: replace usleep() by px4_usleep() 2019-01-02 00:14:18 +00:00
TSC21 065f97e87b add more relevant messages to the RTPS stream 2019-01-01 11:21:36 +00:00
TSC21 c25d122f12 update micro-CDR version and msg templates to fit the up to date version 2018-12-02 10:35:25 +01:00
TSC21 fa528745b5 IDL generation: add constants fields for IDL's 2018-11-29 16:43:00 +00:00
TSC21 31b110c2ac rtps: fix and minor cleanup of scripts and templates 2018-10-15 13:55:38 +02:00
TSC21 a7580b14ba update IDL template so it can process builtin types 2018-10-08 10:58:45 +02:00
TSC21 1cc3d95ff7 msg: templates: add 'ids' to the Context documentation 2018-09-24 19:28:40 +02:00
TSC21 0227ea3835 msg: RTPS: pass RTPS ID msg definition file as an EmPy global var 2018-09-24 19:28:40 +02:00
TSC21 bb835382dd use a yaml file description instead of json; minor improvements and cleanup 2018-09-21 15:55:17 +02:00
TSC21 a323073456 load RTPS msg IDs from a JSON file and remove uorb_rtps_message_ids.py 2018-09-21 15:55:17 +02:00
Daniel Agar af6098b9ea uORB print_message add device_id pretty print 2018-09-02 21:13:10 +02:00
TSC21 a1ac34d3e7 reformat how the passed time is printed 2018-08-09 13:40:48 +02:00
TSC21 8a8cc26b13 uorb templates: remove redundant timestamp field 2018-08-09 13:40:48 +02:00
TSC21 e932030d88 add timestamp field to uORB msgs; sync timestamp whenever possible 2018-08-09 13:40:48 +02:00
Beat Küng f1dc8f8f48 listener: use PX4_INFO_RAW instead of printf
Ensures that clients will get the output of the listener.
2018-08-08 21:09:39 +02:00
Nuno Marques 83fd5a5fd1 Update micro-CDR to latest and fix API usage (#9651)
* uorb_microcdr: msg.cpp.template: update API for how the buffer length is obtained
* micrortps_bridge: CMakeLists: temporarily deactivate check endianness option
2018-07-12 18:04:15 -04:00
TSC21 518daa4a8d fastrtps: clean up and fix template for client/agent code 2018-06-11 22:54:58 +02:00
Daniel Agar a6883c3a0d uORB generated header use full name in C define 2018-06-11 22:53:38 +02:00
David Riseborough a32333994f The single line UART setup was replaced with a locked down configuration.
As per issue #9428, this code change locks down the termios configuration
for the UART to non-canonical, binary tx/rx, 8 bits, 1 stop bit, no parity.
2018-05-11 17:11:40 +02:00
Beat Küng 0038a5e755 uorb: fix constness for _uorb_topics_list
_uorb_topics_list was marked as 'const char *' array, which means the data
of the array was not actually const and thus landed in the data section
(so in RAM instead of FLASH).
The size of the array is 436 bytes.
2018-03-29 10:06:21 -04:00
Daniel Agar 416feea9e4 uORB print_message cleanup
- indent field print with tabs instead of spaces
 - print a newline before printing a nested field
 - cmake add generator dependencies
2018-03-28 09:15:41 -04:00
Daniel Agar a98c7cf5c8 generate uorb topic helper rename px4_printf to print_field 2018-03-28 09:15:41 -04:00
Daniel Agar 0a0044fc29 uORB print message add timestamp elapsed 2018-03-28 09:15:41 -04:00
Daniel Agar 3db17a04fc uORB generate message print functions 2018-03-28 09:15:41 -04:00
Vicente Monge a272cbbd08 Included field timestamp for micrortps bridge messages. 2018-02-15 22:32:18 +01:00
Avinash Reddy Palleti 12c343317c Add aerofc baudrate to list
Adding aerofc baudrate 921600 into the list
2018-02-15 10:23:59 +01:00
Beat Küng 89b2fa2ba0 microRTPS_transport.h: add clarifying comment for Transport_node::write() 2018-02-14 12:14:34 +01:00
ritul jasuja 13a3791c47 Send RTPS header and payload in one stream
This avoids assembling the header and payload on the receiver side
2018-02-14 12:04:35 +01:00
David Riseborough 83133b1bca This commit fixes the way baud rate is generated from the program argument in
the FTPS client and agent.

A table has been added to the FTPS client and agent code that correlates
the baud rate value with the encoding.

A function has been added to the FTPS client and agent to take the program
argument for baud rate and use it to look up the table and return the entry
containing both the value and the encoding.

The value is displayed for the user and the encoding is sent to the uart
node constructor.

Signed-off-by: David Riseborough <drisebor@hotmail.com>
2018-02-05 08:25:03 +01:00
Daniel Agar 9b5ae1ef7a NuttX upgrade default compiler to GCC 7 2018-01-15 12:57:29 -05:00
Daniel Agar 651df03f76 RTPS and micro-CDR build system cleanup (#8084) 2017-10-11 13:05:44 -04:00
Daniel Agar 48f1e3ed1c uORB generation move to msg/ 2017-09-29 10:13:51 -04:00
Beat Küng 77785c01ef micrortps_client.cpp.template: avoid 0-init & check result of orb_copy 2017-08-08 21:47:17 +02:00
Beat Küng 55f65b4aff Tools/message_id.py: rename to uorb_rtps_message_ids.py for clarity 2017-08-08 21:47:17 +02:00
José Roberto de Souza 1a3315e397 msg: Fix build in python3
We can afford a slower performance in this parsers with python2 to
keep compability with python3.
http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html#xrange
2017-08-05 11:04:44 +02:00
Vicente Monge c5e2745a19 Fixes for manual bridge generation
Fix for some forgot .cxx extensions
Fix for 'print' python 2 3 compatibility
Fix for topic ID type change
2017-08-01 22:32:43 +02:00
Mark Charlebois d24503242e Extracted non-template code from template
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-01 22:32:43 +02:00
Mark Charlebois 049c769293 Converted cxx to cpp
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-01 22:32:43 +02:00
Mark Charlebois fc3d49240e Added missing "%"
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-01 22:32:43 +02:00
Daniel Agar 1e3fa64eff microRTPS_client printf PRIu64 2017-08-01 22:32:43 +02:00
Daniel Agar 30f8e5751d Makefile simplify colorecho for CI 2017-08-01 22:32:43 +02:00
Mark Charlebois fd86ab7f69 Fixed clock_gettime to be portable to OSX
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2017-08-01 22:32:43 +02:00
Daniel Agar 319c1d2046 microRTPS_transport.cxx fix code style 2017-08-01 22:32:43 +02:00
Daniel Agar 5b1e3b3257 microRTPS readability braces 2017-08-01 22:32:43 +02:00
Daniel Agar 2151890e50 urtps microRTPS_transport.h code style 2017-08-01 22:32:43 +02:00
Daniel Agar 62fc3fb5ab microRTPS_transport use uint8_t for topic_ID 2017-08-01 22:32:43 +02:00