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

fix px4 connection for wsl 2. #3603

Merged
merged 44 commits into from
May 6, 2021
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
dd27458
fix px4 connection for wsl 2.
lovettchris Apr 16, 2021
b30ee91
enable throttling to 250 hz and fix bug in lockstep, should not send …
lovettchris Apr 16, 2021
1f3368b
add mavlink 2 support
lovettchris Apr 16, 2021
1c15604
make test terminate when it finds a problem, so you can capture the r…
lovettchris Apr 16, 2021
006d4e2
Merge settings improvements from PR 3546
lovettchris Apr 16, 2021
3b82fef
fix build and update docs.
lovettchris Apr 16, 2021
30ab123
fix unreal build
lovettchris Apr 16, 2021
b0b5de3
compute checksum on telemetry messages.
lovettchris Apr 17, 2021
71ff206
fix compiler warning.
lovettchris Apr 17, 2021
24d1bb6
Move telemetry to separate thread to get it out of the update() loop.…
lovettchris Apr 18, 2021
62048e5
guard telemetry variables with a mutex.
lovettchris Apr 18, 2021
938046f
make actuator delay an average
lovettchris Apr 18, 2021
9608bb4
add missing script files
lovettchris Apr 18, 2021
cb46217
fix pwsh support
lovettchris Apr 18, 2021
cfc7eec
add update_time to mavlinktelemetry
lovettchris Apr 18, 2021
642539a
Merge branch 'master' into clovett/mavlinkfixes
lovettchris Apr 19, 2021
f943770
add requirements.txt for pythonclient.
lovettchris Apr 20, 2021
92f3f3f
add info on how to use mavlink logs and px4 log viewer to debug a bad…
lovettchris Apr 20, 2021
bf71a53
Merge branch 'clovett/mavlinkfixes' of github.com:microsoft/AirSim in…
lovettchris Apr 20, 2021
db62395
Merge branch 'master' into clovett/mavlinkfixes
lovettchris Apr 20, 2021
cbdff5b
fix install link
lovettchris Apr 20, 2021
d48f5c0
add link to logging.
lovettchris Apr 20, 2021
65c3b4b
Merge branch 'master' into clovett/mavlinkfixes
lovettchris Apr 24, 2021
f7d2fea
fix drone server wsl2 connection.
lovettchris Apr 24, 2021
ad5534a
CR feedback.
lovettchris Apr 27, 2021
3d8f8b2
fix ros wrapper compile.
lovettchris Apr 27, 2021
e894d3a
script to test flying up high
lovettchris Apr 28, 2021
9d2012e
merge master
lovettchris Apr 28, 2021
0b81265
fix missing stopLoggingReceiveMessage
lovettchris Apr 28, 2021
f72de5f
nasty merge with master
lovettchris Apr 28, 2021
62b08da
consistency with logviewer logging and add docs.
lovettchris Apr 28, 2021
6db1f21
Pause physics update loop while waiting for actuator controls during …
lovettchris Apr 28, 2021
6fdb9b7
add missing update
lovettchris Apr 28, 2021
d28ace6
cleanup unnecessary cmake messages.
lovettchris Apr 28, 2021
f28f32b
Fix code formatting
lovettchris Apr 29, 2021
b717da4
fix typos.
lovettchris Apr 29, 2021
609031b
fix typo in udpate_rate
lovettchris Apr 29, 2021
def8bc0
fix bugs.
lovettchris Apr 30, 2021
c04924f
clang format
lovettchris Apr 30, 2021
6c747c7
cr fixes
lovettchris Apr 30, 2021
ade1289
Merge branch 'master' into clovett/mavlinkfixes
lovettchris May 3, 2021
e434f41
Add info on lockstep and steppable clock.
lovettchris May 3, 2021
ef5a6a6
add lockstep to toc
lovettchris May 4, 2021
6db5c7f
Make sure each buffer is zero'd out before reading bytes. Remove unn…
lovettchris May 5, 2021
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
Prev Previous commit
Next Next commit
make test terminate when it finds a problem, so you can capture the r…
…elated logs.
  • Loading branch information
lovettchris committed Apr 16, 2021
commit 1c15604a3e2b14cb19fefcd6d015caca8d74e8d1
8 changes: 6 additions & 2 deletions PythonClient/multirotor/stability_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def is_unstable(self, amount):
print("{}: min={}, max={}, mean={}, stddev={}".format(self.name, minimum, maximum, mean, stddev))
return (maximum - minimum) > amount

iteration = 0
while True:
iteration += 1
x = Numbers("x")
y = Numbers("y")
z = Numbers("z")
Expand All @@ -51,9 +53,9 @@ def is_unstable(self, amount):
client.takeoffAsync().join()
time.sleep(1)

# fly for a minute
# fly for 2 minutes
start = time.time()
while time.time() < start + 20:
while time.time() < start + 120:
state = client.getMultirotorState()
x_val = state.kinematics_estimated.position.x_val
y_val = state.kinematics_estimated.position.y_val
Expand All @@ -71,12 +73,14 @@ def is_unstable(self, amount):
client.armDisarm(False)

# more than 50 centimeter drift is unacceptable.
print("Results for iteration {}".format(iteration))
a = x.is_unstable(0.5)
b = y.is_unstable(0.5)
c = z.is_unstable(0.5)

if a or b or c:
play_sound(os.path.join(script_dir, "Error.wav"))
break

time.sleep(5)

Expand Down