diff --git a/gym_pybullet_drones/assets/clone_bfs.sh b/gym_pybullet_drones/assets/clone_bfs.sh index 44e026ed5..2e393e794 100755 --- a/gym_pybullet_drones/assets/clone_bfs.sh +++ b/gym_pybullet_drones/assets/clone_bfs.sh @@ -23,7 +23,7 @@ pattern1="#define PORT_PWM_RAW 9001 // Out" pattern2="#define PORT_PWM 9002 // Out" pattern3="#define PORT_STATE 9003 // In" pattern4="#define PORT_RC 9004 // In" -pattern5="#define BASE_PORT 5760" +# pattern5="#define BASE_PORT 5760" pattern6="ret = udpInit(&stateLink, NULL, 9003, true);" replacement0="// delayMicroseconds_real(50); // max rate 20kHz" @@ -50,8 +50,8 @@ for ((i = 1; i <= num_iterations; i++)); do replacement4="#define PORT_PWPORT_RCM_RAW 90${i}4 // In" sed -i "s/$pattern4/$replacement4/g" ./src/main/target/SITL/sitl.c - replacement5="#define BASE_PORT 57${i}0" - sed -i "s/$pattern5/$replacement5/g" ./src/main/drivers/serial_tcp.c + # replacement5="#define BASE_PORT 57${i}0" + # sed -i "s/$pattern5/$replacement5/g" ./src/main/drivers/serial_tcp.c sed -i "s/$pattern6/$replacement6/g" ./src/main/target/SITL/sitl.c