ManeuverPlanner#

class MechJeb.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: MechJeb.OperationAdvancedTransfer#

The operation that transfers to another planet, at the departure that needs the least delta-v.

Attribute:

Read-only, cannot be set

operation_apoapsis: MechJeb.OperationApoapsis#

The operation that changes the apoapsis.

Attribute:

Read-only, cannot be set

operation_circularize: MechJeb.OperationCircularize#

The operation that circularizes the orbit.

Attribute:

Read-only, cannot be set

operation_course_correction: MechJeb.OperationCourseCorrection#

The operation that fine tunes the closest approach to the target.

Attribute:

Read-only, cannot be set

operation_eccentricity: MechJeb.OperationEccentricity#

The operation that changes the eccentricity.

Attribute:

Read-only, cannot be set

operation_ellipticize: MechJeb.OperationEllipticize#

The operation that changes both the periapsis and the apoapsis.

Attribute:

Read-only, cannot be set

operation_inclination: MechJeb.OperationInclination#

The operation that changes the inclination.

Attribute:

Read-only, cannot be set

operation_interplanetary_transfer: MechJeb.OperationInterplanetaryTransfer#

The operation that transfers to another planet.

Attribute:

Read-only, cannot be set

operation_kill_rel_vel: MechJeb.OperationKillRelVel#

The operation that matches velocities with the target.

Attribute:

Read-only, cannot be set

operation_lambert: MechJeb.OperationLambert#

The operation that intercepts the target at a chosen time.

Attribute:

Read-only, cannot be set

operation_lan: MechJeb.OperationLan#

The operation that changes the longitude of the ascending node.

Attribute:

Read-only, cannot be set

operation_longitude: MechJeb.OperationLongitude#

The operation that changes the surface longitude of the apsis.

Attribute:

Read-only, cannot be set

operation_moon_return: MechJeb.OperationMoonReturn#

The operation that returns from a moon.

Attribute:

Read-only, cannot be set

operation_periapsis: MechJeb.OperationPeriapsis#

The operation that changes the periapsis.

Attribute:

Read-only, cannot be set

operation_plane: MechJeb.OperationPlane#

The operation that matches planes with the target.

Attribute:

Read-only, cannot be set

operation_resonant_orbit: MechJeb.OperationResonantOrbit#

The operation that changes to a resonant orbit.

Attribute:

Read-only, cannot be set

operation_semi_major: MechJeb.OperationSemiMajor#

The operation that changes the semi-major axis.

Attribute:

Read-only, cannot be set

operation_transfer: MechJeb.OperationTransfer#

The operation that transfers to the target.

Attribute:

Read-only, cannot be set

abort_node_execution()#

Stop executing the maneuver nodes.

execute_all_nodes()#

Execute all the maneuver nodes. Throws an exception if the vessel has no maneuver node.

execute_next_node()#

Execute the next maneuver node. Throws an exception if the vessel has no maneuver node.

autowarp: boolean#

Whether to warp time to the burn.

Attribute:

Can be read or written

executing_node: boolean#

Whether a maneuver node is being executed.

Attribute:

Read-only, cannot be set

lead_time: number#

The time before the burn at which time warp stops, in seconds.

Attribute:

Can be read or written

rcs_only: boolean#

Whether to burn with the RCS thrusters in place of the engines.

Attribute:

Can be read or written

kill_roll_rotation: boolean#

Whether to stop the vessel’s roll before the burn.

Attribute:

Can be read or written

class MechJeb.OperationException#

Thrown when an operation cannot make its nodes, such as when it needs a target and there is none.

Raised as a krpc.ServerError whose service and name are 'MechJeb' and 'OperationException'.

TimeSelector#

class MechJeb.TimeSelector#

The time of a maneuver.

circularize_altitude: number#

The altitude, in meters.

Attribute:

Can be read or written

lead_time: number#

The time from now, in seconds.

Attribute:

Can be read or written

time_reference: MechJeb.TimeReference#

The time reference. Throws an exception if set to a reference the operation does not allow.

Attribute:

Can be read or written

class MechJeb.TimeReference#

The time reference of a maneuver. See MechJeb.TimeSelector.time_reference.

computed#

At the optimum time.

x_from_now#

After MechJeb.TimeSelector.lead_time.

apoapsis#

At the next apoapsis.

periapsis#

At the next periapsis.

altitude#

At MechJeb.TimeSelector.circularize_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 MechJeb.OperationAdvancedTransfer#

An interplanetary transfer to the target body, at the departure that needs the least delta-v before MechJeb.OperationAdvancedTransfer.max_arrival_time.

Note

MechJeb searches for the departure in the background. The first call to MakeNodes starts the search, and throws an MechJeb.OperationException until it finishes. See MechJeb.OperationAdvancedTransfer.searching.

max_arrival_time: number#

The latest arrival time, as a time from now, in seconds.

Attribute:

Can be read or written

include_capture_burn: boolean#

Whether to plan a capture burn at the destination.

Attribute:

Can be read or written

periapsis_height: number#

The altitude of the periapsis at the destination, in meters.

Attribute:

Can be read or written

searching: boolean#

Whether MechJeb is searching for the departure.

Attribute:

Read-only, cannot be set

search_progress: number#

The progress of the search for the departure, as a percentage.

Attribute:

Read-only, cannot be set

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

OperationApoapsis#

class MechJeb.OperationApoapsis#

Change the apoapsis.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

new_apoapsis: number#

The new apoapsis altitude, in meters.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationCircularize#

class MechJeb.OperationCircularize#

Circularize the orbit.

Note

To raise the periapsis to the apoapsis, set the time to MechJeb.TimeReference.apoapsis, and to lower the apoapsis to the periapsis, set it to MechJeb.TimeReference.periapsis. These are the cheapest.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationCourseCorrection#

class MechJeb.OperationCourseCorrection#

Fine tune the closest approach to the target.

final_periapsis_altitude: number#

The periapsis altitude at a target body, in meters.

Attribute:

Can be read or written

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

intercept_distance: number#

The closest approach distance to a target vessel, in meters.

Attribute:

Can be read or written

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

OperationEccentricity#

class MechJeb.OperationEccentricity#

Change the eccentricity.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

new_eccentricity: number#

The new eccentricity.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationEllipticize#

class MechJeb.OperationEllipticize#

Change both the periapsis and the apoapsis.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

new_apoapsis: number#

The new apoapsis altitude, in meters.

Attribute:

Can be read or written

new_periapsis: number#

The new periapsis altitude, in meters.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationInclination#

class MechJeb.OperationInclination#

Change the inclination.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

new_inclination: number#

The new inclination, in degrees.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationInterplanetaryTransfer#

class MechJeb.OperationInterplanetaryTransfer#

Transfer to another planet.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

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: boolean#

Whether to wait for the optimal phase angle. Otherwise the transfer happens now.

Attribute:

Can be read or written

OperationKillRelVel#

class MechJeb.OperationKillRelVel#

Match velocities with the target.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationLambert#

class MechJeb.OperationLambert#

Intercept the target at a chosen time.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

intercept_interval: number#

The time from the maneuver to the intercept, in seconds.

Attribute:

Can be read or written

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationLan#

class MechJeb.OperationLan#

Change the longitude of the ascending node.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

new_lan: number#

The new longitude of the ascending node, in degrees.

Attribute:

Can be read or written

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: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationLongitude#

class MechJeb.OperationLongitude#

Change the surface longitude of the apsis.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

new_surface_longitude: number#

The new surface longitude of the apsis after one orbit, in degrees.

Attribute:

Can be read or written

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: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationMoonReturn#

class MechJeb.OperationMoonReturn#

Return from a moon to the body it orbits.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

moon_return_altitude: number#

The approximate periapsis altitude at the body, in meters.

Attribute:

Can be read or written

OperationPeriapsis#

class MechJeb.OperationPeriapsis#

Change the periapsis.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

new_periapsis: number#

The new periapsis altitude, in meters.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationPlane#

class MechJeb.OperationPlane#

Match planes with the target.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationResonantOrbit#

class MechJeb.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: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

resonance_denominator: number#

The denominator of the ratio of the new orbital period to the current one.

Attribute:

Can be read or written

resonance_numerator: number#

The numerator of the ratio of the new orbital period to the current one.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationSemiMajor#

class MechJeb.OperationSemiMajor#

Change the semi-major axis.

error_message: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

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: number#

The new semi-major axis, in meters.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set

OperationTransfer#

class MechJeb.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: string#

The warning or error from the last call to MakeNodes, or an empty string.

Attribute:

Read-only, cannot be set

make_nodes(): List#

Make the maneuver nodes of the operation. Throws an MechJeb.OperationException if the operation cannot make them.

Returns:

The maneuver nodes.

Note

The nodes follow the vessel’s last maneuver node, if it has one. A warning may be left in ErrorMessage.

capture: boolean#

Whether the transfer ends in the target’s orbit. Without capture, it is an impact or a flyby.

Attribute:

Can be read or written

plan_capture: boolean#

Whether to make a second node for the capture burn.

Attribute:

Can be read or written

rendezvous: boolean#

Whether to meet the target, rather than reach its orbit.

Attribute:

Can be read or written

lag_time: number#

The time by which the vessel arrives behind the target, in seconds.

Attribute:

Can be read or written

coplanar: boolean#

Whether the transfer stays in the vessel’s orbital plane.

Attribute:

Can be read or written

time_selector: MechJeb.TimeSelector#

The time of the maneuver.

Attribute:

Read-only, cannot be set