Skip to content

Commit c94c373

Browse files
author
Brad Carman
committed
fixed extra pi
1 parent 7108add commit c94c373

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Manifest.toml

scripts/animation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ function animate(;framerate = 30, filename="dyadbot.mp4")
6464
x = sol(t; idxs=bot.plant.x)
6565
theta = sol(t; idxs=bot.plant.theta)
6666

67-
# x = wheel*r
67+
# x = wheel*r
6868

6969
translate!(base_transform, x)
7070
rotate!(body_transform, -theta + π)
71-
rotate!(spoke_transform, -x/(r*π))
71+
rotate!(spoke_transform, -x/r)
7272
end
7373

7474
end

0 commit comments

Comments
 (0)