Skip to content

Commit

Permalink
Added wip script to clone, compile, configure, run betaflight SITL
Browse files Browse the repository at this point in the history
  • Loading branch information
JacopoPan committed Oct 11, 2023
1 parent c7ee6b6 commit 92a9c3c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gym_pybullet_drones/assets/clone_bfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@
# USE
# 1. ..

echo 'TBD'
echo 'TBD'

git clone https://github.com/betaflight/betaflight
cd betaflight/
# comment out line `delayMicroseconds_real(50); // max rate 20kHz` in ./src/main/main.c
# edit ports in ./src/main/target/SITL/sitl.c, ./src/main/drivers/serial_tcp.c
make arm_sdk_install
make TARGET=SITL
cp ~/gym-pybullet-drones/gym_pybullet_drones/assets/eeprom.bin ~/betaflight/
./obj/main/betaflight_SITL.elf

0 comments on commit 92a9c3c

Please sign in to comment.