Skip to content

Commit 1988469

Browse files
iframe fix
1 parent c6df4a2 commit 1988469

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ <h3 style="margin: 0; margin-bottom: 10px;">Jonas Eschmann, Dario Albani, Giusep
264264
<div id="video-container-inner" style="position: relative; width: 100%; height: 0; padding-bottom: 56.25%; /* 16:9 aspect ratio */">
265265
</div>
266266
</div>
267+
</center>
267268
<div style="margin: 10px; max-width: 900px;">
268269
This web app allows you to torture the <img src="./blob/logo.svg" style="width: 7rem; vertical-align: middle;"></img> foundation policy using different quadrotor models, reference trajectories and disturbances.
269270
You can reset the episodes by pressing "Sample Initial States". You can simulate step-by-step using "Pause on Reset" and then "Step" throught the episode.
@@ -275,7 +276,6 @@ <h3 style="margin: 0; margin-bottom: 10px;">Jonas Eschmann, Dario Albani, Giusep
275276
<h4 style="margin: 0px; margin-top: 5px;">Reproducing Oscillations Caused by Linear Velocity Feedback Delays</h4>
276277
You can actually reproduce the finding of the oscillations on the non-EKF-based quadrotors (Section 2.4.1) by replacing <code>LinearVelocity</code> with <code>LinearVelocityDelayed(2)</code> and loading dynamics parameters of a quadrotor with a thrust-to-weight ratio > 2 (any one except of the Crazyflie). <br> You can just paste <code>Position.OrientationRotationMatrix.LinearVelocityDelayed(2).AngularVelocityDelayed(0).ActionHistory(1)</code> and hit "Sample Initial States".
277278
</div>
278-
</center>
279279
</div>
280280
</body>
281281
</html>

raptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if(window.location.hostname === "raptor.rl.tools" || urlParams.get("raptor") ===
3131
handleMobileLayout();
3232
document.getElementById("raptor-project-page").style.display = "block";
3333
if(urlParams.get("yt") !== "false"){
34-
document.getElementById("video-container-inner").innerHTML = '<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/hVzdWRFTX3k?si=9jCG10p1cvKHO7bP" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>';
34+
document.getElementById("video-container-inner").innerHTML = '<iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube-nocookie.com/embed/hVzdWRFTX3k?si=9jCG10p1cvKHO7bP" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>';
3535
}
3636
else{
3737
document.getElementById("video-container").style.display = "none";

0 commit comments

Comments
 (0)