Skip to content

Commit 508044c

Browse files
author
Patrick Bechon
committed
Add a vessel type in FlightStatus
1 parent 7efe807 commit 508044c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/PayloadStructs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ struct flightStatusMessage
6464
byte crewCount; /**< Current vessel crew count */
6565
byte commNetSignalStrenghPercentage; /**< Current vessel commNet signal strengh (in percentage). 0 when CommNet is not used */
6666
byte currentStage; /**< Current stage of the vessel (also the total number of stage remaining). Decreased by one at each staging. Caped at 255 by Simpit.*/
67+
byte vesselType; /**< Current type of the vessel (e.g. 0 for debris, 5 for rover, 3 for probe, 7 for ship, etc.) as indicated in https://www.kerbalspaceprogram.com/api/_vessel_8cs.html#afa39c7ec7cc0926b332fcd2d77425edb*/
6768

6869
inline bool isInFlight(){ return this->flightStatusFlags & FLIGHT_IN_FLIGHT; }
6970
inline bool isInEVA(){ return this->flightStatusFlags & FLIGHT_IS_EVA; }

0 commit comments

Comments
 (0)