Skip to content

MASIMechJeb

MOARdV edited this page Aug 25, 2016 · 21 revisions

#MASIMechJeb.cs

This documentation is automatically generated from source code.

##General Category

###mechjeb.AutopilotActive()

Returns 1 if any of the MechJeb autopilots MAS can control are active.

###mechjeb.Available()

Returns 1 if MechJeb is installed and available on this craft, 0 if it is not available.

###mechjeb.ComputerActive()

Returns 1 if any managed autopilots are engaged, or if SmartASS is not OFF.

###mechjeb.Reset()

Resets / disables all auto pilots as well as SmartASS.

##Ascent Autopilot and Guidance Category

###mechjeb.AscentAutopilotActive()

Returns 1 if the MJ Ascent Autopilot is enabled; 0 otherwise.

###mechjeb.GetDesiredLaunchAltitude()

Returns the MJ Ascent Autopilot's targeted launch altitude in meters.

###mechjeb.GetDesiredLaunchInclination()

Returns the MJ Ascent Autopilot's targeted orbital inclination in degrees.

###mechjeb.SetDesiredLaunchAltitude(double altitude)

Set the ascent guidance desired altitude. Altitude is in meters.

###mechjeb.SetDesiredLaunchInclination(double inclination)

Set the desired launch inclination in the ascent guidance.

###mechjeb.ToggleAscentAutopilot()

Toggles the Ascent Autopilot on or off.

##Landing Autopilot and Computer Category

###mechjeb.LandingAutopilotActive()

Returns 1 if the MechJeb landing autopilot is engaged.

###mechjeb.LandingComputerActive()

Returns 1 if the MechJeb landing prediction computer is engaged.

###mechjeb.LandingAltitude()

When the landing prediction computer is engaged, returns the predicted altitude of the landing site. Returns 0 otherwise.

###mechjeb.LandingLatitude()

When the landing prediction computer is engaged, returns the predicted latitude of the landing site. Returns 0 otherwise.

###mechjeb.LandingLongitude()

When the landing prediction computer is engaged, returns the predicted longitude of the landing site. Returns 0 otherwise.

###mechjeb.ToggleLandingAutopilot()

Toggles the MechJeb landing autopilot on/off.

###mechjeb.ToggleLandingComputer()

Toggles the MechJeb landing prediction computer on/off independently of the landing autopilot.

##Maneuver Planner and Node Executor Category

###mechjeb.ChangeApoapsis(double newAp)

Change apoapsis to the specified altitude in meters. Command is ignored if Ap < Pe or the orbit is hyperbolic and the vessel is already past the Pe.

###mechjeb.ChangePeriapsis(double newPe)

Change Periapsis to the new altitude in meters. Command is ignored if Pe > Ap.

###mechjeb.CircularizeAt(double newAlt)

Circularize at the specified altitude, in meters. Command is ignored if an invalid altitude is supplied.

###mechjeb.ManeuverNodeExecutorActive()

Returns 1 if the maneuver node executor is active, 0 otherwise.

###mechjeb.ToggleManeuverNodeExecutor()

Enables / disables Maneuver Node Executor

##Rendezvous Autopilot Category

###mechjeb.RendezvousAutopilotActive()

Returns 1 if the rendezvous autopilot is engaged.

###mechjeb.ToggleRendezvousAutopilot()

Engages / disengages the MechJeb Rendezvous Autopilot

##SmartASS Category

###mechjeb.GetSASSMode()

Returns the number of the currently active SASS mode, or zero if MechJeb is unavailable.

  • OFF = 0,
  • KILLROT = 1,
  • NODE = 2,
  • SURFACE = 3,
  • PROGRADE = 4,
  • RETROGRADE = 5,
  • NORMAL_PLUS = 6,
  • NORMAL_MINUS = 7,
  • RADIAL_PLUS = 8,
  • RADIAL_MINUS = 9,
  • RELATIVE_PLUS = 10,
  • RELATIVE_MINUS = 11,
  • TARGET_PLUS = 12,
  • TARGET_MINUS = 13,
  • PARALLEL_PLUS = 14,
  • PARALLEL_MINUS = 15,
  • ADVANCED = 16,
  • AUTO = 17,
  • SURFACE_PROGRADE = 18,
  • SURFACE_RETROGRADE = 19,
  • HORIZONTAL_PLUS = 20,
  • HORIZONTAL_MINUS = 21,
  • VERTICAL_PLUS = 22,

###mechjeb.GetSASSModeActive(double mode)

Returns 1 if the current SASS mode matches the listed value.

  • OFF = 0,
  • KILLROT = 1,
  • NODE = 2,
  • SURFACE = 3,
  • PROGRADE = 4,
  • RETROGRADE = 5,
  • NORMAL_PLUS = 6,
  • NORMAL_MINUS = 7,
  • RADIAL_PLUS = 8,
  • RADIAL_MINUS = 9,
  • RELATIVE_PLUS = 10,
  • RELATIVE_MINUS = 11,
  • TARGET_PLUS = 12,
  • TARGET_MINUS = 13,
  • PARALLEL_PLUS = 14,
  • PARALLEL_MINUS = 15,
  • ADVANCED = 16,
  • AUTO = 17,
  • SURFACE_PROGRADE = 18,
  • SURFACE_RETROGRADE = 19,
  • HORIZONTAL_PLUS = 20,
  • HORIZONTAL_MINUS = 21,
  • VERTICAL_PLUS = 22,

###mechjeb.SASSOff()

Returns true if SmartASS is off

###mechjeb.SetSASSMode(double mode)

Set the SmartASS pilot to the specified mode. Some modes may not be 'settable', such as AUTO or ADVANCED.

  • OFF = 0,
  • KILLROT = 1,
  • NODE = 2,
  • SURFACE = 3,
  • PROGRADE = 4,
  • RETROGRADE = 5,
  • NORMAL_PLUS = 6,
  • NORMAL_MINUS = 7,
  • RADIAL_PLUS = 8,
  • RADIAL_MINUS = 9,
  • RELATIVE_PLUS = 10,
  • RELATIVE_MINUS = 11,
  • TARGET_PLUS = 12,
  • TARGET_MINUS = 13,
  • PARALLEL_PLUS = 14,
  • PARALLEL_MINUS = 15,
  • ADVANCED = 16,
  • AUTO = 17,
  • SURFACE_PROGRADE = 18,
  • SURFACE_RETROGRADE = 19,
  • HORIZONTAL_PLUS = 20,
  • HORIZONTAL_MINUS = 21,
  • VERTICAL_PLUS = 22,
Clone this wiki locally