Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iNic
on Sept 26, 2023
|
parent
|
context
|
favorite
| on:
PID Control Challenges
I got 0.4 sec with this: function controlFunction(block) { const maxforce = 100.; if (block.x < -1.01) return maxforce; else if (block.x < -0.01) return -maxforce; else return -block.x - 2 * block.dx; }
iNic
on Sept 26, 2023
[–]
Interestingly enough this does not work in every browser. (It worked in Orion, but not in Brave.)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: