From 92a9c3c8d00edb24dbb22685bc36d80385d45e57 Mon Sep 17 00:00:00 2001 From: Jacopo Panerati Date: Wed, 11 Oct 2023 15:14:56 +0400 Subject: [PATCH] Added wip script to clone, compile, configure, run betaflight SITL --- gym_pybullet_drones/assets/clone_bfs.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gym_pybullet_drones/assets/clone_bfs.sh b/gym_pybullet_drones/assets/clone_bfs.sh index 0f003ec2b..a9473a4b1 100755 --- a/gym_pybullet_drones/assets/clone_bfs.sh +++ b/gym_pybullet_drones/assets/clone_bfs.sh @@ -3,4 +3,13 @@ # USE # 1. .. -echo 'TBD' \ No newline at end of file +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 \ No newline at end of file