@qandq/cloud-gcs-core 1.0.48 → 1.0.49

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.
Files changed (97) hide show
  1. package/dist/cloud-gcs-core.cjs.development.js.map +1 -1
  2. package/dist/cloud-gcs-core.cjs.production.min.js.map +1 -1
  3. package/dist/cloud-gcs-core.esm.js.map +1 -1
  4. package/dist/index.d.ts +2 -1
  5. package/dist/models/AircraftConfiguration.d.ts +1 -1
  6. package/dist/models/PluginCallback.d.ts +5 -0
  7. package/dist/models/PluginData.d.ts +7 -0
  8. package/dist/models/telemetry/StatusInfo.d.ts +1 -0
  9. package/dist/plugin-contract/interfaces/IEventListener.d.ts +3 -0
  10. package/dist/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.d.ts +2 -2
  11. package/package.json +55 -55
  12. package/src/index.ts +157 -155
  13. package/src/models/AircraftConfiguration.ts +7 -7
  14. package/src/models/AircraftIdentifier.ts +5 -5
  15. package/src/models/AircraftLocation.ts +8 -8
  16. package/src/models/AircraftMission.ts +9 -9
  17. package/src/models/FailSafe.ts +13 -13
  18. package/src/models/FailSafeAction.ts +3 -3
  19. package/src/models/GCSController.ts +3 -3
  20. package/src/models/GeoFence.ts +9 -9
  21. package/src/models/LinkHealthStatus.ts +11 -11
  22. package/src/models/MenuItem.ts +6 -6
  23. package/src/models/Mission.ts +6 -6
  24. package/src/models/NavigationCommandParam.ts +17 -17
  25. package/src/models/PilotUserHealth.ts +8 -8
  26. package/src/models/PluginCallback.ts +5 -0
  27. package/src/models/PluginData.ts +7 -0
  28. package/src/models/PluginLogMessage.ts +11 -11
  29. package/src/models/aircraft/AircraftPilotageStatus.ts +7 -7
  30. package/src/models/aircraft/AircraftState.ts +5 -5
  31. package/src/models/aircraft/AircraftStatusTopicMessage.ts +11 -11
  32. package/src/models/enums/AircraftHealthEnum.ts +8 -8
  33. package/src/models/enums/CommandEnum.ts +38 -38
  34. package/src/models/enums/CommandSourceEnum.ts +15 -15
  35. package/src/models/enums/CommandTypeEnum.ts +27 -27
  36. package/src/models/enums/GPSCorrectionStatusEnum.ts +6 -6
  37. package/src/models/enums/GPSFixStatusEnum.ts +6 -6
  38. package/src/models/enums/HandOverCommandType.ts +5 -5
  39. package/src/models/enums/IndicatorStatusEnum.ts +6 -6
  40. package/src/models/enums/LogLevel.ts +6 -6
  41. package/src/models/enums/PayloadRetractStatusEnum.ts +12 -12
  42. package/src/models/enums/PilotageStateEnum.ts +5 -5
  43. package/src/models/enums/PilotageStatus.ts +4 -4
  44. package/src/models/enums/SensorStatus.ts +5 -5
  45. package/src/models/enums/TravelStatusEnum.ts +6 -6
  46. package/src/models/enums/UnitSystemEnum.ts +4 -4
  47. package/src/models/enums/UnitTypeEnum.ts +15 -15
  48. package/src/models/enums/UserTypeEnum.ts +4 -4
  49. package/src/models/enums/WarningStatusEnum.ts +7 -7
  50. package/src/models/handover/HandOverCommandData.ts +5 -5
  51. package/src/models/handover/HandOverResponseData.ts +7 -7
  52. package/src/models/telemetry/AirInfo.ts +8 -8
  53. package/src/models/telemetry/AircraftTelemetry.ts +35 -35
  54. package/src/models/telemetry/AircraftWarningStatuses.ts +5 -5
  55. package/src/models/telemetry/AttitudeInfo.ts +12 -12
  56. package/src/models/telemetry/BatteryInfo.ts +12 -12
  57. package/src/models/telemetry/ClimbInfo.ts +11 -11
  58. package/src/models/telemetry/CommandInfo.ts +13 -13
  59. package/src/models/telemetry/Coordinates.ts +4 -4
  60. package/src/models/telemetry/Coordinates2D.ts +5 -5
  61. package/src/models/telemetry/ESCInfo.ts +9 -9
  62. package/src/models/telemetry/EngineInfo.ts +15 -15
  63. package/src/models/telemetry/FlightIdentifier.ts +5 -5
  64. package/src/models/telemetry/GPSHealth.ts +9 -9
  65. package/src/models/telemetry/GPSInfo.ts +13 -13
  66. package/src/models/telemetry/HeadingInfo.ts +9 -9
  67. package/src/models/telemetry/IndexedWaypoint.ts +6 -6
  68. package/src/models/telemetry/PluginTelemetryData.ts +4 -4
  69. package/src/models/telemetry/SpeedInfo.ts +8 -8
  70. package/src/models/telemetry/StatusInfo.ts +25 -24
  71. package/src/models/telemetry/VtolControlInfo.ts +13 -13
  72. package/src/models/telemetry/VtolQuadInfo.ts +7 -7
  73. package/src/models/telemetry/Waypoint.ts +8 -8
  74. package/src/models/user/ClientType.ts +7 -7
  75. package/src/models/user/IUser.ts +17 -17
  76. package/src/models/user/User.ts +6 -6
  77. package/src/models/user/UserStatusTopicSubscriptionMessage.ts +7 -7
  78. package/src/plugin-contract/interfaces/IEventListener.ts +49 -45
  79. package/src/plugin-contract/interfaces/IPlugin.ts +3 -3
  80. package/src/plugin-contract/interfaces/IPluginApi.ts +13 -13
  81. package/src/plugin-contract/interfaces/IPluginEventManager.ts +8 -8
  82. package/src/plugin-contract/interfaces/IPluginServiceManager.ts +9 -9
  83. package/src/plugin-contract/interfaces/IPluginUIManager.ts +15 -15
  84. package/src/plugin-contract/models/PluginEventArgs.ts +5 -5
  85. package/src/plugin-contract/models/PluginEventCallback.ts +5 -5
  86. package/src/plugin-contract/models/PluginService.ts +5 -5
  87. package/src/plugin-contract/models/PluginServiceInformation.ts +4 -4
  88. package/src/plugin-contract/system-api/IMessageLogger.ts +7 -7
  89. package/src/plugin-contract/system-api/IMissionApi.ts +6 -6
  90. package/src/plugin-contract/system-api/ISystemApi.ts +21 -21
  91. package/src/plugin-contract/system-api/aircraft-api/IAircraftApi.ts +21 -21
  92. package/src/plugin-contract/system-api/aircraft-location-api/IAircraftLocationApi.ts +5 -5
  93. package/src/plugin-contract/system-api/handover-api/IHandOverApi.ts +8 -8
  94. package/src/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.ts +22 -25
  95. package/src/plugin-contract/system-api/telemetry-api/ITelemetryApi.ts +5 -5
  96. package/src/plugin-contract/system-api/units-api/IUnitsApi.ts +11 -11
  97. package/src/plugin-contract/system-api/user-api/IUserApi.ts +5 -5
@@ -1,11 +1,11 @@
1
- import { GCSController } from "../GCSController";
2
- import { PilotUserHealth } from "../PilotUserHealth";
3
-
4
- export interface AircraftStatusTopicMessage {
5
- aircraftName: string;
6
- aircraftCertificateName: string;
7
- aircraftId: number;
8
- gcsController: GCSController;
9
- pilotUserHealth: PilotUserHealth | undefined;
10
- flightId: string;
11
- }
1
+ import { GCSController } from "../GCSController";
2
+ import { PilotUserHealth } from "../PilotUserHealth";
3
+
4
+ export interface AircraftStatusTopicMessage {
5
+ aircraftName: string;
6
+ aircraftCertificateName: string;
7
+ aircraftId: number;
8
+ gcsController: GCSController;
9
+ pilotUserHealth: PilotUserHealth | undefined;
10
+ flightId: string;
11
+ }
@@ -1,8 +1,8 @@
1
- export enum AircraftHealthEnum {
2
- Start = "Start",
3
- Healthy = "Healthy",
4
- Unhealthy = "Unhealthy",
5
- Unattended = "Unattended",
6
- DownLinkBroken = "DownLinkBroken",
7
- Other = "Other",
8
- }
1
+ export enum AircraftHealthEnum {
2
+ Start = "Start",
3
+ Healthy = "Healthy",
4
+ Unhealthy = "Unhealthy",
5
+ Unattended = "Unattended",
6
+ DownLinkBroken = "DownLinkBroken",
7
+ Other = "Other",
8
+ }
@@ -1,38 +1,38 @@
1
- export enum CommandEnum {
2
- None = 255,
3
- Manual = 0,
4
- ReturnToLaunch,
5
- Stabilize,
6
- FlyByWireA,
7
- FlyByWireB,
8
- FlyByGCS,
9
- Circle,
10
- WayPoint,
11
- LoiterUnlimited,
12
- LoiterTurns,
13
- LoiterTime,
14
- LoiterAltitude,
15
- ApproachLanding,
16
- Land,
17
- TakeOff,
18
- TaxiStop,
19
- TaxiToPoint,
20
- TaxiSpeedUp,
21
- SetServoAngle,
22
- Sit,
23
- SetFlightParam,
24
- Rescue,
25
- Jump,
26
- VtolStabilize,
27
- VtolHoverByWire,
28
- VtolSpeedHold,
29
- VtolPositionHold,
30
- VtolSpeedUp,
31
- VtolTakeOff,
32
- VtolLand,
33
- VtolHoverTime,
34
- RequestDeviceAction,
35
- Launch,
36
- ChuteLand,
37
- VtolTest
38
- }
1
+ export enum CommandEnum {
2
+ None = 255,
3
+ Manual = 0,
4
+ ReturnToLaunch,
5
+ Stabilize,
6
+ FlyByWireA,
7
+ FlyByWireB,
8
+ FlyByGCS,
9
+ Circle,
10
+ WayPoint,
11
+ LoiterUnlimited,
12
+ LoiterTurns,
13
+ LoiterTime,
14
+ LoiterAltitude,
15
+ ApproachLanding,
16
+ Land,
17
+ TakeOff,
18
+ TaxiStop,
19
+ TaxiToPoint,
20
+ TaxiSpeedUp,
21
+ SetServoAngle,
22
+ Sit,
23
+ SetFlightParam,
24
+ Rescue,
25
+ Jump,
26
+ VtolStabilize,
27
+ VtolHoverByWire,
28
+ VtolSpeedHold,
29
+ VtolPositionHold,
30
+ VtolSpeedUp,
31
+ VtolTakeOff,
32
+ VtolLand,
33
+ VtolHoverTime,
34
+ RequestDeviceAction,
35
+ Launch,
36
+ ChuteLand,
37
+ VtolTest
38
+ }
@@ -1,15 +1,15 @@
1
- export enum CommandSourceEnum {
2
- None,
3
- Initial,
4
- Mission,
5
- Idle,
6
- RC,
7
- Instant,
8
- Geofence,
9
- Failsafe,
10
- FailsafeFlightCmdOnGround,
11
- FailsafeRescue,
12
- FailsafeGPSLoss,
13
- FailsafeGCSLoss,
14
- FailsafeRCLoss
15
- }
1
+ export enum CommandSourceEnum {
2
+ None,
3
+ Initial,
4
+ Mission,
5
+ Idle,
6
+ RC,
7
+ Instant,
8
+ Geofence,
9
+ Failsafe,
10
+ FailsafeFlightCmdOnGround,
11
+ FailsafeRescue,
12
+ FailsafeGPSLoss,
13
+ FailsafeGCSLoss,
14
+ FailsafeRCLoss
15
+ }
@@ -1,28 +1,28 @@
1
- export class CommandTypeEnum extends String {
2
- public static Jump: CommandTypeEnum = 'Jump';
3
- public static DownloadMission: CommandTypeEnum = "DownloadMission";
4
- public static UploadMission: CommandTypeEnum = "UploadMission";
5
- public static StartMission: CommandTypeEnum = "StartMission";
6
- public static MissionGeofenceUpdate: CommandTypeEnum = "MissionGeofenceUpdate";
7
- public static Logout: CommandTypeEnum = "Logout";
8
- public static FAST_ReturnToLaunch: CommandTypeEnum = "FastReturnToLaunch";
9
- public static FAST_TakeOff: CommandTypeEnum = "FastTakeOff";
10
- public static FAST_VTOLSpeedHold: CommandTypeEnum = "FastVTOLSpeedHold";
11
- public static FAST_FlyByFireA: CommandTypeEnum = "FastFlyByFireA";
12
- public static FAST_FlyByFireB: CommandTypeEnum = "FastFlyByFireB";
13
- public static FAST_Sit: CommandTypeEnum = "FastSit";
14
- public static FAST_Manual: CommandTypeEnum = "FastManual";
15
- public static FAST_Land: CommandTypeEnum = "FastLand";
16
- public static FAST_AbortLanding: CommandTypeEnum = "FastAbortLanding";
17
- public static FAST_Loiter: CommandTypeEnum = "FastLoiter";
18
- public static HandOver: CommandTypeEnum = "HandOver";
19
- public static HeartBeat: CommandTypeEnum = "HeartBeat";
20
- public static Claim: CommandTypeEnum = "Claim";
21
- public static Plugin: CommandTypeEnum = "Plugin";
22
- public static Acknowledgement: CommandTypeEnum = "Acknowledgement";
23
- public static HandOverInit: CommandTypeEnum = "HandOverInit";
24
- public static HandOverResponse: CommandTypeEnum = "HandOverResponse";
25
- public static HandOverMessage: CommandTypeEnum = "HandOverMessage";
26
- public static DeployParachute: CommandTypeEnum = "DeployParachute";
27
- public static InstantLoiter: CommandTypeEnum = 'InstantLoiter';
1
+ export class CommandTypeEnum extends String {
2
+ public static Jump: CommandTypeEnum = 'Jump';
3
+ public static DownloadMission: CommandTypeEnum = "DownloadMission";
4
+ public static UploadMission: CommandTypeEnum = "UploadMission";
5
+ public static StartMission: CommandTypeEnum = "StartMission";
6
+ public static MissionGeofenceUpdate: CommandTypeEnum = "MissionGeofenceUpdate";
7
+ public static Logout: CommandTypeEnum = "Logout";
8
+ public static FAST_ReturnToLaunch: CommandTypeEnum = "FastReturnToLaunch";
9
+ public static FAST_TakeOff: CommandTypeEnum = "FastTakeOff";
10
+ public static FAST_VTOLSpeedHold: CommandTypeEnum = "FastVTOLSpeedHold";
11
+ public static FAST_FlyByFireA: CommandTypeEnum = "FastFlyByFireA";
12
+ public static FAST_FlyByFireB: CommandTypeEnum = "FastFlyByFireB";
13
+ public static FAST_Sit: CommandTypeEnum = "FastSit";
14
+ public static FAST_Manual: CommandTypeEnum = "FastManual";
15
+ public static FAST_Land: CommandTypeEnum = "FastLand";
16
+ public static FAST_AbortLanding: CommandTypeEnum = "FastAbortLanding";
17
+ public static FAST_Loiter: CommandTypeEnum = "FastLoiter";
18
+ public static HandOver: CommandTypeEnum = "HandOver";
19
+ public static HeartBeat: CommandTypeEnum = "HeartBeat";
20
+ public static Claim: CommandTypeEnum = "Claim";
21
+ public static Plugin: CommandTypeEnum = "Plugin";
22
+ public static Acknowledgement: CommandTypeEnum = "Acknowledgement";
23
+ public static HandOverInit: CommandTypeEnum = "HandOverInit";
24
+ public static HandOverResponse: CommandTypeEnum = "HandOverResponse";
25
+ public static HandOverMessage: CommandTypeEnum = "HandOverMessage";
26
+ public static DeployParachute: CommandTypeEnum = "DeployParachute";
27
+ public static InstantLoiter: CommandTypeEnum = 'InstantLoiter';
28
28
  }
@@ -1,6 +1,6 @@
1
- export enum GPSCorrectionStatusEnum {
2
- Standard = 0,
3
- SBAS,
4
- DGPS,
5
- RTK
6
- }
1
+ export enum GPSCorrectionStatusEnum {
2
+ Standard = 0,
3
+ SBAS,
4
+ DGPS,
5
+ RTK
6
+ }
@@ -1,6 +1,6 @@
1
- export enum GPSFixStatusEnum {
2
- NoGPS = 0,
3
- NoValidPackets,
4
- NoFix,
5
- OK
6
- }
1
+ export enum GPSFixStatusEnum {
2
+ NoGPS = 0,
3
+ NoValidPackets,
4
+ NoFix,
5
+ OK
6
+ }
@@ -1,5 +1,5 @@
1
- export enum HandOverCommandType {
2
- Request = "Request",
3
- Offer = "Offer",
4
- Message = "Message"
5
- }
1
+ export enum HandOverCommandType {
2
+ Request = "Request",
3
+ Offer = "Offer",
4
+ Message = "Message"
5
+ }
@@ -1,7 +1,7 @@
1
- export enum IndicatorStatusEnum {
2
- None = -1,
3
- Disabled,
4
- Failed,
5
- Unhealthy,
6
- Healthy
1
+ export enum IndicatorStatusEnum {
2
+ None = -1,
3
+ Disabled,
4
+ Failed,
5
+ Unhealthy,
6
+ Healthy
7
7
  }
@@ -1,6 +1,6 @@
1
- export enum LogLevel {
2
- Message = "Message",
3
- Info = "Info",
4
- Warning = "Warning",
5
- Error = "Error"
6
- }
1
+ export enum LogLevel {
2
+ Message = "Message",
3
+ Info = "Info",
4
+ Warning = "Warning",
5
+ Error = "Error"
6
+ }
@@ -1,12 +1,12 @@
1
- export enum PayloadRetractStatusEnum {
2
- RetractDisabled,
3
- RetractInitialized,
4
- RetractFailed,
5
- LidClosed,
6
- LidOpen,
7
- Deployed,
8
- Deploying,
9
- Retracting,
10
- OpeningLid,
11
- ClosingLid
12
- }
1
+ export enum PayloadRetractStatusEnum {
2
+ RetractDisabled,
3
+ RetractInitialized,
4
+ RetractFailed,
5
+ LidClosed,
6
+ LidOpen,
7
+ Deployed,
8
+ Deploying,
9
+ Retracting,
10
+ OpeningLid,
11
+ ClosingLid
12
+ }
@@ -1,5 +1,5 @@
1
- export enum PilotageStateEnum {
2
- None = 0,
3
- Observing = 1,
4
- Controlling = 2,
5
- }
1
+ export enum PilotageStateEnum {
2
+ None = 0,
3
+ Observing = 1,
4
+ Controlling = 2,
5
+ }
@@ -1,5 +1,5 @@
1
- export enum PilotageStatus {
2
- None,
3
- Observing,
4
- Controlling,
1
+ export enum PilotageStatus {
2
+ None,
3
+ Observing,
4
+ Controlling,
5
5
  }
@@ -1,6 +1,6 @@
1
- export enum SensorStatus {
2
- Disabled,
3
- Failed,
4
- Unhealthy,
5
- Healthy,
1
+ export enum SensorStatus {
2
+ Disabled,
3
+ Failed,
4
+ Unhealthy,
5
+ Healthy,
6
6
  }
@@ -1,6 +1,6 @@
1
- export enum TravelStatusEnum {
2
- SittingOnGround = 0,
3
- MovingOnGround,
4
- Flying,
5
- Hovering
6
- }
1
+ export enum TravelStatusEnum {
2
+ SittingOnGround = 0,
3
+ MovingOnGround,
4
+ Flying,
5
+ Hovering
6
+ }
@@ -1,4 +1,4 @@
1
- export enum UnitSystemEnum {
2
- SI = 1,
3
- US = 2
4
- }
1
+ export enum UnitSystemEnum {
2
+ SI = 1,
3
+ US = 2
4
+ }
@@ -1,15 +1,15 @@
1
- export enum UnitTypeEnum {
2
- None = 0,
3
- Distance = 1,
4
- ShortDistance = 2,
5
- LongDistance = 3,
6
- Altitude = 4,
7
- HorizontalSpeed = 5,
8
- VerticalSpeed = 6,
9
- WindSpeed = 7,
10
- TimePrecise = 8,
11
- LatLon = 9,
12
- Weight = 10,
13
- Volume = 11,
14
- Temperature = 12
15
- }
1
+ export enum UnitTypeEnum {
2
+ None = 0,
3
+ Distance = 1,
4
+ ShortDistance = 2,
5
+ LongDistance = 3,
6
+ Altitude = 4,
7
+ HorizontalSpeed = 5,
8
+ VerticalSpeed = 6,
9
+ WindSpeed = 7,
10
+ TimePrecise = 8,
11
+ LatLon = 9,
12
+ Weight = 10,
13
+ Volume = 11,
14
+ Temperature = 12
15
+ }
@@ -1,4 +1,4 @@
1
- export enum UserTypeEnum {
2
- Pilot = "Pilot",
3
- Observer = "Observer",
4
- }
1
+ export enum UserTypeEnum {
2
+ Pilot = "Pilot",
3
+ Observer = "Observer",
4
+ }
@@ -1,7 +1,7 @@
1
- export enum WarningStatusEnum {
2
- Hidden = -1,
3
- Disabled = 0,
4
- Failed = 1,
5
- Unhealthy = 2,
6
- Healthy = 3
7
- }
1
+ export enum WarningStatusEnum {
2
+ Hidden = -1,
3
+ Disabled = 0,
4
+ Failed = 1,
5
+ Unhealthy = 2,
6
+ Healthy = 3
7
+ }
@@ -1,5 +1,5 @@
1
- import {HandOverCommandType} from "../enums/HandOverCommandType";
2
-
3
- export interface HandOverCommandData {
4
- handOverCommandType: HandOverCommandType;
5
- }
1
+ import {HandOverCommandType} from "../enums/HandOverCommandType";
2
+
3
+ export interface HandOverCommandData {
4
+ handOverCommandType: HandOverCommandType;
5
+ }
@@ -1,7 +1,7 @@
1
- import {HandOverCommandData} from "./HandOverCommandData";
2
- import {AircraftIdentifier} from "../AircraftIdentifier";
3
-
4
- export interface HandOverResponseData extends AircraftIdentifier {
5
- userCode: string,
6
- data: HandOverCommandData
7
- }
1
+ import {HandOverCommandData} from "./HandOverCommandData";
2
+ import {AircraftIdentifier} from "../AircraftIdentifier";
3
+
4
+ export interface HandOverResponseData extends AircraftIdentifier {
5
+ userCode: string,
6
+ data: HandOverCommandData
7
+ }
@@ -1,8 +1,8 @@
1
- export interface AirInfo {
2
- pressure: number; // in pascals
3
- temperature?: number; // in meters
4
- humidity?: number; // in Celcius
5
- density?: number;
6
- windDirection?: number;
7
- windSpeed: number;
8
- }
1
+ export interface AirInfo {
2
+ pressure: number; // in pascals
3
+ temperature?: number; // in meters
4
+ humidity?: number; // in Celcius
5
+ density?: number;
6
+ windDirection?: number;
7
+ windSpeed: number;
8
+ }
@@ -1,35 +1,35 @@
1
- import {AttitudeInfo} from "./AttitudeInfo";
2
- import {AirInfo} from "./AirInfo";
3
- import {SpeedInfo} from "./SpeedInfo";
4
- import {ClimbInfo} from "./ClimbInfo";
5
- import {HeadingInfo} from "./HeadingInfo";
6
- import {EngineInfo} from "./EngineInfo";
7
- import {CommandInfo} from "./CommandInfo";
8
- import {StatusInfo} from "./StatusInfo";
9
- import {BatteryInfo} from "./BatteryInfo";
10
- import {VtolControlInfo} from "./VtolControlInfo";
11
- import {PluginTelemetryData} from "./PluginTelemetryData";
12
- import {ESCInfo} from "./ESCInfo";
13
- import {VtolQuadInfo} from "./VtolQuadInfo";
14
- import {GPSHealth} from "./GPSHealth";
15
- import {AircraftWarningStatuses} from "./AircraftWarningStatuses";
16
- import {GPSInfo} from "./GPSInfo";
17
-
18
- export interface AircraftTelemetry {
19
- attitudeInfo: AttitudeInfo;
20
- airInfo?: AirInfo;
21
- speedInfo: SpeedInfo;
22
- climbInfo: ClimbInfo;
23
- headingInfo: HeadingInfo;
24
- engineInfo?: EngineInfo;
25
- escInfo?: ESCInfo;
26
- vtolQuadInfo?: VtolQuadInfo;
27
- vtolControlInfo: VtolControlInfo;
28
- commandInfo?: CommandInfo;
29
- batteryInfo?: BatteryInfo[];
30
- gpsInfo?: GPSInfo;
31
- gpsHealthInfo?: GPSHealth[];
32
- statusInfo?: StatusInfo;
33
- warningStatus?: AircraftWarningStatuses;
34
- pluginData: PluginTelemetryData[]
35
- }
1
+ import {AttitudeInfo} from "./AttitudeInfo";
2
+ import {AirInfo} from "./AirInfo";
3
+ import {SpeedInfo} from "./SpeedInfo";
4
+ import {ClimbInfo} from "./ClimbInfo";
5
+ import {HeadingInfo} from "./HeadingInfo";
6
+ import {EngineInfo} from "./EngineInfo";
7
+ import {CommandInfo} from "./CommandInfo";
8
+ import {StatusInfo} from "./StatusInfo";
9
+ import {BatteryInfo} from "./BatteryInfo";
10
+ import {VtolControlInfo} from "./VtolControlInfo";
11
+ import {PluginTelemetryData} from "./PluginTelemetryData";
12
+ import {ESCInfo} from "./ESCInfo";
13
+ import {VtolQuadInfo} from "./VtolQuadInfo";
14
+ import {GPSHealth} from "./GPSHealth";
15
+ import {AircraftWarningStatuses} from "./AircraftWarningStatuses";
16
+ import {GPSInfo} from "./GPSInfo";
17
+
18
+ export interface AircraftTelemetry {
19
+ attitudeInfo: AttitudeInfo;
20
+ airInfo?: AirInfo;
21
+ speedInfo: SpeedInfo;
22
+ climbInfo: ClimbInfo;
23
+ headingInfo: HeadingInfo;
24
+ engineInfo?: EngineInfo;
25
+ escInfo?: ESCInfo;
26
+ vtolQuadInfo?: VtolQuadInfo;
27
+ vtolControlInfo: VtolControlInfo;
28
+ commandInfo?: CommandInfo;
29
+ batteryInfo?: BatteryInfo[];
30
+ gpsInfo?: GPSInfo;
31
+ gpsHealthInfo?: GPSHealth[];
32
+ statusInfo?: StatusInfo;
33
+ warningStatus?: AircraftWarningStatuses;
34
+ pluginData: PluginTelemetryData[]
35
+ }
@@ -1,5 +1,5 @@
1
- import {WarningStatusEnum} from "../enums/WarningStatusEnum";
2
-
3
- export interface AircraftWarningStatuses{
4
- [name:string]: WarningStatusEnum
5
- }
1
+ import {WarningStatusEnum} from "../enums/WarningStatusEnum";
2
+
3
+ export interface AircraftWarningStatuses{
4
+ [name:string]: WarningStatusEnum
5
+ }
@@ -1,12 +1,12 @@
1
-
2
- export interface AttitudeInfo {
3
- roll: number;
4
- rollSetpoint: number;
5
- rollRate: number;
6
- rollRateSetpoint: number;
7
- pitch: number;
8
- pitchSetpoint: number;
9
- pitchRate: number;
10
- pitchRateSetpoint: number;
11
- angleOfAttack: number;
12
- }
1
+
2
+ export interface AttitudeInfo {
3
+ roll: number;
4
+ rollSetpoint: number;
5
+ rollRate: number;
6
+ rollRateSetpoint: number;
7
+ pitch: number;
8
+ pitchSetpoint: number;
9
+ pitchRate: number;
10
+ pitchRateSetpoint: number;
11
+ angleOfAttack: number;
12
+ }
@@ -1,12 +1,12 @@
1
- export interface BatteryInfo {
2
- status?: number;
3
- remainingCapacityStatus?: number;
4
- innerResistanceStatus?: number;
5
- TemperatureStatus?: number;
6
- remainingPercentage?: number;
7
- performancePercentage?: number;
8
- voltage?: number;
9
- current?: number;
10
- innerResistance?: number;
11
- temperature?: number;
12
- }
1
+ export interface BatteryInfo {
2
+ status?: number;
3
+ remainingCapacityStatus?: number;
4
+ innerResistanceStatus?: number;
5
+ TemperatureStatus?: number;
6
+ remainingPercentage?: number;
7
+ performancePercentage?: number;
8
+ voltage?: number;
9
+ current?: number;
10
+ innerResistance?: number;
11
+ temperature?: number;
12
+ }
@@ -1,11 +1,11 @@
1
- export interface ClimbInfo {
2
- distanceToGround?: number;
3
- pressureAltitude: number;
4
- pressureClimbRate: number;
5
- altitude: number;
6
- altitudeSetpoint: number;
7
- climbRate: number;
8
- climbRateSetpoint: number;
9
- altitudeMSL: number;
10
- ellipsoidAltitude: number;
11
- }
1
+ export interface ClimbInfo {
2
+ distanceToGround?: number;
3
+ pressureAltitude: number;
4
+ pressureClimbRate: number;
5
+ altitude: number;
6
+ altitudeSetpoint: number;
7
+ climbRate: number;
8
+ climbRateSetpoint: number;
9
+ altitudeMSL: number;
10
+ ellipsoidAltitude: number;
11
+ }
@@ -1,13 +1,13 @@
1
-
2
- import {CommandSourceEnum} from "../enums/CommandSourceEnum";
3
- import { IndexedWaypoint } from "./IndexedWaypoint";
4
-
5
- export interface CommandInfo{
6
- isMissionActive: boolean;
7
- currentWaypoint: IndexedWaypoint;
8
- commandSource: CommandSourceEnum;
9
- percentCompleted?: number;
10
- distanceToTrack: number; // Meters
11
- distanceToWayPoint: number; // Meters
12
- incrementalCommandId: number;
13
- }
1
+
2
+ import {CommandSourceEnum} from "../enums/CommandSourceEnum";
3
+ import { IndexedWaypoint } from "./IndexedWaypoint";
4
+
5
+ export interface CommandInfo{
6
+ isMissionActive: boolean;
7
+ currentWaypoint: IndexedWaypoint;
8
+ commandSource: CommandSourceEnum;
9
+ percentCompleted?: number;
10
+ distanceToTrack: number; // Meters
11
+ distanceToWayPoint: number; // Meters
12
+ incrementalCommandId: number;
13
+ }