Skip to content

Commit 5277b67

Browse files
committed
Update docs
1 parent 76750b5 commit 5277b67

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

src/KerbalSimpitMessageTypes.h

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ enum InboundPackets
326326
If set and not 0, those command will supersede SAS command. The SAS will appear not the work when the jostick is in use.
327327
If this is the case for you, make sure you are sending 0 command to KSP on all used axis.*/
328328
ROTATION_MESSAGE = 16,
329-
/** Send vessel translation commands. */
329+
/** Send vessel translation commands.
330+
Works only for vessels in KSP1. Use keyboard emulation when on EVA.
331+
Works for vessels and Kerbals on EVA in KSP2. */
330332
TRANSLATION_MESSAGE = 17,
331333
/** Send wheel steering/throttle commands. */
332334
WHEEL_MESSAGE = 18,
@@ -450,17 +452,23 @@ enum ActionGroupSettings
450452
These are the values returned by advancedActionStatusMessage::get_action_status in the ADVANCED_ACTIONSTATUS_MESSAGE. */
451453
enum AdvancedActionGroupStates
452454
{
453-
/** Value if the action group is not available. */
455+
/** Value if the action group is not available.
456+
Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_NOT_AVAILABLE) */
454457
ADVANCED_AG_STATE_NOT_AVAILABLE = 0,
455-
/** Value if the action group is on. */
458+
/** Value if the action group is on.
459+
Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_ON) */
456460
ADVANCED_AG_STATE_ON = 1,
457-
/** Value if the action group is off. */
461+
/** Value if the action group is off.
462+
Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_OFF) */
458463
ADVANCED_AG_STATE_OFF = 2,
459-
/** Value if the action group is mixed, meaning some parts associated with it are on and others are off. */
464+
/** Value if the action group is mixed, meaning some parts associated with it are on and others are off.
465+
Use like this: if(myAdvancedActionStatusMessage.getActionStatus(ADVANCED_LIGHT_ACTION) == ADVANCED_AG_STATE_MIXED) */
460466
ADVANCED_AG_STATE_MIXED = 3,
461-
/** Value if the action group is mixed, meaning some parts associated with it are on and others are off. */
467+
/** This bit is on if there is science available, it mirrors the flashing blue light in the UI.
468+
Use it like this: if((myAdvancedActionStatusMessage.getActionStatus(ADVANCED_SCIENCE_ACTION) & ADVANCED_AG_STATE_BITMASK_SCIENCE_AVAILABLE) != 0) */
462469
ADVANCED_AG_STATE_BITMASK_SCIENCE_AVAILABLE = 1,
463-
/** Value if the action group is mixed, meaning some parts associated with it are on and others are off. */
470+
/** This bit is on if a science experiment is running, the same as when the flask is blinking green.
471+
Use it like this: if((myAdvancedActionStatusMessage.getActionStatus(ADVANCED_SCIENCE_ACTION) & ADVANCED_AG_STATE_BITMASK_EXPERIMENTS_IN_PROGRESS) != 0) */
464472
ADVANCED_AG_STATE_BITMASK_EXPERIMENTS_IN_PROGRESS = 2
465473
};
466474

0 commit comments

Comments
 (0)