@skyvexsoftware/stratos-sdk 0.26.0 → 0.27.0

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.
@@ -32,6 +32,12 @@ export type HistoryReportEntry = {
32
32
  altitude: number;
33
33
  altitudeAgl: number;
34
34
  heading: number;
35
+ /**
36
+ * Magnetic heading (what the cockpit instruments show). `heading` is true.
37
+ * Null when the simulator did not report it, and for samples recorded
38
+ * before this field existed. Undefined from a core that predates it.
39
+ */
40
+ headingMagnetic?: number | null;
35
41
  groundSpeed: number;
36
42
  indicatedAirspeed: number;
37
43
  verticalSpeed: number;
@@ -111,7 +111,14 @@ export type RecoverableFlight = {
111
111
  latitude: number | null;
112
112
  longitude: number | null;
113
113
  altitude: number | null;
114
+ /** True heading in degrees. The autopilot selector is magnetic, so see `headingMagnetic` for what to show the pilot. */
114
115
  heading: number | null;
116
+ /**
117
+ * Magnetic heading in degrees: `heading` is true, this is what the cockpit
118
+ * shows and what the autopilot heading selector takes. Null when it was not
119
+ * recorded. Undefined when the core predates the field.
120
+ */
121
+ headingMagnetic?: number | null;
115
122
  groundSpeed: number | null;
116
123
  indicatedAirspeed: number | null;
117
124
  startedAt: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyvexsoftware/stratos-sdk",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Plugin SDK for Stratos — types, hooks, and UI components",
5
5
  "author": {
6
6
  "name": "Skyvex Software Pty Ltd",