Skip to content

Commit 3f51be6

Browse files
authored
Merge pull request #224 from BlueAndi/bugfix/customOption
Custom options have to start with custom_ or board_ to
2 parents 231513f + e56d434 commit 3f51be6

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

platformio.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ extra_scripts =
102102
post:./scripts/copy_webots_shared_libs.py
103103

104104
; Custom options (https://docs.platformio.org/en/latest/scripting/examples/platformio_ini_custom_options.html)
105-
webots_ip_address = 127.0.0.1 ; IP address of the Webots simulation, which is used for TCP communication
106-
webots_protocol = ipc ; [ipc|tcp] - ipc is faster but only works on the same machine, tcp works also over network
107-
webots_robot_name = ZumoComSystem
108-
webots_robot_serial_rx_channel = 4
109-
webots_robot_serial_tx_channel = 3
105+
custom_webots_ip_address = 127.0.0.1 ; IP address of the Webots simulation, which is used for TCP communication
106+
custom_webots_protocol = ipc ; [ipc|tcp] - ipc is faster but only works on the same machine, tcp works also over network
107+
custom_webots_robot_name = ZumoComSystem
108+
custom_webots_robot_serial_rx_channel = 4
109+
custom_webots_robot_serial_tx_channel = 3
110110

111111
; *****************************************************************************
112112
; PC target environment for tests

platformio_override.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
; Webots directory, e.g. WEBOTS_HOME=C:\Users\<user>\AppData\Local\Programs\Webots
2020
; *****************************************************************************
2121
[target:Sim]
22-
webots_ip_address = 127.0.0.1 ; IP address of the Webots simulation, which is used for TCP communication
23-
webots_protocol = ipc ; [ipc|tcp] - ipc is faster but only works on the same machine, tcp works also over network
24-
webots_robot_name = ZumoComSystem
25-
webots_robot_serial_rx_channel = 4
26-
webots_robot_serial_tx_channel = 3
22+
custom_webots_ip_address = 127.0.0.1 ; IP address of the Webots simulation, which is used for TCP communication
23+
custom_webots_protocol = ipc ; [ipc|tcp] - ipc is faster but only works on the same machine, tcp works also over network
24+
custom_webots_robot_name = ZumoComSystem
25+
custom_webots_robot_serial_rx_channel = 4
26+
custom_webots_robot_serial_tx_channel = 3

scripts/webots_launcher.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
OS_PLATFORM_TYPE_MACOS = "Darwin"
4141
OS_PLATFORM_TYPE = platform.system()
4242

43-
WEBOTS_IP_ADDRESS = env.GetProjectOption("webots_ip_address") # pylint: disable=undefined-variable
44-
WEBOTS_PROTOCOL = env.GetProjectOption("webots_protocol") # pylint: disable=undefined-variable
43+
WEBOTS_IP_ADDRESS = env.GetProjectOption("custom_webots_ip_address") # pylint: disable=undefined-variable
44+
WEBOTS_PROTOCOL = env.GetProjectOption("custom_webots_protocol") # pylint: disable=undefined-variable
4545

46-
ROBOT_NAME = env.GetProjectOption("webots_robot_name") # pylint: disable=undefined-variable
46+
ROBOT_NAME = env.GetProjectOption("custom_webots_robot_name") # pylint: disable=undefined-variable
4747

48-
ROBOT_SERIAL_RX_CHANNEL = env.GetProjectOption("webots_robot_serial_rx_channel") # pylint: disable=undefined-variable
49-
ROBOT_SERIAL_TX_CHANNEL = env.GetProjectOption("webots_robot_serial_tx_channel") # pylint: disable=undefined-variable
48+
ROBOT_SERIAL_RX_CHANNEL = env.GetProjectOption("custom_webots_robot_serial_rx_channel") # pylint: disable=undefined-variable
49+
ROBOT_SERIAL_TX_CHANNEL = env.GetProjectOption("custom_webots_robot_serial_tx_channel") # pylint: disable=undefined-variable
5050

5151
PROGRAM_PATH = "$BUILD_DIR/"
5252
PROGRAM_OPTIONS = '--cfgFilePath "../../../data/config/config.json" ' \

0 commit comments

Comments
 (0)