TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: 2D PID controller simulation

73 点作者 nikital大约 10 年前

10 条评论

sjtrny大约 10 年前
It's a shame that the PID values aren't exposed directly in text boxes but you can affect how the ball behaves (react faster/slower or cause under or overshoot) by adjusting the kp, ki and kd values.
评论 #9476849 未加载
ambrop7大约 10 年前
I'm curious, is there any configuration of the PID parameters that would achieve optimal control for this simple physical system? I suppose the optimum looks like 100% thrust and switching to -100% thrust at just the right time to stop at the target position.
评论 #9477611 未加载
评论 #9478593 未加载
评论 #9477623 未加载
bobmoretti大约 10 年前
This would be a really cool illustration if you could solve the closed loop transfer function, and display the locations of the closed loop zeros and poles.
rounak大约 10 年前
Can anyone explain what is this?
评论 #9476787 未加载
评论 #9476793 未加载
评论 #9476814 未加载
评论 #9476997 未加载
评论 #9476908 未加载
xnzakg大约 10 年前
Would be pretty nice to have some external force (like gravity), otherwise the i value is pretty much useless.<p>Also, some friction would be nice.
评论 #9477872 未加载
mrpsrinkles大约 10 年前
Looking at the source this is actually a PD controller, which makes sense for a simple simulation like this.
评论 #9476893 未加载
pjkundert大约 10 年前
For a complete Python PID loop implementation and (console) demo:<p><pre><code> git clone https:&#x2F;&#x2F;github.com&#x2F;pjkundert&#x2F;ownercredit.git PYTHONPATH=$PWD python .&#x2F;ownercredit&#x2F;pid.py</code></pre>
fnordfnordfnord大约 10 年前
Nice demo. Thanks. FYI <a href="http:&#x2F;&#x2F;nikital.github.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;nikital.github.io&#x2F;</a> is 404.
评论 #9477308 未加载
phonyphonecall大约 10 年前
Challenge HN: Make it travel in a perfect circle. Comment with your strats.
评论 #9478412 未加载
adiko大约 10 年前
Very nice simulation!