Live data from Hacker News

PID Control Challenges

janismac.github.io

41–50 of 123 posts

Re: PID Control Challenges

#41
post #37
post #34

What's people's record on the first puzzle? My current is 0.42 seconds. (I haven't bothered even loading any of the other puzzles yet)

Show code or it didn't happen :)

it's pretty trivial! erghea -400oybpx.k-40oybpx.qk; (not that rot13 really obscures anything here!)

The rest of the puzzles get pretty interesting, I shouldn't have just stopped on the first and spent all the time optimizing it.

If the author sees this thread it would be fun if you could disturb the dynamics with the mouse after completing one. I wanna watch the ball catching piston right the ball if I poke it.

Re: PID Control Challenges

#42

My control systems prof said every engineer has done an inverted pendulum problem in school and nobody in their career has ever been asked to balance an inverted pendulum. So our final was a thermostat instead.

Clearly your professor hasn’t had to stand upright in his career or walk for that matter.

The (spring loaded) inverted pendulum was one of the earliest analyzed models of legged locomotion.

Re: PID Control Challenges

#45
Some sort of 'high score' would be nice so I can understand how close my solution is to the ideal.

Pretty neat website overall. Seems like I'll be wasting some time on it.

Re: PID Control Challenges

#48
post #42

My control systems prof said every engineer has done an inverted pendulum problem in school and nobody in their career has ever been asked to balance an inverted pendulum. So our final was a thermostat instead.

Clearly your professor hasn’t had to stand upright in his career or walk for that matter. The (spring loaded) inverted pendulum was one of the earliest analyzed models of legged locomotion.

Yeah, his professor wasn't too bright if he said that. He probably never heard of Segway, One-Wheel, "hoverboards", or motorcycles with stability control.

Re: PID Control Challenges

#49
post #25
post #8

Earlier quoted context omitted.

Not all PID controllers are destined for embedded. They’re quite useful in gamedev, for example.

If you're willing to expand on this, color me interested.

I'm not a gamedev myself but have played a few games (Stormworks, Garry's mod with Wiremod, From The Depths, at least one or two more which I can't think of the name right now) that allow PIDs to be used in player-designed contraptions. Quite useful for building stabilised gun platforms and things.

I would be sure there's plenty of applications for PIDs in a game engine itself - a quick search turns up things like self-balancing physics objects, making game entities turn to follow a mouse pointer, and so on.

Post reply on HN