diff --git a/src/modules/micrortps_bridge/micrortps_client/microRTPS_client.h b/src/modules/micrortps_bridge/micrortps_client/microRTPS_client.h index d841fe5fb0..c9fef23bf1 100644 --- a/src/modules/micrortps_bridge/micrortps_client/microRTPS_client.h +++ b/src/modules/micrortps_bridge/micrortps_client/microRTPS_client.h @@ -49,7 +49,6 @@ #include #define BUFFER_SIZE 1024 -#define UPDATE_TIME_MS 0 #define LOOPS -1 #define SLEEP_MS 1 #define BAUDRATE 460800 @@ -77,7 +76,6 @@ struct options { char ip[16] = IP; uint16_t recv_port = DEFAULT_RECV_PORT; uint16_t send_port = DEFAULT_SEND_PORT; - uint32_t update_time_ms = UPDATE_TIME_MS; uint32_t sleep_ms = SLEEP_MS; uint32_t baudrate = BAUDRATE; uint32_t poll_ms = POLL_MS; diff --git a/src/modules/micrortps_bridge/micrortps_client/microRTPS_client_main.cpp b/src/modules/micrortps_bridge/micrortps_client/microRTPS_client_main.cpp index 9c2ac35b18..50a8bfaabd 100644 --- a/src/modules/micrortps_bridge/micrortps_client/microRTPS_client_main.cpp +++ b/src/modules/micrortps_bridge/micrortps_client/microRTPS_client_main.cpp @@ -1,6 +1,7 @@ /**************************************************************************** * * Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). + * Copyright (c) 2019 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -63,8 +64,6 @@ static void usage(const char *name) PRINT_MODULE_USAGE_PARAM_STRING('d', "/dev/ttyACM0", "", "Select Serial Device", true); PRINT_MODULE_USAGE_PARAM_INT('b', 460800, 9600, 3000000, "Baudrate (can also be p:)", true); PRINT_MODULE_USAGE_PARAM_INT('p', -1, 1, 1000, "Poll timeout for UART in ms", true); - PRINT_MODULE_USAGE_PARAM_INT('u', 0, 0, 10000, - "Interval in ms to limit the update rate of all sent topics (0=unlimited)", true); PRINT_MODULE_USAGE_PARAM_INT('l', 10000, -1, 100000, "Limit number of iterations until the program exits (-1=infinite)", true); PRINT_MODULE_USAGE_PARAM_INT('w', 1, 1, 1000, "Time in ms for which each iteration sleeps", true); @@ -82,7 +81,7 @@ static int parse_options(int argc, char *argv[]) int myoptind = 1; const char *myoptarg = nullptr; - while ((ch = px4_getopt(argc, argv, "t:d:u:l:w:b:p:r:s:i:", &myoptind, &myoptarg)) != EOF) { + while ((ch = px4_getopt(argc, argv, "t:d:l:w:b:p:r:s:i:", &myoptind, &myoptarg)) != EOF) { switch (ch) { case 't': _options.transport = strcmp(myoptarg, "UDP") == 0 ? options::eTransports::UDP @@ -90,8 +89,6 @@ static int parse_options(int argc, char *argv[]) case 'd': if (nullptr != myoptarg) strcpy(_options.device, myoptarg); break; - case 'u': _options.update_time_ms = strtoul(myoptarg, nullptr, 10); break; - case 'l': _options.loops = strtol(myoptarg, nullptr, 10); break; case 'w': _options.sleep_ms = strtoul(myoptarg, nullptr, 10); break;