logoalt Hacker News

quibonotoday at 11:04 AM3 repliesview on HN

If I were to get a dirt cheap Chinese drone, would that be more likely to use RL or MCP? What’s the “standard”?


Replies

bri3dtoday at 1:43 PM

Low end and most open source stuff will use a PID inner loop for “fast path” control (stabilization) and either a second PID loop or something a little better (Kalman filter etc) for the slow path (position / path hold).

Higher end stuff will use a ton of inputs (visual odometry, binocular vision, lidar, range finding, etc) fused into some kind of proprietary blended algorithm that you could probably call an MPC.

RL is pretty cutting edge, especially for fast path motor control; there are a lot of university competitions for drone control that lead to a lot of papers and projects in the space (some promising) but most commercial stuff has not adopted this yet, certainly not at the low end.

the__alchemisttoday at 3:05 PM

Phrased in a slightly different way, assuming the standard is Betaflight/Ardupilot/PX4. (This article uses BF): Inner PID rate loop; this compares IMU-measured rates vs that commanded by manual controls. This might run at 1-4kHz.

On top of this (Maybe at a few hundred hz), you can add outer controls to set attitude. This could be an autopilot, or having the controls command attitude instead of rate. Betaflight pilots usually don't both with this, and have the simple setup of control maps to rate.

I've programmed firmware using a weird hybrid where the controls command a change in the target attitude. So it flies like rate, but has the forced attitude stability of an attitude-based control system. Non-standard, but makes it so you don't need to worry as much about tuning the PID loop. In practice, you can do full aerobatic flight with this like you'd do with a rate-only setup. (Basically, there is a commanded attitude quaternion; controls nudge it; the PIDs update motor power to maintain this commanded quaternion.)

spaqintoday at 11:57 AM

PID is more than enough to keep level. FPV relies on manual flight, but you can get Ardupilot for autonomous missions. There's no need for RL, nothing to gain here; level flight and following waypoints is a solved issue already.

And frankly as a pilot, I'd rather not see any completely autonomous drones with no oversight in the sky - that's one incident away in which blame cannot be put solely on the operator from getting the hobby completely banned.

show 1 reply