4 ms·
You can also do this for Kerbal Space Program using the kRPC mod: https://forum.kerbalspaceprogram.com/topic/130742-18x-to-112x-krpc-control-the-game-using-c-c-
by saulrh 3y ago
You can also do this for Kerbal Space Program using the kRPC mod: https://forum.kerbalspaceprogram.com/topic/130742-18x-to-112x-krpc-control-the-game-using-c-c-java-lua-python-ruby-haskell-c-arduino-v052-18th-march-2023 https://forum.kerbalspaceprogram.com/topic/130742-18x-to-112.... It's a much less polished experience, but you get more of the experience of an actual avionics/robotics project doing it this way - multiple sensors that may not necessarily agree with each other (for example, IIRC accelerometers installed at different ends of the ship will register different readings!), you have to be quite a bit more careful when interfacing with engines and may not have access to a simple "go left" control input, you have to deal with whatever nightmare vehicle you built that you need a computer to handle, that kind of thing.
- mattsan 3y agoIf you want a simpler intro into learning the math/logic behind rocket guidance systems, kOS is an alternative mod. The main difference is that it has a pretty good base autopilot, such that you can give it a direction vector to point to. The downside is that you have to learn a specific language for it, but you can also make your own language that transpiles as a fun project :) Example of what's possible: https://www.youtube.com/watch?v=szsIL_0m2Qo https://www.youtube.com/watch?v=szsIL_0m2Qo
- saulrh 3y agokOS is good stuff, yeah. Very... immersive, heh. It has all of these weird design decisions from having been built to do relatively simple spaceship sequencing tasks first, rather than as a general purpose programming language, and having grown over time to do arbitrary stuff. That history gives it this really uniquely crunchy feeling that you just wouldn't get with a more modern, ergonomic system.
- mattsan 3y agoTo be fair, theres also the kIPC mod that bridges and connects both kOS and kRPC together. I personally like the kerbal-y equivalent of Ada with kOS though ahaha
- luxcem 3y agokOS is a very fun rabbithole, the language can strange at first, it's a reactive paradigm with a special flow. I started with the [PID tutorial](https://ksp-kos.github.io/KOS/tutorials/pidloops.html https://ksp-kos.github.io/KOS/tutorials/pidloops.html) to learn PID in a fun environnent. Then programming orbital maneuvers to dig into orbital mechanics. The community is really active, with a lot of challenges like spaceX booster landing.