SmartASS#
-
class SmartASS#
The Smart A.S.S. window, which points the vessel in a chosen direction.
-
SmartASSInterfaceMode interface_mode()#
-
void set_interface_mode(SmartASSInterfaceMode value)#
The mode of the window, which selects its buttons and nothing else. Throws an exception if set to
SmartASSInterfaceMode::automatic.- Game Scenes:
Flight
-
SmartASSAutopilotMode autopilot_mode()#
-
void set_autopilot_mode(SmartASSAutopilotMode value)#
The autopilot mode. Throws an exception if set to
SmartASSAutopilotMode::automatic.- Game Scenes:
Flight
Note
Call
SmartASS::update()to apply a change.
-
void update(bool reset_pid)#
Apply the settings.
- Parameters:
reset_pid – Whether to reset the attitude controller. Use it only if the vessel does not follow the new settings.
- Game Scenes:
Flight
-
bool force_yaw()#
-
void set_force_yaw(bool value)#
Whether the autopilot controls the yaw in the
SmartASSAutopilotMode::surface,SmartASSAutopilotMode::surface_progradeandSmartASSAutopilotMode::surface_retrogrademodes.- Game Scenes:
Flight
-
bool force_pitch()#
-
void set_force_pitch(bool value)#
Whether the autopilot controls the pitch in the
SmartASSAutopilotMode::surface,SmartASSAutopilotMode::surface_progradeandSmartASSAutopilotMode::surface_retrogrademodes.- Game Scenes:
Flight
-
bool force_roll()#
-
void set_force_roll(bool value)#
Whether the autopilot controls the roll.
- Game Scenes:
Flight
-
double roll()#
-
void set_roll(double value)#
The roll, in degrees. 0 is top side up.
- Game Scenes:
Flight
Note
Requires
SmartASS::force_roll(), and applies in every mode butSmartASSAutopilotMode::kill_rotand the surface modes.
-
double surface_heading()#
-
void set_surface_heading(double value)#
The heading, in degrees.
- Game Scenes:
Flight
Note
Requires
SmartASS::force_yaw(), and applies in theSmartASSAutopilotMode::surfacemode.
-
double surface_pitch()#
-
void set_surface_pitch(double value)#
The pitch above the horizon, in degrees. 90 is straight up.
- Game Scenes:
Flight
Note
Requires
SmartASS::force_pitch(), and applies in theSmartASSAutopilotMode::surfacemode.
-
double surface_roll()#
-
void set_surface_roll(double value)#
The roll, in degrees. 0 is top side up.
- Game Scenes:
Flight
Note
Requires
SmartASS::force_roll(), and applies in theSmartASSAutopilotMode::surfacemode.
-
double surface_vel_yaw()#
-
void set_surface_vel_yaw(double value)#
The yaw from the surface velocity, in degrees.
- Game Scenes:
Flight
Note
Requires
SmartASS::force_yaw(), and applies in theSmartASSAutopilotMode::surface_progradeandSmartASSAutopilotMode::surface_retrogrademodes.
-
double surface_vel_pitch()#
-
void set_surface_vel_pitch(double value)#
The pitch from the surface velocity, in degrees.
- Game Scenes:
Flight
Note
Requires
SmartASS::force_pitch(), and applies in theSmartASSAutopilotMode::surface_progradeandSmartASSAutopilotMode::surface_retrogrademodes.
-
double surface_vel_roll()#
-
void set_surface_vel_roll(double value)#
The roll, in degrees. 0 is top side up.
- Game Scenes:
Flight
Note
Requires
SmartASS::force_roll(), and applies in theSmartASSAutopilotMode::surface_progradeandSmartASSAutopilotMode::surface_retrogrademodes.
-
AttitudeReference advanced_reference()#
-
void set_advanced_reference(AttitudeReference value)#
The reference frame of
SmartASS::advanced_direction(). Throws an exception if MechJeb uses a reference this enumeration lacks.- Game Scenes:
Flight
Note
Applies in the
SmartASSAutopilotMode::advancedmode.
-
void set_advanced_direction(Direction value)#
The direction in
SmartASS::advanced_reference().- Game Scenes:
Flight
Note
Applies in the
SmartASSAutopilotMode::advancedmode.
-
SmartASSInterfaceMode interface_mode()#
-
enum struct SmartASSInterfaceMode#
The mode of the Smart A.S.S. window. See
SmartASS::interface_mode().-
enumerator orbital#
The orbital modes.
-
enumerator surface#
The surface modes.
-
enumerator target#
The target modes.
-
enumerator advanced#
The advanced mode.
-
enumerator automatic#
Set by MechJeb’s autopilots. Cannot be set.
-
enumerator orbital#
-
enum struct SmartASSAutopilotMode#
The autopilot mode of Smart A.S.S. See
SmartASS::autopilot_mode().-
enumerator off#
Off.
-
enumerator kill_rot#
Stop the vessel’s rotation.
-
enumerator node#
Point at the next maneuver node.
-
enumerator surface#
Point in the direction set by
SmartASS::surface_heading(),SmartASS::surface_pitch()andSmartASS::surface_roll().
-
enumerator prograde#
Point orbital prograde.
-
enumerator retrograde#
Point orbital retrograde.
-
enumerator normal_plus#
Point orbit normal.
-
enumerator normal_minus#
Point orbit anti-normal.
-
enumerator radial_plus#
Point radially outward.
-
enumerator radial_minus#
Point radially inward.
-
enumerator relative_plus#
Point along the velocity relative to the target.
-
enumerator relative_minus#
Point against the velocity relative to the target.
-
enumerator target_plus#
Point at the target.
-
enumerator target_minus#
Point away from the target.
-
enumerator parallel_plus#
Point parallel to the target’s orientation. For a docking port, along its axis and away from it.
-
enumerator parallel_minus#
Point antiparallel to the target’s orientation. For a docking port, along its axis and toward it.
-
enumerator advanced#
Point in the direction set by
SmartASS::advanced_reference()andSmartASS::advanced_direction().
-
enumerator automatic#
Set by MechJeb’s autopilots. Cannot be set.
-
enumerator surface_prograde#
Point along the surface velocity.
-
enumerator surface_retrograde#
Point against the surface velocity.
-
enumerator horizontal_plus#
Point along the horizontal surface velocity.
-
enumerator horizontal_minus#
Point against the horizontal surface velocity.
-
enumerator vertical_plus#
Point up, normal to the surface.
-
enumerator off#
-
enum struct AttitudeReference#
A reference frame of Smart A.S.S. See
SmartASS::advanced_reference().-
enumerator inertial#
The world coordinate system.
-
enumerator orbit#
Forward is prograde, left is normal and up is radial out.
-
enumerator orbit_horizontal#
Forward is the orbital velocity projected onto the surface, and up is the surface normal.
-
enumerator surface_north#
Forward is north, left is west and up is the surface normal.
-
enumerator surface_velocity#
Forward is the surface velocity, and up is the surface normal perpendicular to it.
-
enumerator target#
Forward is toward the target, and up is the vessel’s heading perpendicular to it.
-
enumerator relative_velocity#
Forward is the velocity relative to the target.
-
enumerator target_orientation#
Forward is the direction the target faces, and up is the target’s up.
-
enumerator maneuver_node#
Forward is the burn direction of the next maneuver node.
-
enumerator sun#
Forward is the orbital velocity of the body that orbits the sun, and up is radial out of that orbit.
-
enumerator surface_horizontal#
Forward is the horizontal surface velocity, and up is the surface normal.
-
enumerator inertial#