SmartASS#

class MechJeb.SmartASS#

The Smart A.S.S. window, which points the vessel in a chosen direction.

interface_mode: MechJeb.SmartASSInterfaceMode#

The mode of the window, which selects its buttons and nothing else. Throws an exception if set to MechJeb.SmartASSInterfaceMode.automatic.

Attribute:

Can be read or written

autopilot_mode: MechJeb.SmartASSAutopilotMode#

The autopilot mode. Throws an exception if set to MechJeb.SmartASSAutopilotMode.automatic.

Attribute:

Can be read or written

Note

Call MechJeb.SmartASS:update() to apply a change.

update(reset_pid: boolean)#

Apply the settings.

Parameters:

reset_pid – Whether to reset the attitude controller. Use it only if the vessel does not follow the new settings.

force_yaw: boolean#

Whether the autopilot controls the yaw in the MechJeb.SmartASSAutopilotMode.surface, MechJeb.SmartASSAutopilotMode.surface_prograde and MechJeb.SmartASSAutopilotMode.surface_retrograde modes.

Attribute:

Can be read or written

force_pitch: boolean#

Whether the autopilot controls the pitch in the MechJeb.SmartASSAutopilotMode.surface, MechJeb.SmartASSAutopilotMode.surface_prograde and MechJeb.SmartASSAutopilotMode.surface_retrograde modes.

Attribute:

Can be read or written

force_roll: boolean#

Whether the autopilot controls the roll.

Attribute:

Can be read or written

roll: number#

The roll, in degrees. 0 is top side up.

Attribute:

Can be read or written

Note

Requires MechJeb.SmartASS.force_roll, and applies in every mode but MechJeb.SmartASSAutopilotMode.kill_rot and the surface modes.

surface_heading: number#

The heading, in degrees.

Attribute:

Can be read or written

Note

Requires MechJeb.SmartASS.force_yaw, and applies in the MechJeb.SmartASSAutopilotMode.surface mode.

surface_pitch: number#

The pitch above the horizon, in degrees. 90 is straight up.

Attribute:

Can be read or written

surface_roll: number#

The roll, in degrees. 0 is top side up.

Attribute:

Can be read or written

Note

Requires MechJeb.SmartASS.force_roll, and applies in the MechJeb.SmartASSAutopilotMode.surface mode.

surface_vel_yaw: number#

The yaw from the surface velocity, in degrees.

Attribute:

Can be read or written

surface_vel_pitch: number#

The pitch from the surface velocity, in degrees.

Attribute:

Can be read or written

surface_vel_roll: number#

The roll, in degrees. 0 is top side up.

Attribute:

Can be read or written

advanced_reference: MechJeb.AttitudeReference#

The reference frame of MechJeb.SmartASS.advanced_direction. Throws an exception if MechJeb uses a reference this enumeration lacks.

Attribute:

Can be read or written

Note

Applies in the MechJeb.SmartASSAutopilotMode.advanced mode.

advanced_direction: MechJeb.Direction#

The direction in MechJeb.SmartASS.advanced_reference.

Attribute:

Can be read or written

Note

Applies in the MechJeb.SmartASSAutopilotMode.advanced mode.

class MechJeb.SmartASSInterfaceMode#

The mode of the Smart A.S.S. window. See MechJeb.SmartASS.interface_mode.

orbital#

The orbital modes.

surface#

The surface modes.

target#

The target modes.

advanced#

The advanced mode.

automatic#

Set by MechJeb’s autopilots. Cannot be set.

class MechJeb.SmartASSAutopilotMode#

The autopilot mode of Smart A.S.S. See MechJeb.SmartASS.autopilot_mode.

off#

Off.

kill_rot#

Stop the vessel’s rotation.

node#

Point at the next maneuver node.

surface#

Point in the direction set by MechJeb.SmartASS.surface_heading, MechJeb.SmartASS.surface_pitch and MechJeb.SmartASS.surface_roll.

prograde#

Point orbital prograde.

retrograde#

Point orbital retrograde.

normal_plus#

Point orbit normal.

normal_minus#

Point orbit anti-normal.

radial_plus#

Point radially outward.

radial_minus#

Point radially inward.

relative_plus#

Point along the velocity relative to the target.

relative_minus#

Point against the velocity relative to the target.

target_plus#

Point at the target.

target_minus#

Point away from the target.

parallel_plus#

Point parallel to the target’s orientation. For a docking port, along its axis and away from it.

parallel_minus#

Point antiparallel to the target’s orientation. For a docking port, along its axis and toward it.

advanced#

Point in the direction set by MechJeb.SmartASS.advanced_reference and MechJeb.SmartASS.advanced_direction.

automatic#

Set by MechJeb’s autopilots. Cannot be set.

surface_prograde#

Point along the surface velocity.

surface_retrograde#

Point against the surface velocity.

horizontal_plus#

Point along the horizontal surface velocity.

horizontal_minus#

Point against the horizontal surface velocity.

vertical_plus#

Point up, normal to the surface.

class MechJeb.AttitudeReference#

A reference frame of Smart A.S.S. See MechJeb.SmartASS.advanced_reference.

inertial#

The world coordinate system.

orbit#

Forward is prograde, left is normal and up is radial out.

orbit_horizontal#

Forward is the orbital velocity projected onto the surface, and up is the surface normal.

surface_north#

Forward is north, left is west and up is the surface normal.

surface_velocity#

Forward is the surface velocity, and up is the surface normal perpendicular to it.

target#

Forward is toward the target, and up is the vessel’s heading perpendicular to it.

relative_velocity#

Forward is the velocity relative to the target.

target_orientation#

Forward is the direction the target faces, and up is the target’s up.

maneuver_node#

Forward is the burn direction of the next maneuver node.

sun#

Forward is the orbital velocity of the body that orbits the sun, and up is radial out of that orbit.

surface_horizontal#

Forward is the horizontal surface velocity, and up is the surface normal.

class MechJeb.Direction#

A direction of Smart A.S.S. See MechJeb.SmartASS.advanced_direction.

forward#

Forward.

back#

Back.

up#

Up.

down#

Down.

right#

Right.

left#

Left.