.. default-domain:: js .. highlight:: js .. module:: MechJeb :no-index: 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. .. method:: getOperationAdvancedTransfer() The operation that transfers to another planet, at the departure that needs the least delta-v. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationAdvancedTransfer` :Game Scenes: Flight .. method:: getOperationApoapsis() The operation that changes the apoapsis. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationApoapsis` :Game Scenes: Flight .. method:: getOperationCircularize() The operation that circularizes the orbit. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationCircularize` :Game Scenes: Flight .. method:: getOperationCourseCorrection() The operation that fine tunes the closest approach to the target. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationCourseCorrection` :Game Scenes: Flight .. method:: getOperationEccentricity() The operation that changes the eccentricity. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationEccentricity` :Game Scenes: Flight .. method:: getOperationEllipticize() The operation that changes both the periapsis and the apoapsis. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationEllipticize` :Game Scenes: Flight .. method:: getOperationInclination() The operation that changes the inclination. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationInclination` :Game Scenes: Flight .. method:: getOperationKillRelVel() The operation that matches velocities with the target. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationKillRelVel` :Game Scenes: Flight .. method:: getOperationLambert() The operation that intercepts the target at a chosen time. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationLambert` :Game Scenes: Flight .. method:: getOperationLan() The operation that changes the longitude of the ascending node. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationLan` :Game Scenes: Flight .. method:: getOperationLongitude() The operation that changes the surface longitude of the apsis. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationLongitude` :Game Scenes: Flight .. method:: getOperationMoonReturn() The operation that returns from a moon. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationMoonReturn` :Game Scenes: Flight .. method:: getOperationPeriapsis() The operation that changes the periapsis. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationPeriapsis` :Game Scenes: Flight .. method:: getOperationPlane() The operation that matches planes with the target. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationPlane` :Game Scenes: Flight .. method:: getOperationResonantOrbit() The operation that changes to a resonant orbit. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationResonantOrbit` :Game Scenes: Flight .. method:: getOperationSemiMajor() The operation that changes the semi-major axis. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationSemiMajor` :Game Scenes: Flight .. method:: getOperationTransfer() The operation that transfers to the target. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationTransfer` :Game Scenes: Flight .. method:: abortNodeExecution() Stop executing the maneuver nodes. :Game Scenes: Flight .. method:: executeAllNodes() Execute all the maneuver nodes. Throws an exception if the vessel has no maneuver node. :Game Scenes: Flight .. method:: executeNextNode() Execute the next maneuver node. Throws an exception if the vessel has no maneuver node. :Game Scenes: Flight .. method:: getAutowarp() setAutowarp(value) Whether to warp time to the burn. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. note:: The same setting as :meth:`MechJeb.RendezvousAutopilot.getAutowarp`. .. method:: getExecutingNode() Whether a maneuver node is being executed. :Property: Read-only, cannot be set :rtype: ``boolean`` :Game Scenes: Flight .. method:: getLeadTime() setLeadTime(value) The time before the burn at which time warp stops, in seconds. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getRCSOnly() setRCSOnly(value) Whether to burn with the RCS thrusters in place of the engines. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. method:: getKillRollRotation() setKillRollRotation(value) Whether to stop the vessel's roll before the burn. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. method:: getOperationStationaryOrbit() The operation that transfers to the stationary orbit of the body. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.OperationStationaryOrbit` :Game Scenes: Flight .. method:: getInitialWarpLeadTime() setInitialWarpLeadTime(value) The time before the burn at which the first, coarse time warp stops, in seconds. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: A burn further away than this is warped to in two steps: to this time before it, then to :meth:`MechJeb.ManeuverPlanner.getLeadTime` once the vessel is aligned. .. method:: getAlignedTolerance() setAlignedTolerance(value) The angle from the burn direction within which the burn starts, in degrees. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getWarpAlignedTolerance() setWarpAlignedTolerance(value) The angle from the burn direction within which time warp to the burn starts, in degrees. :Property: Can be read or written :rtype: ``number`` :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 :class:`~@krpc-org/krpc.ServerError`. TimeSelector ------------ .. class:: TimeSelector The time of a maneuver. .. method:: getCircularizeAltitude() setCircularizeAltitude(value) The altitude, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: Applies to :attr:`MechJeb.TimeReference.altitude`. .. method:: getLeadTime() setLeadTime(value) The time from now, in seconds. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: Applies to :attr:`MechJeb.TimeReference.xFromNow`. .. method:: getTimeReference() setTimeReference(value) The time reference. Throws an exception if set to a reference the operation does not allow. :Property: Can be read or written :rtype: :class:`MechJeb.TimeReference` :Game Scenes: Flight .. class:: TimeReference The time reference of a maneuver. See :meth:`MechJeb.TimeSelector.getTimeReference`. .. attribute:: computed At the optimum time. .. attribute:: xFromNow After :meth:`MechJeb.TimeSelector.getLeadTime`. .. attribute:: apoapsis At the next apoapsis. .. attribute:: periapsis At the next periapsis. .. attribute:: altitude At :meth:`MechJeb.TimeSelector.getCircularizeAltitude`. .. attribute:: eqAscending At the equatorial ascending node. .. attribute:: eqDescending At the equatorial descending node. .. attribute:: relAscending At the next ascending node with the target. .. attribute:: relDescending At the next descending node with the target. .. attribute:: closestApproach At the closest approach to the target. .. attribute:: eqHighestAd At the cheaper of the equatorial ascending and descending nodes. .. attribute:: eqNearestAd At the nearer of the equatorial ascending and descending nodes. .. attribute:: relHighestAd At the cheaper of the ascending and descending nodes with the target. .. attribute:: relNearestAd At the nearer of the ascending and descending nodes with the target. Operations ---------- OperationAdvancedTransfer ^^^^^^^^^^^^^^^^^^^^^^^^^ .. class:: OperationAdvancedTransfer An interplanetary transfer to the target body. The departure and transfer time come from a search, chosen as :meth:`MechJeb.OperationAdvancedTransfer.getMode` sets. .. note:: MechJeb searches in the background. The first call to ``MakeNodes`` starts the search, and throws an :class:`MechJeb.OperationException` until it finishes. See :meth:`MechJeb.OperationAdvancedTransfer.getSearching`. .. method:: getMaxArrivalTime() setMaxArrivalTime(value) The latest arrival time, as a time from now, in seconds. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: Applies in the :attr:`MechJeb.AdvancedTransferMode.limitedTime` mode. ``MakeNodes`` computes a default for a new target, from the synodic period and the transfer time, unless it was set while the target was selected. .. method:: getIncludeCaptureBurn() setIncludeCaptureBurn(value) Whether to plan a capture burn at the destination. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. method:: getPeriapsisHeight() setPeriapsisHeight(value) The altitude of the periapsis at the destination, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getSearching() Whether MechJeb is searching for the departure. :Property: Read-only, cannot be set :rtype: ``boolean`` :Game Scenes: Flight .. method:: getSearchProgress() The progress of the search for the departure, as a percentage. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getMode() setMode(value) How the search chooses the departure and transfer time. :Property: Can be read or written :rtype: :class:`MechJeb.AdvancedTransferMode` :Game Scenes: Flight .. note:: Setting it stops a search, so the next ``MakeNodes`` starts one. .. method:: getTargetInclinationFlag() setTargetInclinationFlag(value) Whether to aim for :meth:`MechJeb.OperationAdvancedTransfer.getTargetInclination` at the target. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. method:: getTargetInclination() setTargetInclination(value) The inclination of the orbit at the target, in degrees. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: Requires :meth:`MechJeb.OperationAdvancedTransfer.getTargetInclinationFlag`. .. method:: getSearchFailed() Whether the search finished and found no transfer. :Property: Read-only, cannot be set :rtype: ``boolean`` :Game Scenes: Flight .. method:: selectLowestDeltaV() Select the departure and transfer time that need the least delta-v. The search selects them when it finishes. Throws an exception if :meth:`MechJeb.OperationAdvancedTransfer.getMode` is not :attr:`MechJeb.AdvancedTransferMode.porkchop`, or the search has not finished. :Game Scenes: Flight .. method:: selectAsap() Select the earliest departure, with the transfer time that needs the least delta-v for it. Throws an exception if :meth:`MechJeb.OperationAdvancedTransfer.getMode` is not :attr:`MechJeb.AdvancedTransferMode.porkchop`, or the search has not finished. :Game Scenes: Flight .. method:: select(departureTime, duration) Select the departure and transfer time nearest the given ones. Throws an exception if :meth:`MechJeb.OperationAdvancedTransfer.getMode` is not :attr:`MechJeb.AdvancedTransferMode.porkchop`, the search has not finished, or there is no transfer near those times. :param departureTime: The universal time of the departure, in seconds. :type departureTime: ``number`` :param duration: The transfer time, in seconds. :type duration: ``number`` :Game Scenes: Flight .. method:: getSelectedDepartureTime() The universal time of the selected departure, in seconds. Throws an exception if the search has not finished. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getSelectedDuration() The selected transfer time, in seconds. Throws an exception if the search has not finished. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. method:: getSelectedDeltaV() The delta-v of the selected transfer that the search estimates, in :math:`\mathrm{m/s}`. Throws an exception if the search has not finished. :Property: Read-only, cannot be set :rtype: ``number`` :Game Scenes: Flight .. class:: AdvancedTransferMode How the advanced transfer chooses the departure and transfer time. See :meth:`MechJeb.OperationAdvancedTransfer.getMode`. .. attribute:: limitedTime The transfer that needs the least delta-v and arrives before :meth:`MechJeb.OperationAdvancedTransfer.getMaxArrivalTime`. .. attribute:: porkchop A transfer from a grid of departures and transfer times, the porkchop plot of MechJeb's window. The one that needs the least delta-v, unless another is selected. OperationApoapsis ^^^^^^^^^^^^^^^^^ .. class:: OperationApoapsis Change the apoapsis. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewApoapsis() setNewApoapsis(value) The new apoapsis altitude, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationCircularize ^^^^^^^^^^^^^^^^^^^^ .. class:: OperationCircularize Circularize the orbit. .. note:: To raise the periapsis to the apoapsis, set the time to :attr:`MechJeb.TimeReference.apoapsis`, and to lower the apoapsis to the periapsis, set it to :attr:`MechJeb.TimeReference.periapsis`. These are the cheapest. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationCourseCorrection ^^^^^^^^^^^^^^^^^^^^^^^^^ .. class:: OperationCourseCorrection Fine tune the closest approach to the target. .. method:: getFinalPeriapsisAltitude() setFinalPeriapsisAltitude(value) The periapsis altitude at a target body, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: getInterceptDistance() setInterceptDistance(value) The closest approach distance to a target vessel, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getInclinationFlag() setInclinationFlag(value) Whether to aim for :meth:`MechJeb.OperationCourseCorrection.getInclination` at the target. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. note:: Applies when the target is a celestial body. .. method:: getInclination() setInclination(value) The inclination of the orbit at the target, in degrees. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: Requires :meth:`MechJeb.OperationCourseCorrection.getInclinationFlag`. OperationEccentricity ^^^^^^^^^^^^^^^^^^^^^ .. class:: OperationEccentricity Change the eccentricity. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewEccentricity() setNewEccentricity(value) The new eccentricity. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationEllipticize ^^^^^^^^^^^^^^^^^^^^ .. class:: OperationEllipticize Change both the periapsis and the apoapsis. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewApoapsis() setNewApoapsis(value) The new apoapsis altitude, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getNewPeriapsis() setNewPeriapsis(value) The new periapsis altitude, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationInclination ^^^^^^^^^^^^^^^^^^^^ .. class:: OperationInclination Change the inclination. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewInclination() setNewInclination(value) The new inclination, in degrees. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationKillRelVel ^^^^^^^^^^^^^^^^^^^ .. class:: OperationKillRelVel Match velocities with the target. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationLambert ^^^^^^^^^^^^^^^^ .. class:: OperationLambert Intercept the target at a chosen time. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: getInterceptInterval() setInterceptInterval(value) The time from the maneuver to the intercept, in seconds. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationLan ^^^^^^^^^^^^ .. class:: OperationLan Change the longitude of the ascending node. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewLAN() setNewLAN(value) The new longitude of the ascending node, in degrees. :Property: Can be read or written :rtype: ``number`` :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. .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationLongitude ^^^^^^^^^^^^^^^^^^ .. class:: OperationLongitude Change the surface longitude of the apsis. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewSurfaceLongitude() setNewSurfaceLongitude(value) The new surface longitude of the apsis after one orbit, in degrees. :Property: Can be read or written :rtype: ``number`` :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. .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationMoonReturn ^^^^^^^^^^^^^^^^^^^ .. class:: OperationMoonReturn Return from a moon to the body it orbits. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getMoonReturnAltitude() setMoonReturnAltitude(value) The approximate periapsis altitude at the body, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getInclinationFlag() setInclinationFlag(value) Whether to aim for :meth:`MechJeb.OperationMoonReturn.getInclination`. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. method:: getInclination() setInclination(value) The inclination of the orbit around the body after the return, in degrees. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: Requires :meth:`MechJeb.OperationMoonReturn.getInclinationFlag`. OperationPeriapsis ^^^^^^^^^^^^^^^^^^ .. class:: OperationPeriapsis Change the periapsis. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewPeriapsis() setNewPeriapsis(value) The new periapsis altitude, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationPlane ^^^^^^^^^^^^^^ .. class:: OperationPlane Match planes with the target. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :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. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getResonanceDenominator() setResonanceDenominator(value) The denominator of the ratio of the new orbital period to the current one. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getResonanceNumerator() setResonanceNumerator(value) The numerator of the ratio of the new orbital period to the current one. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationSemiMajor ^^^^^^^^^^^^^^^^^^ .. class:: OperationSemiMajor Change the semi-major axis. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getNewSemiMajorAxis() setNewSemiMajorAxis(value) The new semi-major axis, in meters. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight OperationStationaryOrbit ^^^^^^^^^^^^^^^^^^^^^^^^ .. class:: OperationStationaryOrbit A transfer to the stationary orbit of the body, above :meth:`MechJeb.OperationStationaryOrbit.getTargetLongitude`. .. note:: The transfer is a Hohmann transfer with a second node to circularize. Throws an :class:`MechJeb.OperationException` from ``MakeNodes`` if the stationary orbit is outside the body's sphere of influence. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getTargetLongitude() setTargetLongitude(value) The surface longitude to stay above, in degrees. :Property: Can be read or written :rtype: ``number`` :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. .. method:: getErrorMessage() The warning or error from the last call to ``MakeNodes``, or an empty string. :Property: Read-only, cannot be set :rtype: ``string`` :Game Scenes: Flight .. method:: makeNodes() Make the maneuver nodes of the operation. Throws an :class:`MechJeb.OperationException` if the operation cannot make them. :returns: The maneuver nodes. :rtype: ``Array`` of :class:`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``. .. method:: getCapture() setCapture(value) Whether the transfer ends in the target's orbit. Without capture, it is an impact or a flyby. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. method:: getPlanCapture() setPlanCapture(value) Whether to make a second node for the capture burn. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. note:: Requires :meth:`MechJeb.OperationTransfer.getCapture`. For a celestial body target, also requires :meth:`MechJeb.OperationTransfer.getMatchOrbit` or a :meth:`MechJeb.OperationTransfer.getLagTime`. .. method:: getMatchOrbit() setMatchOrbit(value) Whether to reach the target's orbit, ahead of or behind the target, rather than meet the target. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. note:: Requires :meth:`MechJeb.OperationTransfer.getCapture`. .. method:: getLagTime() setLagTime(value) The time by which the vessel arrives behind the target, in seconds. :Property: Can be read or written :rtype: ``number`` :Game Scenes: Flight .. note:: Ignored with :meth:`MechJeb.OperationTransfer.getMatchOrbit`. .. method:: getCoplanar() setCoplanar(value) Whether the transfer stays in the vessel's orbital plane. :Property: Can be read or written :rtype: ``boolean`` :Game Scenes: Flight .. method:: getTimeSelector() The time of the maneuver. :Property: Read-only, cannot be set :rtype: :class:`MechJeb.TimeSelector` :Game Scenes: Flight