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.
- operation_advanced_transfer#
The operation that transfers to another planet, at the departure that needs the least delta-v.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_apoapsis#
The operation that changes the apoapsis.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_circularize#
The operation that circularizes the orbit.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_course_correction#
The operation that fine tunes the closest approach to the target.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_eccentricity#
The operation that changes the eccentricity.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_ellipticize#
The operation that changes both the periapsis and the apoapsis.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_inclination#
The operation that changes the inclination.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_interplanetary_transfer#
The operation that transfers to another planet.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_kill_rel_vel#
The operation that matches velocities with the target.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_lambert#
The operation that intercepts the target at a chosen time.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_lan#
The operation that changes the longitude of the ascending node.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_longitude#
The operation that changes the surface longitude of the apsis.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_moon_return#
The operation that returns from a moon.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_periapsis#
The operation that changes the periapsis.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_plane#
The operation that matches planes with the target.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_resonant_orbit#
The operation that changes to a resonant orbit.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_semi_major#
The operation that changes the semi-major axis.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- operation_transfer#
The operation that transfers to the target.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- abort_node_execution()#
Stop executing the maneuver nodes.
- Game Scenes:
Flight
- execute_all_nodes()#
Execute all the maneuver nodes. Throws an exception if the vessel has no maneuver node.
- Game Scenes:
Flight
- execute_next_node()#
Execute the next maneuver node. Throws an exception if the vessel has no maneuver node.
- Game Scenes:
Flight
- autowarp#
Whether to warp time to the burn.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
Note
The same setting as
AscentSettings.autowarp,LandingGuidance.autowarpandRendezvousAutopilot.autowarp.
- executing_node#
Whether a maneuver node is being executed.
- Attribute:
Read-only, cannot be set
- Return type:
bool
- Game Scenes:
Flight
- lead_time#
The time before the burn at which time warp stops, in seconds.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- rcs_only#
Whether to burn with the RCS thrusters in place of the engines.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- kill_roll_rotation#
Whether to stop the vessel’s roll before the burn.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- 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.error.ServerError.
TimeSelector#
- class TimeSelector#
The time of a maneuver.
- circularize_altitude#
The altitude, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
Note
Applies to
TimeReference.altitude.
- lead_time#
The time from now, in seconds.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
Note
Applies to
TimeReference.x_from_now.
- time_reference#
The time reference. Throws an exception if set to a reference the operation does not allow.
- Attribute:
Can be read or written
- Return type:
- Game Scenes:
Flight
- class TimeReference#
The time reference of a maneuver. See
TimeSelector.time_reference.- computed#
At the optimum time.
- x_from_now#
After
TimeSelector.lead_time.
- apoapsis#
At the next apoapsis.
- periapsis#
At the next periapsis.
- altitude#
- eq_ascending#
At the equatorial ascending node.
- eq_descending#
At the equatorial descending node.
- rel_ascending#
At the next ascending node with the target.
- rel_descending#
At the next descending node with the target.
- closest_approach#
At the closest approach to the target.
- eq_highest_ad#
At the cheaper of the equatorial ascending and descending nodes.
- eq_nearest_ad#
At the nearer of the equatorial ascending and descending nodes.
- rel_highest_ad#
At the cheaper of the ascending and descending nodes with the target.
- rel_nearest_ad#
At the nearer of the ascending and descending nodes with the target.
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.- max_arrival_time#
The latest arrival time, as a time from now, in seconds.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- include_capture_burn#
Whether to plan a capture burn at the destination.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- periapsis_height#
The altitude of the periapsis at the destination, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- searching#
Whether MechJeb is searching for the departure.
- Attribute:
Read-only, cannot be set
- Return type:
bool
- Game Scenes:
Flight
- search_progress#
The progress of the search for the departure, as a percentage.
- Attribute:
Read-only, cannot be set
- Return type:
int
- Game Scenes:
Flight
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
OperationApoapsis#
- class OperationApoapsis#
Change the apoapsis.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_apoapsis#
The new apoapsis altitude, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
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.- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationCourseCorrection#
- class OperationCourseCorrection#
Fine tune the closest approach to the target.
- final_periapsis_altitude#
The periapsis altitude at a target body, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- intercept_distance#
The closest approach distance to a target vessel, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
OperationEccentricity#
- class OperationEccentricity#
Change the eccentricity.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_eccentricity#
The new eccentricity.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationEllipticize#
- class OperationEllipticize#
Change both the periapsis and the apoapsis.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_apoapsis#
The new apoapsis altitude, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- new_periapsis#
The new periapsis altitude, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationInclination#
- class OperationInclination#
Change the inclination.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_inclination#
The new inclination, in degrees.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationInterplanetaryTransfer#
- class OperationInterplanetaryTransfer#
Transfer to another planet.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- wait_for_phase_angle#
Whether to wait for the optimal phase angle. Otherwise the transfer happens now.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
OperationKillRelVel#
- class OperationKillRelVel#
Match velocities with the target.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationLambert#
- class OperationLambert#
Intercept the target at a chosen time.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- intercept_interval#
The time from the maneuver to the intercept, in seconds.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationLan#
- class OperationLan#
Change the longitude of the ascending node.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_lan#
The new longitude of the ascending node, in degrees.
- Attribute:
Can be read or written
- Return type:
float
- 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.
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationLongitude#
- class OperationLongitude#
Change the surface longitude of the apsis.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_surface_longitude#
The new surface longitude of the apsis after one orbit, in degrees.
- Attribute:
Can be read or written
- Return type:
float
- 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.
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationMoonReturn#
- class OperationMoonReturn#
Return from a moon to the body it orbits.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- moon_return_altitude#
The approximate periapsis altitude at the body, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
OperationPeriapsis#
- class OperationPeriapsis#
Change the periapsis.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_periapsis#
The new periapsis altitude, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationPlane#
- class OperationPlane#
Match planes with the target.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
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.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- resonance_denominator#
The denominator of the ratio of the new orbital period to the current one.
- Attribute:
Can be read or written
- Return type:
int
- Game Scenes:
Flight
- resonance_numerator#
The numerator of the ratio of the new orbital period to the current one.
- Attribute:
Can be read or written
- Return type:
int
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
OperationSemiMajor#
- class OperationSemiMajor#
Change the semi-major axis.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- new_semi_major_axis#
The new semi-major axis, in meters.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
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.
- error_message#
The warning or error from the last call to
MakeNodes, or an empty string.- Attribute:
Read-only, cannot be set
- Return type:
str
- Game Scenes:
Flight
- make_nodes()#
Make the maneuver nodes of the operation. Throws an
OperationExceptionif the operation cannot make them.- Returns:
The maneuver nodes.
- Return type:
list(
SpaceCenter.Node)- Game Scenes:
Flight
Note
The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in
ErrorMessage.
- capture#
Whether the transfer ends in the target’s orbit. Without capture, it is an impact or a flyby.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- plan_capture#
Whether to make a second node for the capture burn.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
Note
Requires
OperationTransfer.capture.
- rendezvous#
Whether to meet the target, rather than reach its orbit.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- lag_time#
The time by which the vessel arrives behind the target, in seconds.
- Attribute:
Can be read or written
- Return type:
float
- Game Scenes:
Flight
Note
Requires
OperationTransfer.rendezvous.
- coplanar#
Whether the transfer stays in the vessel’s orbital plane.
- Attribute:
Can be read or written
- Return type:
bool
- Game Scenes:
Flight
- time_selector#
The time of the maneuver.
- Attribute:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight