3 ms·
> I wonder if you can do better and avoid that as much as possible. You can! However, that's basically another 100 pages of "and now let's throw all this code
by TheRealPomax 2y ago
> I wonder if you can do better and avoid that as much as possible.
You can! However, that's basically another 100 pages of "and now let's throw all this code away again, because it's time to switch to self-tuning PD controllers with a drastically decreased polling interval".
Really an autopilot is a combination of as "super dumb, but effective" control processes (the dumber the better, because less code equal less bug equal more alive) that are ideal for PD control, but that does require running the control loop as close to "real time" as you can, whereas we started with "let's not bog down the system, and run twice a second" (because MSFS is programmed in a, let's call it "special" way, and it's basically always CPU bottlenecked)
So... exercise for the reader right now =D