SpaceCenter#
Provides functionality to interact with Kerbal Space Program: vessels and their parts, celestial bodies and orbits, flight control, maneuver nodes and the auto-pilot.
Example#
The following example prints the name of the active vessel:
#include <iostream>
#include <krpc.hpp>
#include <krpc/services/space_center.hpp>
int main() {
auto conn = krpc::connect("SpaceCenter Example");
krpc::services::SpaceCenter space_center(conn);
std::cout << space_center.active_vessel().value().name() << std::endl;
}
Mods#
The SpaceCenter service supports several mods, such as Ferram Aerospace Research. The mods guide lists them, with the versions kRPC is tested with.