3 ms·
That's right; the real-time autopilot is written in C, and the flight simulator is written in C++. We have a really slick configuration system written in Python
by tobinfricke 6y ago
That's right; the real-time autopilot is written in C, and the flight simulator is written in C++. We have a really slick configuration system written in Python that compiles down to a Python dict and then a C struct at build time.
Example production C code (the crosswind flight controller):
https://github.com/google/makani/tree/master/control/crosswind https://github.com/google/makani/tree/master/control/crosswi...
Example production C++ code (the "wing" model in the simulator):
https://github.com/google/makani/blob/master/sim/models/rigid_bodies/wing.cc https://github.com/google/makani/blob/master/sim/models/rigi...