Kerbal Simpit Message Types

Constants for inbound and outbound message IDs.

Enums

enum CommonPackets

Common packets.

These packet types are used for both inbound and outbound messages.

Values:

enumerator SYNC_MESSAGE

Sync message. Used for handshaking.

enumerator ECHO_REQ_MESSAGE

Echo request. Either end can send this, and an echo response is expected.

enumerator ECHO_RESP_MESSAGE

Echo response. Sent in reply to an echo request.

enum OutboundPackets

Outbound packets.

IDs for packets that go from the game to devices.

Values:

enumerator LF_MESSAGE

Liquid fuel (KSP1) or Methane (KSP2) in the vessel.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator LF_STAGE_MESSAGE

Liquid fuel (KSP1) or Methane (KSP2) in the current stage.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator OX_MESSAGE

Oxidizer in the vessel.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator OX_STAGE_MESSAGE

Oxidizer in the current stage.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator SF_MESSAGE

Solid fuel in the vessel.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator SF_STAGE_MESSAGE

Solid fuel in the current stage.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator XENON_GAS_MESSAGE

Xenon gas in the vessel.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator XENON_GAS_STAGE_MESSAGE

Xenon Gas in the current stage.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator MONO_MESSAGE

Monoprollent in the vessel.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator EVA_MESSAGE

EVA propellant.

Only works in KSP1. Only available for Kerbals on EVA. Messages on this channel contain a resourceMessage.

enumerator INTAKE_AIR_MESSAGE

Intake air available to the vessel.

Only works in KSP2. Messages on this channel contain a resourceMessage.

enumerator HYDROGEN_MESSAGE

Hydrogen in the vessel.

Only works in KSP2. Messages on this channel contain a resourceMessage.

enumerator HYDROGEN_STAGE_MESSAGE

Hydrogen in the current Stage.

Only works in KSP2. Messages on this channel contain a resourceMessage.

enumerator URANIUM_MESSAGE

Uranium in the vessel.

Only works in KSP2. Messages on this channel contain a resourceMessage.

enumerator ELECTRIC_MESSAGE

Electic Charge in the vessel.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator ORE_MESSAGE

Ore in the vessel.

Only works in KSP1. Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator AB_MESSAGE

Ablator in the vessel.

Messages on this channel contain a resourceMessage. Need ARP to work for KSP1.

enumerator AB_STAGE_MESSAGE

Ablator in the current stage.

Only works in KSP1. Messages on this channel contain a resourceMessage. Need ARP to work.

enumerator TACLS_RESOURCE_MESSAGE

TAC Life Support ressources.

Only works in KSP1. Messages on this channel contain a TACLSRessourceMessage. Need ARP and TACLS to work.

enumerator TACLS_WASTE_MESSAGE

TAC Life Support waste ressources.

Only works in KSP1. Messages on this channel contain a TACLSWasteMessage. Need ARP and TACLS to work.

enumerator CUSTOM_RESOURCE_1_MESSAGE

Custom ressources.

Only works in KSP1. Specific ressource to use to be set in the configuration file. Messages on this channel contain a CustomResourceMessage. Need ARP and Community Resource Pack to work.

enumerator CUSTOM_RESOURCE_2_MESSAGE

Custom ressources.

Only works in KSP1. Specific ressource to use to be set in the configuration file. Messages on this channel contain a CustomResourceMessage. Need ARP and Community Resource Pack to work.

enumerator ALTITUDE_MESSAGE

Sea level and surface altitude.

Messages on this channel contain an altitudeMessage.

enumerator VELOCITY_MESSAGE

Vessel velocity.

Messages on this channel contain a velocityMessage.

enumerator AIRSPEED_MESSAGE

Information about airspeed.

This channel delivers messages containing indicated airspeed and mach number for the active vessel. Messages on this channel contain a airspeedMessage.

enumerator APSIDES_MESSAGE

Apoapsis and periapsis.

Messages on this channel contain an apsidesMessage.

enumerator APSIDESTIME_MESSAGE

Time to the next apoapsis and periapsis.

Messages on this channel contain an apsidesTimeMessage.

enumerator MANEUVER_MESSAGE

Data about the planned maneuvers.

Messages on this channel contain an maneuverMessage.

enumerator SAS_MODE_INFO_MESSAGE

Data about the current SAS mode.

Messages on this channel contain a SASInfoMessage.

enumerator ORBIT_MESSAGE

Data about the current orbit.

Messages on this channel contain an orbitInfoMessage.

enumerator ROTATION_DATA_MESSAGE

Data about the vessel’s rotation (including velocities).

This is an output, not be confused with rotationMessage, an input from joysticks. Messages on this channel contain an vesselPointingMessage

.

This value was renamed in v2.2 from ROTATION_DATA.

enumerator ROTATION_CMD_MESSAGE

Rotation command after applying Simpit command.

If not Simpit command is applied, this can be set by the SAS for instance. Messages on this channel contain an rotationMessage, with the mask field unused.

enumerator TRANSLATION_CMD_MESSAGE

Translation command after applying Simpit command.

Messages on this channel contain an translationMessage, with the mask field unused.

enumerator WHEEL_CMD_MESSAGE

Wheel command after applying Simpit command.

Messages on this channel contain an wheelMessage, with the mask field unused.

enumerator THROTTLE_CMD_MESSAGE

Throttle command after applying Simpit command.

This can be used for instance to control a motorized throttle. Messages on this channel contain an throttleMessage (i.e. a single 16-bit integer).

enumerator ACTIONSTATUS_MESSAGE

Action groups.

All KSP1 Action Groups are available here, but some KSP2 Action Groups (like Solar and Radiators) are missing. Use ADVANCED_ACTIONSTATUS_MESSAGE for those. Messages on this channel contain a single byte representing the currently active action groups. A given action group can be checked by performing a bitwise AND with the message. For example:

if (msg[0] & SAS_ACTION) {
    // code to execute if SAS is active
}

Possible action groups are:

  • STAGE_ACTION

  • GEAR_ACTION

  • LIGHT_ACTION

  • RCS_ACTION

  • SAS_ACTION

  • BRAKES_ACTION

  • ABORT_ACTION

The mixed state (some on, some off) from KSP2 is not included. Use ADVANCED_ACTIONSTATUS_MESSAGE if you want to see this state. “Mixed state” will be false/”off” in this message.

enumerator DELTAV_MESSAGE

Amount of deltaV of the current vessel in the current situation.

Messages on this channel contain an deltaVMessage.

enumerator DELTAVENV_MESSAGE

Amount of deltaV of the current vessel in different situations (Atmospheric sea level and in vacuum).

Messages on this channel contain an deltaVEnvMessage.

enumerator BURNTIME_MESSAGE

Amount of burn time of the current vessel.

Messages on this channel contain an burnTimeMessage.

enumerator CAGSTATUS_MESSAGE

Current status of all the custom action groups.

Messages on this channel contains a cagStatusMessage. This cagStatusMessage has a is_action_activated method taking the action group number as an argumetnt.

The mixed state (some on, some off) from KSP2 is not included. Use ADVANCED_CAGSTATUS_MESSAGE if you want to see this state. “Mixed state” will be false/”off” in this message.

enumerator TEMP_LIMIT_MESSAGE

Current maximum temperature of the any vessel part.

This message contains the maximum percentage value of the temperature of any part of the vessel. It contains a percentage for both core and skin temperature. The two maximum percentage can come from different parts. Messages on this channel contain an tempLimitMessage.

enumerator ADVANCED_ACTIONSTATUS_MESSAGE

Default Action groups Messages on this channel contain an advancedActionStatusMessage.

enumerator ADVANCED_CAGSTATUS_MESSAGE

Custom Action groups Messages on this channel contain an advancedActionStatusMessage.

enumerator TARGETINFO_MESSAGE

Information about targeted object.

This channel delivers messages about the object targeted by the active vessel. Messages on this channel contain a targetInfoMessage.

enumerator SOI_MESSAGE

Name of current Sphere of Influence.

This channel delivers an ASCII string containing the name of the body the active vessel is currently orbiting. Note that this is always the English name, regardless of the language the game is currently set to.

enumerator SCENE_CHANGE_MESSAGE

Scene change packets are sent by the plugin when entering or leaving the flight scene.

This message has a single byte : 0 when a flight is ready, 1 when exiting a flight scene.

enumerator FLIGHT_STATUS_MESSAGE

Information about the current flight (warp speed, status, crew, com).

Messages on this channel contain a flightStatusMessage.

enumerator ATMO_CONDITIONS_MESSAGE

Information about the current atmospheric conditions.

Messages on this channel contain a atmoConditionsMessage.

enumerator VESSEL_NAME_MESSAGE

Current name of the vessel.

Messages on this channel contain a table of size 32 max (name is truncated) and only ascii characters are used.

enumerator VESSEL_CHANGE_MESSAGE

Vessel Change packets are sent when the current vessel change Messages on this channel contain a single byte indicating the origin of the change : 1 for vessel switching 2 for docking 3 for undocking.

enumerator INTERSECTS_MESSAGE

Information about intersects with a target orbit.

This channel delivers messages about the intersects between the active vessel and a target. Messages on this channel contain a intersectsMessage. Only available in KSP2.

enum InboundPackets

Inbound packets.

These packet types are used for packets going from devices to the game.

Values:

enumerator CLOSE_SERIAL
enumerator REGISTER_MESSAGE

Register to receive messages on a given channel.

enumerator DEREGISTER_MESSAGE

Deregister, indicate that no further messages for the given channel should be sent.

enumerator REQUEST_MESSAGE

Request a new message to be sent on this channel (used for channel that only send message on request).

If requested on the channel 0, it will trigger a new message on all subscribed channels. May not work on all channels.

enumerator CAGACTIVATE_MESSAGE

Activate the given Custom Action Group(s).

enumerator CAGDEACTIVATE_MESSAGE

Deactivate the given Custom Action Group(s).

enumerator CAGTOGGLE_MESSAGE

Toggle the given Custom Action Group(s) (Active CAGs will deactivate, inactive CAGs will activate).

enumerator AGACTIVATE_MESSAGE

Activate the given standard Action Group(s).

Note that every request to activate the Stage action group will result in the next stage being activated. For all other action groups, multiple activate requests will have no effect.

enumerator AGDEACTIVATE_MESSAGE

Deactivate the given standard Action Group(s).

enumerator AGTOGGLE_MESSAGE

Toggle the given standard Action Group(s).

enumerator SETSINGLE_AG_MESSAGE

Set one of the standard Action Group(s).

The payload should be a single byte, with the first 6 bits as which action group to set as in the AdvancedActionGroupIndexes enum and the last 2 bits the state/action of the action group as in the ActionGroupSettings enum in the AutopilotMode enum.

enumerator SETSINGLE_CAG_MESSAGE

Set one of the custom Action Group(s).

enumerator ROTATION_MESSAGE

Send vessel rotation commands.

If set and not 0, those command will supersede SAS command. The SAS will appear not the work when the jostick is in use. If this is the case for you, make sure you are sending 0 command to KSP on all used axis.

enumerator TRANSLATION_MESSAGE

Send vessel translation commands.

Works only for vessels in KSP1. Use keyboard emulation when on EVA. Works for vessels and Kerbals on EVA in KSP2.

enumerator WHEEL_MESSAGE

Send wheel steering/throttle commands.

enumerator THROTTLE_MESSAGE

Send vessel throttle commands.

enumerator SAS_MODE_MESSAGE

Send SAS mode commands.

The payload should be a single byte, possible SAS modes are listed in the AutopilotMode enum.

enumerator CAMERA_CONTROL_MODE

Not yet implemented in KSP2.

enumerator CAMERA_ROTATION_MESSAGE

Not yet implemented in KSP2.

enumerator TIMEWARP_MESSAGE

Send a timewarp commands.

This is to change the game speed. The payload should be a single byte, possible commands are listed in the Timewarp enum.

enumerator TIMEWARP_TO_MESSAGE

Send a timewarp TO commands.

This is to timewarp to a given time. The message (see timewarpToMessage struct) contains a single byte for the specific point to aim (periapsis, maneuver node, etc.) and a delay in seconds with respect to this point. This allow to timewarp 1h before the next morning, 30s before periapsis or 1 min before the start of the burn of the next maneuver.

enumerator CUSTOM_LOG

Send a custom log message.

The message will be printed in the KSP log. The options are defined in the CustomLogStatus enum. The message should not be more than 31 char.

enumerator KEYBOARD_EMULATOR

Send a message to emulate a key press.

The message contains a key modifyer and a key code. The key code indicate which key to press. It is taken from the file named VirtualKeyCode in the folder KerbalSimpit\Contrib\InputSimulator\WindowsInput\Native. For instance :

  • 0x4D for ‘m’ to open the map

  • 0x74 for ‘F5’ to quicksave The modifier is used to emulate key press while holding keys such as CTRL, SHIFT, etc This channel only works on Windows, not on Mac or Linux.

Another alternative is to use the keyboard.h library, which works on all operating systems (Windows, Linux, Mac), but needs a specific Arduino board (based on ATmega32U4 such as the Due or Leonardo). See the KerbalSimpitTranslationForShipAndEVADemo example for instance.

enumerator CUSTOM_AXIS_MESSAGE

Send a message to control the custom axis.

Only for KSP1

enumerator NAVBALLMODE_MESSAGE

Send a message to cycle the NavBall mode to the next mode.

enum HandshakeValues

Handshake values These are used to communicate the version of KSP the controller is connected to.

Values:

enumerator KERBAL_SPACE_PROGRAM_1

Connection to KSP 1.

enumerator KERBAL_SPACE_PROGRAM_2

Connection to KSP 2.

enum ActionGroupIndexes

Action Group Indexes These are used to mask out elements of an ACTIONSTATUS_MESSAGE.

Values:

enumerator STAGE_ACTION

Bitmask for the Stage action group.

enumerator GEAR_ACTION

Bitmask for the Gear action group.

enumerator LIGHT_ACTION

Bitmask for the Light action group.

enumerator RCS_ACTION

Bitmask for the RCS action group.

enumerator SAS_ACTION

Bitmask for the SAS action group.

enumerator BRAKES_ACTION

Bitmask for the Brakes action group.

enumerator ABORT_ACTION

Bitmask for the Abort action group.

enum AdvancedActionGroupIndexes

Advanced Action Group Indexes These are used to get the values in the ADVANCED_ACTIONSTATUS_MESSAGE.

Values:

enumerator ADVANCED_STAGE_ACTION

Index for the Stage action group.

enumerator ADVANCED_GEAR_ACTION

Index for the Gear action group.

enumerator ADVANCED_LIGHT_ACTION

Index for the Light action group.

enumerator ADVANCED_RCS_ACTION

Index for the RCS action group.

enumerator ADVANCED_SAS_ACTION

Index for the SAS action group.

enumerator ADVANCED_BRAKES_ACTION

Index for the Brakes action group.

enumerator ADVANCED_ABORT_ACTION

Index for the Abort action group.

enumerator ADVANCED_SOLAR_ACTION

Index for the Solar action group.

Only for KSP2.

enumerator ADVANCED_RADIATOR_ACTION

Index for the Radiator action group.

Only for KSP2.

enumerator ADVANCED_SCIENCE_ACTION

Index for the Science action group.

Only for KSP2.

enum ActionGroupSettings

Action Group Settings for single action groups These are used to set the values in the SETSINGLE_AG_MESSAGE and SETSINGLE_CAG_MESSAGE.

Values:

enumerator AG_ACTION_NOTHING

Don’t do anything with this action group.

enumerator AG_ACTION_ACTIVATE

Activate the action group.

enumerator AG_ACTION_DEACTIVATE

Deactivate the action group.

enumerator AG_ACTION_TOGGLE

Toggle the action group.

enum AdvancedActionGroupStates

Advanced Action Group States These are the values returned by advancedActionStatusMessage::get_action_status in the ADVANCED_ACTIONSTATUS_MESSAGE.

Values:

enumerator ADVANCED_AG_STATE_NOT_AVAILABLE

Value if the action group is not available.

Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_NOT_AVAILABLE)

enumerator ADVANCED_AG_STATE_ON

Value if the action group is on.

Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_ON)

enumerator ADVANCED_AG_STATE_OFF

Value if the action group is off.

Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_OFF)

enumerator ADVANCED_AG_STATE_MIXED

Value if the action group is mixed, meaning some parts associated with it are on and others are off.

Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_MIXED)

enumerator ADVANCED_AG_STATE_BITMASK_SCIENCE_AVAILABLE

This bit is on if there is science available, it mirrors the flashing blue light in the UI.

Use it like this: if((myAdvancedActionStatusMessage.getActionStatus(ADVANCED_SCIENCE_ACTION) & ADVANCED_AG_STATE_BITMASK_SCIENCE_AVAILABLE) != 0)

enumerator ADVANCED_AG_STATE_BITMASK_EXPERIMENTS_IN_PROGRESS

This bit is on if a science experiment is running, the same as when the flask is blinking green.

Use it like this: if((myAdvancedActionStatusMessage.getActionStatus(ADVANCED_SCIENCE_ACTION) & ADVANCED_AG_STATE_BITMASK_EXPERIMENTS_IN_PROGRESS) != 0)

enum Timewarp

Timewarp command These are used for a TIMEWARP_MESSAGE.

The warp rates given here are for KSP1. TIMEWARP_UP, TIMEWARP_DOWN and TIMEWARP_CANCEL_AUTOWARP work for both KSP1 and KSP2 Use the TIMEWARP_KSP2_XN for setting KSP2 timewarp rates as those rates are different.

Values:

enumerator TIMEWARP_X1

Set Timewarp to x1.

enumerator TIMEWARP_X5

KSP1: Set Timewarp to x5 (no effect in atmosphere).

enumerator TIMEWARP_X10

KSP1: Set Timewarp to x10 (no effect in atmosphere).

enumerator TIMEWARP_X50

KSP1: Set Timewarp to x50 (no effect in atmosphere).

enumerator TIMEWARP_X100

KSP1: Set Timewarp to x100 (no effect in atmosphere).

enumerator TIMEWARP_X1000

KSP1: Set Timewarp to x1000 (no effect in atmosphere).

enumerator TIMEWARP_X10000

KSP1: Set Timewarp to x10000 (no effect in atmosphere).

enumerator TIMEWARP_X100000

KSP1: Set Timewarp to x100000 (no effect in atmosphere).

enumerator TIMEWARP_X1_PHYSICAL

KSP1: Set Timewarp to x1 in atmosphere (no effect out of atmosphere).

enumerator TIMEWARP_X2_PHYSICAL

KSP1: Set Timewarp to x2 in atmosphere (no effect out of atmosphere).

enumerator TIMEWARP_X3_PHYSICAL

KSP1: Set Timewarp to x3 in atmosphere (no effect out of atmosphere).

enumerator TIMEWARP_X4_PHYSICAL

KSP1: Set Timewarp to x4 in atmosphere (no effect out of atmosphere).

enumerator TIMEWARP_UP

KSP1 and KSP2: Set Timewarp the next rate available.

enumerator TIMEWARP_DOWN

KSP1 and KSP2: Set Timewarp the previous rate available.

enumerator TIMEWARP_CANCEL_AUTOWARP

KSP1 and KSP2: Cancel the current auto-timewarp and reset it to x1.

enum TimewarpKsp2

Timewarp command These are used for a TIMEWARP_MESSAGE.

The warp rates given here are for KSP2. Use the TIMEWARP_XN for setting KSP1 timewarp rates as those rates are different. TIMEWARP_UP, TIMEWARP_DOWN and TIMEWARP_CANCEL_AUTOWARP from the KSP1 set of Timewarp rates work for both KSP1 and KSP2.

Values:

enumerator TIMEWARP_KSP2_X1

KSP2: Set Timewarp to x1.

enumerator TIMEWARP_KSP2_X2

KSP2: SSet Timewarp to x2.

enumerator TIMEWARP_KSP2_X4

KSP2: SSet Timewarp to x4.

enumerator TIMEWARP_KSP2_X10

KSP2: SSet Timewarp to x10.

enumerator TIMEWARP_KSP2_X50

KSP2: SSet Timewarp to x50.

enumerator TIMEWARP_KSP2_X100

KSP2: SSet Timewarp to x100.

enumerator TIMEWARP_KSP2_X1000

KSP2: SSet Timewarp to x1000.

enumerator TIMEWARP_KSP2_X10000

KSP2: SSet Timewarp to x10000.

enumerator TIMEWARP_KSP2_X100000

KSP2: SSet Timewarp to x100 000.

enumerator TIMEWARP_KSP2_X1000000

KSP2: SSet Timewarp to x1 000 000.

enumerator TIMEWARP_KSP2_X10000000

KSP2: SSet Timewarp to x10 000 000.

enum TimewarpTo

Timewarp command These are used for a TIMEWARP_TO_MESSAGE in a timewarpToMessage struct.

Values:

enumerator TIMEWARP_TO_NOW

Warp to now, used to add a delay to the given time.

enumerator TIMEWARP_TO_NEXT_MANEUVER

Warp to the next maneuver node.

enumerator TIMEWARP_TO_NEXT_BURN

Warp to the start of the burn of the next maneuver, estiming the burntime using KSP estimations.

It is recommended to add a delay to account for the needed rotation.

enumerator TIMEWARP_TO_NEXT_SOI

Warp to the next SOI change.

enumerator TIMEWARP_TO_APOAPSIS

Warp to the apoapsis.

enumerator TIMEWARP_TO_PERIAPSIS

Warp to the periapsis.

enumerator TIMEWARP_TO_NEXT_MORNING

Warp to the next morning.

Not implemented in KSP2 yet.

enum CustomLogStatus

Values:

enumerator VERBOSE_ONLY

If set, the message will only be put in the KSP log is the Simpit mod is in verbose mode.

enumerator PRINT_TO_SCREEN

If set, the message will also be displayed to the user (and not only in the log)

enumerator NO_HEADER

If set, the message will not be prefixed with ‘Simpit :’.

enum KeyboardEmulatorModifier

Values:

enumerator SHIFT_MOD

If set, emulate the use of Shift.

enumerator CTRL_MOD

If set, emulate the use of CTRL.

enumerator ALT_MOD

If set, emulate the use of ALT.

enumerator KEY_DOWN_MOD

If set, emulate only the key down.

enumerator KEY_UP_MOD

If set, emulate only the key up.

enum RotationAxes

Rotation Axes These are used to indicate which axes in a ROTATION_MESSAGE or CAMERA_ROTATION_MESSAGE are active.

Values:

enumerator PITCH_ROT

Bitmask for the pitch axis.

enumerator ROLL_ROT

Bitmask for the roll axis.

enumerator YAW_ROT

Bitmask for the yaw axis.

enumerator ZOOM_ROT

Bitmask for the zoom axis.

Added here purely for camera control.

enum TranslationAxes

Translation Axes These are used to indicate which axes in a TRANSLATION_MESSAGE are active.

Values:

enumerator X_TRANS

Bitmask for the X axis.

enumerator Y_TRANS

Bitmask for the Y axis.

enumerator Z_TRANS

Bitmask for the Z axis.

enum WheelAxes

Translation Axes These are used to indicate which axes in a WHEEL_MESSAGE are active.

Values:

enumerator STEER_WHEEL

Bitmask for the steer.

enumerator THROTTLE_WHEEL

Bitmask for the throttle.

enum AutopilotMode

Autopilot Mode The possible Autopilot (SAS) modes.

This enum corresponds with VesselPilot.AutopilotMode in the KSP1 API (values 0 to 9) and with KSP.Sim.AutopilotMode in KSP2 (values 0 to 11)

Values:

enumerator AP_STABILITYASSIST
enumerator AP_PROGRADE
enumerator AP_RETROGRADE
enumerator AP_NORMAL
enumerator AP_ANTINORMAL
enumerator AP_RADIALIN
enumerator AP_RADIALOUT
enumerator AP_TARGET
enumerator AP_ANTITARGET
enumerator AP_MANEUVER
enumerator AP_NAVIGATION
enumerator AP_AUTOPILOT
enum CameraControlMode

Camera Mode The possible camera mode control options.

Values:

enumerator CAMERA_MODE_FLIGHT
enumerator FLIGHT_CAMERA_AUTO
enumerator FLIGHT_CAMERA_FREE
enumerator FLIGHT_CAMERA_ORBITAL
enumerator FLIGHT_CAMERA_CHASE
enumerator FLIGHT_CAMERA_LOCKED
enumerator CAMERA_NEXT
enumerator CAMERA_PREVIOUS
enumerator CAMERA_NEXT_MODE
enumerator CAMERA_PREVIOUS_MODE
enum FligthStatusFlags

Flags used for the FlightStatus message.

Values:

enumerator FLIGHT_IN_FLIGHT

True if the game is currently in the flight screen.

enumerator FLIGHT_IS_EVA

True if the current flight is an EVA.

enumerator FLIGHT_IS_RECOVERABLE

True if the current vesset is recoverable.

enumerator FLIGHT_IS_ATMO_TW

True if the current Timewarp mode is for atmosphere (i.e.

physical timewarp).

enumerator FLIGHT_CONTROL_LEVEL_0

2 bits used to code the Control Level.

Use the helper function of flightStatusMessage to parse it.

enumerator FLIGHT_CONTROL_LEVEL_1

2 bits used to code the Control Level.

Use the helper function of flightStatusMessage to parse it.

enumerator FLIGHT_HAS_TARGET

True if a target is set currently.

enum AtmoConditionsFlags

Flags used for the atmoConditionsMessage message.

Values:

enumerator HAS_ATMOSPHERE

True if the current body has an atmosphere.

enumerator HAS_OXYGEN

True if the current body has oxygen in its atmosphere.

enumerator IS_IN_ATMOSPHERE

True if the current vesset is atmosphere.


This documentation was build using ArduinoDocs.