Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated eeprom file, checkout to working Betaflight version in clone_bfs.sh and small fix in beta.py #250

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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