AscentGuidance#
- class MechJeb.AscentGuidance()#
The Ascent Guidance window, which flies the vessel to orbit.
Note
See the MechJeb wiki for how to set up this autopilot.
- AscentGuidance.getEnabled()#
- AscentGuidance.setEnabled(value)#
Whether the module is enabled.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentGuidance.getStatus()#
The autopilot status, which depends on the selected ascent type.
- Property:
Read-only, cannot be set
- Return type:
string- Game Scenes:
Flight
- AscentGuidance.getAscentType()#
- AscentGuidance.setAscentType(value)#
The ascent type.
- Property:
Can be read or written
- Return type:
- Game Scenes:
Flight
Note
Setting it disengages the autopilot of the other type.
- AscentGuidance.getSettings()#
The Ascent Settings window.
- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- AscentGuidance.getPSGSettings()#
The settings of the
MechJeb.AscentType.psgascent, from the Ascent Settings window and the PSG Stages window.- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- AscentGuidance.getClassicPath()#
The Ascent Path Editor window, with the settings of the
MechJeb.AscentType.classicascent.- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- AscentGuidance.getDesiredOrbitAltitude()#
- AscentGuidance.setDesiredOrbitAltitude(value)#
The altitude of the final circular orbit, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.classicascent.
- AscentGuidance.getDesiredInclination()#
- AscentGuidance.setDesiredInclination(value)#
The inclination of the final orbit, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentGuidance.getPeriapsisAltitude()#
- AscentGuidance.setPeriapsisAltitude(value)#
The altitude of the periapsis of the target orbit, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.psgascent.
- AscentGuidance.getApoapsisAltitude()#
- AscentGuidance.setApoapsisAltitude(value)#
The altitude of the apoapsis of the target orbit, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.psgascent. A value belowMechJeb.AscentGuidance.getPeriapsisAltitude(), such as 0, gives a circular orbit, and a negative value a hyperbolic one.
- AscentGuidance.getBurnoutAltitudeFlag()#
- AscentGuidance.setBurnoutAltitudeFlag(value)#
Whether to reach the target orbit at
MechJeb.AscentGuidance.getBurnoutAltitude().- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.psgascent. When every stage has a fixed burn time, the ascent always burns out atMechJeb.AscentGuidance.getBurnoutAltitude().
- AscentGuidance.getBurnoutAltitude()#
- AscentGuidance.setBurnoutAltitude(value)#
The altitude at which the ascent reaches the target orbit, in meters. MechJeb’s window calls it the attach altitude.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.psgascent. SeeMechJeb.AscentGuidance.getBurnoutAltitudeFlag().
- AscentGuidance.getFlightPathAngle()#
- AscentGuidance.setFlightPathAngle(value)#
The flight path angle at burnout, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.psgascent, when every stage has a fixed burn time.
- AscentGuidance.getArgumentOfPeriapsisFlag()#
- AscentGuidance.setArgumentOfPeriapsisFlag(value)#
Whether to aim for
MechJeb.AscentGuidance.getArgumentOfPeriapsis().- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.psgascent.
- AscentGuidance.getArgumentOfPeriapsis()#
- AscentGuidance.setArgumentOfPeriapsis(value)#
The argument of periapsis of the target orbit, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Applies to the
MechJeb.AscentType.psgascent. RequiresMechJeb.AscentGuidance.getArgumentOfPeriapsisFlag().
- AscentGuidance.getDesiredLan()#
- AscentGuidance.setDesiredLan(value)#
The longitude of the ascending node of a launch to a LAN, in degrees. See
MechJeb.AscentGuidance.launchToLan().- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentGuidance.getLaunchLANDifference()#
- AscentGuidance.setLaunchLANDifference(value)#
The difference from the target’s longitude of the ascending node of a launch into the target’s plane, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentGuidance.getOverrideWarpToPlane()#
- AscentGuidance.setOverrideWarpToPlane(value)#
Whether a timed launch launches at once, rather than at the time it computes.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentGuidance.getWarpCountDown()#
- AscentGuidance.setWarpCountDown(value)#
The time before a timed launch at which time warp stops, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentGuidance.getLaunchMode()#
The launch mode, which gives whether a timed launch is counting down.
- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- AscentGuidance.getTimeToLaunch()#
The time until a timed launch, in seconds.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
Note
Requires a
MechJeb.AscentGuidance.getLaunchMode()other thanMechJeb.AscentLaunchMode.normal.
- AscentGuidance.abortTimedLaunch()#
Abort a timed launch.
- Game Scenes:
Flight
- AscentGuidance.launchToTargetPlane()#
Count down to a launch into the plane of the target, and set
MechJeb.AscentGuidance.getDesiredInclination()to match. Throws an exception if there is no target orbiting the body the vessel is on.- Game Scenes:
Flight
Note
The countdown runs while the autopilot is enabled.
- AscentGuidance.launchToTargetLan()#
Count down to a launch into the plane with the target’s longitude of the ascending node, less
MechJeb.AscentGuidance.getLaunchLANDifference(), and inclinationMechJeb.AscentGuidance.getDesiredInclination(). Throws an exception if there is no target orbiting the body the vessel is on, or the ascent type is notMechJeb.AscentType.psg.- Game Scenes:
Flight
Note
The countdown runs while the autopilot is enabled.
- AscentGuidance.launchToLan()#
Count down to a launch into the plane with longitude of the ascending node
MechJeb.AscentGuidance.getDesiredLan()and inclinationMechJeb.AscentGuidance.getDesiredInclination(). Throws an exception if the ascent type is notMechJeb.AscentType.psg.- Game Scenes:
Flight
Note
The countdown runs while the autopilot is enabled.
- class MechJeb.AscentType()#
The ascent type. See
MechJeb.AscentGuidance.getAscentType().- AscentType.classic#
The classic ascent path. See
MechJeb.AscentGuidance.getClassicPath().
- AscentType.psg#
Polynomial SQP Guidance, an optimized ascent, for RSS/RO. See
MechJeb.AscentGuidance.getPSGSettings().
- class MechJeb.AscentLaunchMode()#
The launch mode of the ascent autopilot. See
MechJeb.AscentGuidance.getLaunchMode().- AscentLaunchMode.normal#
No timed launch is counting down.
- AscentLaunchMode.targetPlane#
A timed launch into the plane of the target. See
MechJeb.AscentGuidance.launchToTargetPlane().
- AscentLaunchMode.targetLan#
A timed launch to the target’s longitude of the ascending node. See
MechJeb.AscentGuidance.launchToTargetLan().
- AscentLaunchMode.lan#
A timed launch to a longitude of the ascending node. See
MechJeb.AscentGuidance.launchToLan().
AscentSettings#
- class MechJeb.AscentSettings()#
The Ascent Settings window, which holds the settings shared by the ascent types.
- AscentSettings.getForceRoll()#
- AscentSettings.setForceRoll(value)#
Whether the autopilot controls the roll.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentSettings.getVerticalRoll()#
- AscentSettings.setVerticalRoll(value)#
The roll during the vertical climb, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentSettings.getForceRoll().
- AscentSettings.getTurnRoll()#
- AscentSettings.setTurnRoll(value)#
The roll during the turn, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentSettings.getForceRoll().
- AscentSettings.getRollAltitude()#
- AscentSettings.setRollAltitude(value)#
The altitude above which the autopilot controls the roll, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentSettings.getForceRoll().
- AscentSettings.getAutoDeploySolarPanels()#
- AscentSettings.setAutoDeploySolarPanels(value)#
Whether the ascent keeps the solar panels retracted in the atmosphere, and extends them above it.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentSettings.getAutoDeployAntennas()#
- AscentSettings.setAutoDeployAntennas(value)#
Whether the ascent keeps the antennas retracted in the atmosphere, and extends them above it.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentSettings.getAutostage()#
- AscentSettings.setAutostage(value)#
Whether the autopilot stages when the current stage runs out of fuel.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentSettings.getStaging()#
The staging settings of the ascent, which apply in place of
MechJeb.Utilities.getStaging()while the autopilot is enabled.- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- AscentSettings.getThrust()#
The throttle limits of the ascent, which apply in place of
MechJeb.Utilities.getThrust()while the autopilot is enabled.- Property:
Read-only, cannot be set
- Return type:
- Game Scenes:
Flight
- AscentSettings.getAutowarp()#
- AscentSettings.setAutowarp(value)#
Whether to warp time during the launch countdown and the coasts of the ascent.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentSettings.getLimitingAngleOfAttack()#
Whether the angle of attack limit is limiting the steering.
- Property:
Read-only, cannot be set
- Return type:
boolean- Game Scenes:
Flight
- AscentSettings.getCurrentMaxAngleOfAttack()#
The largest angle of attack the limit allows now, in degrees.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
AscentStaging#
- class MechJeb.AscentStaging()#
The staging settings of the ascent, from the Ascent Settings window.
Note
The ascent starts with a copy of
MechJeb.Utilities.getStaging(), and keeps its own settings after that.- AscentStaging.getAutostagePreDelay()#
- AscentStaging.setAutostagePreDelay(value)#
The delay before each staging, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentStaging.getAutostagePostDelay()#
- AscentStaging.setAutostagePostDelay(value)#
The delay after each staging, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentStaging.getAutostageLimit()#
- AscentStaging.setAutostageLimit(value)#
The last stage the ascent activates.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentStaging.getFairingMaxDynamicPressureEnabled()#
- AscentStaging.setFairingMaxDynamicPressureEnabled(value)#
Whether to wait for
MechJeb.AscentStaging.getFairingMaxDynamicPressure()to jettison a fairing.- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentStaging.getFairingMaxDynamicPressure()#
- AscentStaging.setFairingMaxDynamicPressure(value)#
The largest dynamic pressure at which the ascent jettisons a fairing, in pascals.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentStaging.getFairingMaxDynamicPressureEnabled().
- AscentStaging.getFairingMinAltitudeEnabled()#
- AscentStaging.setFairingMinAltitudeEnabled(value)#
Whether to wait for
MechJeb.AscentStaging.getFairingMinAltitude()to jettison a fairing.- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentStaging.getFairingMinAltitude()#
- AscentStaging.setFairingMinAltitude(value)#
The lowest altitude at which the ascent jettisons a fairing, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentStaging.getFairingMinAltitudeEnabled().
- AscentStaging.getFairingMaxAerothermalFluxEnabled()#
- AscentStaging.setFairingMaxAerothermalFluxEnabled(value)#
Whether to wait for
MechJeb.AscentStaging.getFairingMaxAerothermalFlux()to jettison a fairing.- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentStaging.getFairingMaxAerothermalFlux()#
- AscentStaging.setFairingMaxAerothermalFlux(value)#
The largest aerothermal flux at which the ascent jettisons a fairing, in \(\mathrm{W/m^{2}}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentStaging.getFairingMaxAerothermalFluxEnabled().
- AscentStaging.getClampAutoStageThrustPct()#
- AscentStaging.setClampAutoStageThrustPct(value)#
The fraction of full thrust at which the ascent releases the launch clamps.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- AscentStaging.getHotStaging()#
- AscentStaging.setHotStaging(value)#
Whether the ascent ignites the next stage before the current one burns out.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentStaging.getHotStagingLeadTime()#
- AscentStaging.setHotStagingLeadTime(value)#
The time before burnout at which a hot staging happens, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentStaging.getHotStaging().
- AscentStaging.getDropSolids()#
- AscentStaging.setDropSolids(value)#
Whether the ascent drops the solid boosters of the next stage early, once their thrust no longer pays for their mass.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentStaging.getDropSolidsTwrPct()#
- AscentStaging.setDropSolidsTwrPct(value)#
The fraction of the vessel’s thrust-to-weight ratio at which the solid boosters drop, between 0 and 1.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentStaging.getDropSolids().
AscentThrustLimits#
- class MechJeb.AscentThrustLimits()#
The throttle limits of the ascent, from the Ascent Settings window.
Note
The ascent starts with a copy of
MechJeb.Utilities.getThrust(), and keeps its own limits after that. TheMechJeb.AscentType.psgascent ignoresMechJeb.AscentThrustLimits.getLimitThrottle()andMechJeb.AscentThrustLimits.getElectricThrottle().- AscentThrustLimits.getLimitToPreventOverheats()#
- AscentThrustLimits.setLimitToPreventOverheats(value)#
Whether to limit the throttle to keep parts from overheating.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentThrustLimits.getLimitDynamicPressure()#
- AscentThrustLimits.setLimitDynamicPressure(value)#
Whether to limit the dynamic pressure.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentThrustLimits.getMaxDynamicPressure()#
- AscentThrustLimits.setMaxDynamicPressure(value)#
The largest dynamic pressure, in pascals.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentThrustLimits.getLimitDynamicPressure().
- AscentThrustLimits.getLimitAcceleration()#
- AscentThrustLimits.setLimitAcceleration(value)#
Whether to limit the acceleration.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentThrustLimits.getMaxAcceleration()#
- AscentThrustLimits.setMaxAcceleration(value)#
The largest acceleration, in \(\mathrm{m/s^{2}}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
- AscentThrustLimits.getLimitThrottle()#
- AscentThrustLimits.setLimitThrottle(value)#
Whether to limit the throttle.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentThrustLimits.getMaxThrottle()#
- AscentThrustLimits.setMaxThrottle(value)#
The largest throttle, between 0 and 1.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
- AscentThrustLimits.getLimiterMinThrottle()#
- AscentThrustLimits.setLimiterMinThrottle(value)#
Whether to keep the throttle above
MechJeb.AscentThrustLimits.getMinThrottle().- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentThrustLimits.getMinThrottle()#
- AscentThrustLimits.setMinThrottle(value)#
The smallest throttle, between 0 and 1.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.AscentThrustLimits.getLimiterMinThrottle().
- AscentThrustLimits.getElectricThrottle()#
- AscentThrustLimits.setElectricThrottle(value)#
Whether to limit the throttle of electric engines to the available power.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- AscentThrustLimits.getElectricThrottleLo()#
- AscentThrustLimits.setElectricThrottleLo(value)#
The charge level at which electric engines stop, between 0 and 1.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
- AscentThrustLimits.getElectricThrottleHi()#
- AscentThrustLimits.setElectricThrottleHi(value)#
The charge level at which electric engines run at full throttle, between 0 and 1.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
- AscentThrustLimits.getLimitToPreventUnstableIgnition()#
- AscentThrustLimits.setLimitToPreventUnstableIgnition(value)#
Whether to hold the throttle at zero while the engines’ fuel is unstable.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
Note
MechJeb shows this setting only with Real Fuels, as stock engines have stable fuel.
- AscentThrustLimits.getAutoRCSUllaging()#
- AscentThrustLimits.setAutoRCSUllaging(value)#
Whether to fire the RCS forward to settle the fuel before the engines ignite.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
Note
MechJeb shows this setting only with Real Fuels, as stock engines have stable fuel.
PSGSettings#
- class MechJeb.PSGSettings()#
The settings of the Polynomial SQP Guidance ascent, from the Ascent Settings window and the PSG Stages window, and the state of its guidance.
Note
PSG plans which stages burn and coast from the vessel. The target orbit is set in
MechJeb.AscentGuidance.- PSGSettings.getPitchStartHeight()#
- PSGSettings.setPitchStartHeight(value)#
The height above the launch site at which the pitch program starts, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- PSGSettings.getPitchRate()#
- PSGSettings.setPitchRate(value)#
The pitch rate of the pitch program, in \(\mathrm{deg/s}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- PSGSettings.getDragCoefficient()#
- PSGSettings.setDragCoefficient(value)#
The drag coefficient guidance plans with.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Ignored with
MechJeb.PSGSettings.getAutoAero().
- PSGSettings.getReferenceArea()#
- PSGSettings.setReferenceArea(value)#
The reference area guidance plans with, in \(\mathrm{m^{2}}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Ignored with
MechJeb.PSGSettings.getAutoAero().
- PSGSettings.getAutoAero()#
- PSGSettings.setAutoAero(value)#
Whether guidance works out
MechJeb.PSGSettings.getDragCoefficient()andMechJeb.PSGSettings.getReferenceArea()from the vessel before each solve.- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- PSGSettings.getLimitQAlpha()#
- PSGSettings.setLimitQAlpha(value)#
The limit on dynamic pressure times angle of attack, in \(\mathrm{Pa \cdot rad}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
0 turns the limit off. MechJeb clamps it to at most 10000.
- PSGSettings.getMinDeltaV()#
- PSGSettings.setMinDeltaV(value)#
The smallest delta-v of a stage that guidance plans with, in \(\mathrm{m/s}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- PSGSettings.getMaxCoast()#
- PSGSettings.setMaxCoast(value)#
The longest coast guidance plans, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- PSGSettings.getMinCoast()#
- PSGSettings.setMinCoast(value)#
The shortest coast guidance plans, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- PSGSettings.getUllageLeadTime()#
- PSGSettings.setUllageLeadTime(value)#
The time before an ignition at which RCS settles the propellant, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- PSGSettings.getSpinupLeadTime()#
- PSGSettings.setSpinupLeadTime(value)#
The time before staging at which the spin-up starts, in seconds.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- PSGSettings.getSpinupAngularVelocity()#
- PSGSettings.setSpinupAngularVelocity(value)#
The angular velocity of the spin-up, in \(\mathrm{rad/s}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
MechJeb’s window shows it in revolutions per minute.
- PSGSettings.getHasSolution()#
Whether guidance has a solution.
- Property:
Read-only, cannot be set
- Return type:
boolean- Game Scenes:
Flight
- PSGSettings.getGuidanceStatus()#
The status of guidance.
- Property:
Read-only, cannot be set
- Return type:
string- Game Scenes:
Flight
- PSGSettings.getTimeToGo()#
The time to the end of the current burn of the solution, in seconds.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.PSGSettings.getHasSolution().
- PSGSettings.getVelocityToGo()#
The delta-v left in the solution, in \(\mathrm{m/s}\).
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.PSGSettings.getHasSolution().
- PSGSettings.getPitch()#
The pitch guidance commands, in degrees.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.PSGSettings.getHasSolution().
- PSGSettings.getHeading()#
The heading guidance commands, in degrees.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.PSGSettings.getHasSolution().
ClassicPath#
- class MechJeb.ClassicPath()#
The settings of the classic ascent path, from the Ascent Path Editor window and the Ascent Settings window.
- ClassicPath.getTurnStartAltitude()#
- ClassicPath.setTurnStartAltitude(value)#
The altitude at which the turn starts, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getTurnStartVelocity()#
- ClassicPath.setTurnStartVelocity(value)#
The speed at which the turn starts, in \(\mathrm{m/s}\).
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getTurnEndAltitude()#
- ClassicPath.setTurnEndAltitude(value)#
The altitude at which the turn ends, in meters.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getTurnEndAngle()#
- ClassicPath.setTurnEndAngle(value)#
The final flight path angle, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getTurnShapeExponent()#
- ClassicPath.setTurnShapeExponent(value)#
The steepness of the turn, between 0 and 1.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getAutoPath()#
- ClassicPath.setAutoPath(value)#
Whether the autopilot chooses the turn altitudes and speed.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- ClassicPath.getAutoTurnPercent()#
- ClassicPath.setAutoTurnPercent(value)#
The altitude at which an automatic turn starts, as a fraction of the height of the atmosphere.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.ClassicPath.getAutoPath().
- ClassicPath.getAutoTurnSpeedFactor()#
- ClassicPath.setAutoTurnSpeedFactor(value)#
The factor that sets the speed at which an automatic turn starts.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
Requires
MechJeb.ClassicPath.getAutoPath().
- ClassicPath.getAutoTurnStartAltitude()#
The altitude at which an automatic turn starts, in meters.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getAutoTurnStartVelocity()#
The speed at which an automatic turn starts, in \(\mathrm{m/s}\).
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getAutoTurnEndAltitude()#
The altitude at which an automatic turn ends, in meters.
- Property:
Read-only, cannot be set
- Return type:
number- Game Scenes:
Flight
- ClassicPath.getCorrectiveSteering()#
- ClassicPath.setCorrectiveSteering(value)#
Whether the autopilot steers by the velocity vector rather than the position vector.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
Note
It is more accurate, though large craft may do better without it.
- ClassicPath.getCorrectiveSteeringGain()#
- ClassicPath.setCorrectiveSteeringGain(value)#
The gain of the corrective steering.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note
- ClassicPath.getLimitAngleOfAttack()#
- ClassicPath.setLimitAngleOfAttack(value)#
Whether to limit the angle of attack.
- Property:
Can be read or written
- Return type:
boolean- Game Scenes:
Flight
- ClassicPath.getMaxAngleOfAttack()#
- ClassicPath.setMaxAngleOfAttack(value)#
The largest angle of attack, in degrees.
- Property:
Can be read or written
- Return type:
number- Game Scenes:
Flight
Note