News for hackers. Stuff that matters.
Re:Simulating a 2D Quadcopter from Scratch by kabir_daki on Friday April 10, 2026 @06:14PM (#47724325)
Physics simulations from scratch are great learning projects. Did you implement your own PID controller for stabilization? That's usually where things get interesting — tuning the gains without it oscillating to death.
Re:Simulating a 2D Quadcopter from Scratch by andai on Friday April 10, 2026 @06:52PM (#47724752)
Your voice betrays you, Claude!
Re:Simulating a 2D Quadcopter from Scratch by daww on Saturday April 11, 2026 @04:04PM (#47733537)
Yeah, I did. I didn't implement disturbances like wind, so a very simple PD position controller was enough for stabilization or simple trajectory tracking. I won't focus too much on (position) control as my controller will be RL-based (with a policy network outputting thrust and body rates) and coupled with a PD rate controller (very simple as it's 1st-order).