ManeuverPlanner#
-
class ManeuverPlanner#
The Maneuver Planner window, which makes maneuver nodes for its operations, and executes them.
Note
MechJeb shares the operations, and most of their settings, between vessels.
-
OperationAdvancedTransfer operation_advanced_transfer()#
The operation that transfers to another planet, at the departure that needs the least delta-v.
- Game Scenes:
Flight
-
OperationApoapsis operation_apoapsis()#
The operation that changes the apoapsis.
- Game Scenes:
Flight
-
OperationCircularize operation_circularize()#
The operation that circularizes the orbit.
- Game Scenes:
Flight
-
OperationCourseCorrection operation_course_correction()#
The operation that fine tunes the closest approach to the target.
- Game Scenes:
Flight
-
OperationEccentricity operation_eccentricity()#
The operation that changes the eccentricity.
- Game Scenes:
Flight
-
OperationEllipticize operation_ellipticize()#
The operation that changes both the periapsis and the apoapsis.
- Game Scenes:
Flight
-
OperationInclination operation_inclination()#
The operation that changes the inclination.
- Game Scenes:
Flight
-
OperationInterplanetaryTransfer operation_interplanetary_transfer()#
The operation that transfers to another planet.
- Game Scenes:
Flight
-
OperationKillRelVel operation_kill_rel_vel()#
The operation that matches velocities with the target.
- Game Scenes:
Flight
-
OperationLambert operation_lambert()#
The operation that intercepts the target at a chosen time.
- Game Scenes:
Flight
-
OperationLan operation_lan()#
The operation that changes the longitude of the ascending node.
- Game Scenes:
Flight
-
OperationLongitude operation_longitude()#
The operation that changes the surface longitude of the apsis.
- Game Scenes:
Flight
-
OperationMoonReturn operation_moon_return()#
The operation that returns from a moon.
- Game Scenes:
Flight
-
OperationPeriapsis operation_periapsis()#
The operation that changes the periapsis.
- Game Scenes:
Flight
-
OperationPlane operation_plane()#
The operation that matches planes with the target.
- Game Scenes:
Flight
-
OperationResonantOrbit operation_resonant_orbit()#
The operation that changes to a resonant orbit.
- Game Scenes:
Flight
-
OperationSemiMajor operation_semi_major()#
The operation that changes the semi-major axis.
- Game Scenes:
Flight
-
OperationTransfer operation_transfer()#
The operation that transfers to the target.
- Game Scenes:
Flight
-
void abort_node_execution()#
Stop executing the maneuver nodes.
- Game Scenes:
Flight
-
void execute_all_nodes()#
Execute all the maneuver nodes. Throws an exception if the vessel has no maneuver node.
- Game Scenes:
Flight
-
void execute_next_node()#
Execute the next maneuver node. Throws an exception if the vessel has no maneuver node.
- Game Scenes:
Flight
-
bool autowarp()#
-
void set_autowarp(bool value)#
Whether to warp time to the burn.
- Game Scenes:
Flight
Note
The same setting as
AscentSettings::autowarp(),LandingGuidance::autowarp()andRendezvousAutopilot::autowarp().
-
bool executing_node()#
Whether a maneuver node is being executed.
- Game Scenes:
Flight
-
double lead_time()#
-
void set_lead_time(double value)#
The time before the burn at which time warp stops, in seconds.
- Game Scenes:
Flight
-
bool rcs_only()#
-
void set_rcs_only(bool value)#
Whether to burn with the RCS thrusters in place of the engines.
- Game Scenes:
Flight
-
bool kill_roll_rotation()#
-
void set_kill_roll_rotation(bool value)#
Whether to stop the vessel’s roll before the burn.
- Game Scenes:
Flight
-
OperationAdvancedTransfer operation_advanced_transfer()#
-
class OperationException#
Thrown when an operation cannot make its nodes, such as when it needs a target and there is none.
A subclass of
krpc::ServerError.
TimeSelector#
-
class TimeSelector#
The time of a maneuver.
-
double circularize_altitude()#
-
void set_circularize_altitude(double value)#
The altitude, in meters.
- Game Scenes:
Flight
Note
Applies to
TimeReference::altitude.
-
double lead_time()#
-
void set_lead_time(double value)#
The time from now, in seconds.
- Game Scenes:
Flight
Note
Applies to
TimeReference::x_from_now.
-
TimeReference time_reference()#
-
void set_time_reference(TimeReference value)#
The time reference. Throws an exception if set to a reference the operation does not allow.
- Game Scenes:
Flight
-
double circularize_altitude()#
-
enum struct TimeReference#
The time reference of a maneuver. See
TimeSelector::time_reference().-
enumerator computed#
At the optimum time.
-
enumerator x_from_now#
After
TimeSelector::lead_time().
-
enumerator apoapsis#
At the next apoapsis.
-
enumerator periapsis#
At the next periapsis.
-
enumerator altitude#
-
enumerator eq_ascending#
At the equatorial ascending node.
-
enumerator eq_descending#
At the equatorial descending node.
-
enumerator rel_ascending#
At the next ascending node with the target.
-
enumerator rel_descending#
At the next descending node with the target.
-
enumerator closest_approach#
At the closest approach to the target.
-
enumerator eq_highest_ad#
At the cheaper of the equatorial ascending and descending nodes.
-
enumerator eq_nearest_ad#
At the nearer of the equatorial ascending and descending nodes.
-
enumerator rel_highest_ad#
At the cheaper of the ascending and descending nodes with the target.
-
enumerator rel_nearest_ad#
At the nearer of the ascending and descending nodes with the target.
-
enumerator computed#
Operations#
OperationAdvancedTransfer#
-
class OperationAdvancedTransfer#
An interplanetary transfer to the target body, at the departure that needs the least delta-v before
OperationAdvancedTransfer::max_arrival_time().Note
MechJeb searches for the departure in the background. The first call to
MakeNodesstarts the search, and throws anOperationExceptionuntil it finishes. SeeOperationAdvancedTransfer::searching().-
double max_arrival_time()#
-
void set_max_arrival_time(double value)#
The latest arrival time, as a time from now, in seconds.
- Game Scenes:
Flight
-
bool include_capture_burn()#
-
void set_include_capture_burn(bool value)#
Whether to plan a capture burn at the destination.
- Game Scenes:
Flight
-
double periapsis_height()#
-
void set_periapsis_height(double value)#
The altitude of the periapsis at the destination, in meters.
- Game Scenes:
Flight
-
bool searching()#
Whether MechJeb is searching for the departure.
- Game Scenes:
Flight
-
int32_t search_progress()#
The progress of the search for the departure, as a percentage.
- Game Scenes:
Flight
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double max_arrival_time()#
OperationApoapsis#
-
class OperationApoapsis#
Change the apoapsis.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_apoapsis()#
-
void set_new_apoapsis(double value)#
The new apoapsis altitude, in meters.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationCircularize#
-
class OperationCircularize#
Circularize the orbit.
Note
To raise the periapsis to the apoapsis, set the time to
TimeReference::apoapsis, and to lower the apoapsis to the periapsis, set it toTimeReference::periapsis. These are the cheapest.-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationCourseCorrection#
-
class OperationCourseCorrection#
Fine tune the closest approach to the target.
-
double final_periapsis_altitude()#
-
void set_final_periapsis_altitude(double value)#
The periapsis altitude at a target body, in meters.
- Game Scenes:
Flight
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
double intercept_distance()#
-
void set_intercept_distance(double value)#
The closest approach distance to a target vessel, in meters.
- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double final_periapsis_altitude()#
OperationEccentricity#
-
class OperationEccentricity#
Change the eccentricity.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_eccentricity()#
-
void set_new_eccentricity(double value)#
The new eccentricity.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationEllipticize#
-
class OperationEllipticize#
Change both the periapsis and the apoapsis.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_apoapsis()#
-
void set_new_apoapsis(double value)#
The new apoapsis altitude, in meters.
- Game Scenes:
Flight
-
double new_periapsis()#
-
void set_new_periapsis(double value)#
The new periapsis altitude, in meters.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationInclination#
-
class OperationInclination#
Change the inclination.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_inclination()#
-
void set_new_inclination(double value)#
The new inclination, in degrees.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationInterplanetaryTransfer#
-
class OperationInterplanetaryTransfer#
Transfer to another planet.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
bool wait_for_phase_angle()#
-
void set_wait_for_phase_angle(bool value)#
Whether to wait for the optimal phase angle. Otherwise the transfer happens now.
- Game Scenes:
Flight
-
std::string error_message()#
OperationKillRelVel#
-
class OperationKillRelVel#
Match velocities with the target.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationLambert#
-
class OperationLambert#
Intercept the target at a chosen time.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
double intercept_interval()#
-
void set_intercept_interval(double value)#
The time from the maneuver to the intercept, in seconds.
- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationLan#
-
class OperationLan#
Change the longitude of the ascending node.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_lan()#
-
void set_new_lan(double value)#
The new longitude of the ascending node, in degrees.
- Game Scenes:
Flight
Note
MechJeb holds this value in the target controller of each vessel, as the longitude of the position target. Setting it also moves the position target.
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationLongitude#
-
class OperationLongitude#
Change the surface longitude of the apsis.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_surface_longitude()#
-
void set_new_surface_longitude(double value)#
The new surface longitude of the apsis after one orbit, in degrees.
- Game Scenes:
Flight
Note
MechJeb holds this value in the target controller of each vessel, as the longitude of the position target. Setting it also moves the position target.
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationMoonReturn#
-
class OperationMoonReturn#
Return from a moon to the body it orbits.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double moon_return_altitude()#
-
void set_moon_return_altitude(double value)#
The approximate periapsis altitude at the body, in meters.
- Game Scenes:
Flight
-
std::string error_message()#
OperationPeriapsis#
-
class OperationPeriapsis#
Change the periapsis.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_periapsis()#
-
void set_new_periapsis(double value)#
The new periapsis altitude, in meters.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationPlane#
-
class OperationPlane#
Match planes with the target.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationResonantOrbit#
-
class OperationResonantOrbit#
Change to a resonant orbit, to place satellites in a constellation.
Note
Start from an orbit in the plane of the constellation. To deploy satellites, set the denominator to their number. A numerator one less than the denominator is the cheapest, though not the fastest. The two numbers must have no common factor.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
int32_t resonance_denominator()#
-
void set_resonance_denominator(int32_t value)#
The denominator of the ratio of the new orbital period to the current one.
- Game Scenes:
Flight
-
int32_t resonance_numerator()#
-
void set_resonance_numerator(int32_t value)#
The numerator of the ratio of the new orbital period to the current one.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationSemiMajor#
-
class OperationSemiMajor#
Change the semi-major axis.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
double new_semi_major_axis()#
-
void set_new_semi_major_axis(double value)#
The new semi-major axis, in meters.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#
OperationTransfer#
-
class OperationTransfer#
A bi-impulsive (Hohmann) transfer to the target, within one sphere of influence. It suits a rendezvous with a vessel or a transfer to a moon.
Note
Despite the name, the transfer is often uni-impulsive. It happens at the selected time, or at the optimum time.
-
std::string error_message()#
The warning or error from the last call to
MakeNodes, or an empty string.- Game Scenes:
Flight
-
std::vector<SpaceCenter::Node> make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
-
bool capture()#
-
void set_capture(bool value)#
Whether the transfer ends in the target’s orbit. Without capture, it is an impact or a flyby.
- Game Scenes:
Flight
-
bool plan_capture()#
-
void set_plan_capture(bool value)#
Whether to make a second node for the capture burn.
- Game Scenes:
Flight
Note
Requires
OperationTransfer::capture().
-
bool rendezvous()#
-
void set_rendezvous(bool value)#
Whether to meet the target, rather than reach its orbit.
- Game Scenes:
Flight
-
double lag_time()#
-
void set_lag_time(double value)#
The time by which the vessel arrives behind the target, in seconds.
- Game Scenes:
Flight
Note
Requires
OperationTransfer::rendezvous().
-
bool coplanar()#
-
void set_coplanar(bool value)#
Whether the transfer stays in the vessel’s orbital plane.
- Game Scenes:
Flight
-
TimeSelector time_selector()#
The time of the maneuver.
- Game Scenes:
Flight
-
std::string error_message()#