@skyvexsoftware/stratos-sdk 0.15.1 → 0.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,12 @@ type UseTrackingSessionReturn = {
19
19
  isPaused: boolean;
20
20
  /** True when the flight was paused due to simulator disconnection. */
21
21
  simDisconnected: boolean;
22
+ /**
23
+ * True while the sim is dropped mid-flight and the shell is silently waiting
24
+ * for it to reconnect (the flight stays active). Drives the "reconnecting…"
25
+ * recovery dialog.
26
+ */
27
+ reconnecting: boolean;
22
28
  currentFlight: CurrentFlight | null;
23
29
  pendingRecovery: RecoverableFlight | null;
24
30
  elapsedTime: number;
@@ -55,6 +55,7 @@ export function useTrackingSession() {
55
55
  flight: payload.flight,
56
56
  pendingRecovery: payload.pendingRecovery,
57
57
  simDisconnected: payload.simDisconnected,
58
+ reconnecting: payload.reconnecting,
58
59
  });
59
60
  };
60
61
  // Refetch on socket connect — catches flights started before the UI loaded
@@ -71,6 +72,7 @@ export function useTrackingSession() {
71
72
  const currentFlight = stateData?.flight ?? null;
72
73
  const pendingRecovery = stateData?.pendingRecovery ?? null;
73
74
  const simDisconnected = stateData?.simDisconnected ?? false;
75
+ const reconnecting = stateData?.reconnecting ?? false;
74
76
  const startFlight = useCallback(async (plan, options) => {
75
77
  const result = await api("/start", "POST", { flightPlan: plan, options });
76
78
  return result.data;
@@ -146,6 +148,7 @@ export function useTrackingSession() {
146
148
  isTracking: isActive,
147
149
  isPaused: flight?.status === "paused",
148
150
  simDisconnected,
151
+ reconnecting,
149
152
  currentFlight: flight,
150
153
  pendingRecovery,
151
154
  elapsedTime,
@@ -120,6 +120,13 @@ export type FlightManagerPayload = {
120
120
  pendingRecovery: RecoverableFlight | null;
121
121
  /** True when the flight was paused due to simulator disconnection. */
122
122
  simDisconnected: boolean;
123
+ /**
124
+ * True while the sim is dropped mid-flight and we are silently waiting for it
125
+ * to come back (the "reconnecting" pending state). The flight stays active;
126
+ * the shell surfaces the recovery dialog off this flag so a genuine crash can
127
+ * never resume silently without the pilot seeing it.
128
+ */
129
+ reconnecting: boolean;
123
130
  timestamp: number;
124
131
  };
125
132
  /** Result returned from startFlight */
@@ -125,6 +125,14 @@ export type LandingSample = {
125
125
  pitch: number;
126
126
  bank: number;
127
127
  groundSpeed: number;
128
+ /**
129
+ * Indicated airspeed (knots) at the sample. Optional: absent on payloads from
130
+ * shells older than the frame-IAS fix, in which case consumers fall back to
131
+ * `groundSpeed`. When present it is the sim's true `AIRSPEED INDICATED` (MSFS)
132
+ * / `indicated_airspeed` (X-Plane), so the FDR IAS column is real IAS rather
133
+ * than a copy of groundspeed.
134
+ */
135
+ indicatedAirspeed?: number;
128
136
  latitude: number;
129
137
  longitude: number;
130
138
  glideslopeDeviation: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyvexsoftware/stratos-sdk",
3
- "version": "0.15.1",
3
+ "version": "0.15.3",
4
4
  "description": "Plugin SDK for Stratos — types, hooks, and UI components",
5
5
  "author": {
6
6
  "name": "Skyvex Software Pty Ltd",