Skip to content

Commit

Permalink
Merge pull request #250 from Honungsburken/update-eeprom
Browse files Browse the repository at this point in the history
Updated eeprom file, checkout to working Betaflight version in clone_bfs.sh and small fix in beta.py
  • Loading branch information
JacopoPan authored Feb 11, 2025
2 parents 7cbc37c + 8fc8589 commit dbfff03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gym_pybullet_drones/assets/clone_bfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ git clone https://github.com/betaflight/betaflight temp/
# (https://github.com/betaflight/betaflight/blob/master/src/main/main.c#L52)
# from Betaflight's `SIMULATOR_BUILD`
cd temp/

git checkout cafe727 #latest commit at the time of writing the gym-pybullet-drones Readme

sed -i "s/delayMicroseconds_real(50);/\/\/delayMicroseconds_real(50);/g" ./src/main/main.c

# Prepare
Expand Down
Binary file modified gym_pybullet_drones/assets/eeprom.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion gym_pybullet_drones/examples/beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def run(
float(row["v_z"]),
]),
} for row in csv_reader])
with open("../assets/beta.csv", mode='r') as csv_file:
with open("../assets/beta-traj.csv", mode='r') as csv_file:
csv_reader = csv.DictReader(csv_file)
trajectory2 = iter(reversed([{
"pos": np.array([
Expand Down

0 comments on commit dbfff03

Please # to comment.