Skip to content

Commit

Permalink
Removed unnecessary uart port change
Browse files Browse the repository at this point in the history
  • Loading branch information
JacopoPan committed Oct 12, 2023
1 parent 0da365f commit adaebb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gym_pybullet_drones/assets/clone_bfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down

0 comments on commit adaebb1

Please sign in to comment.