@qandq/cloud-gcs-core 1.2.48 → 1.2.50
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.
- package/dist/index.d.ts +2 -1
- package/dist/models/AircraftConfiguration.d.ts +5 -0
- package/dist/models/FlightInfo.d.ts +5 -0
- package/dist/plugin-contract/interfaces/IEventListener.d.ts +7 -0
- package/dist/plugin-contract/system-api/aircraft-api/IAircraftApi.d.ts +2 -0
- package/dist/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.d.ts +2 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/models/AircraftConfiguration.ts +7 -1
- package/src/models/FlightInfo.ts +6 -0
- package/src/plugin-contract/interfaces/IEventListener.ts +10 -0
- package/src/plugin-contract/system-api/aircraft-api/IAircraftApi.ts +3 -0
- package/src/plugin-contract/system-api/selected-aircraft-api/ISelectedAircraftApi.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -94,5 +94,6 @@ import { TelemetryHeader } from "./models/TelemetryHeader";
|
|
|
94
94
|
import { FlightEventMessage } from "./models/FlightEventMessage";
|
|
95
95
|
import { FlightEventMessageInput } from "./models/FlightEventMessageInput";
|
|
96
96
|
import { FlightEventTarget } from "./models/FlightEventTarget";
|
|
97
|
-
|
|
97
|
+
import { FlightInfo } from "./models/FlightInfo";
|
|
98
|
+
export type { IPlugin, IPluginApi, IPluginEventManager, IPluginServiceManager, IPluginUIManager, IEventListener, ISystemApi, IAircraftLocationApi, ISelectedAircraftApi, ITelemetryApi, IDataAnalyzeApi, IUnitsApi, IUserApi, IHandOverApi, IAircraftApi, AircraftConfiguration, AircraftLocation, AircraftTelemetry, AircraftWarningStatuses, AirInfo, AttitudeInfo, BatteryInfo, ClimbInfo, CommandInfo, Coordinates2D, EngineInfo, HeadingInfo, IndexedWaypoint, PluginService, MenuItem, PluginEventArgs, PluginEventCallback, PluginServiceInformation, SpeedInfo, StatusInfo, Waypoint, User, AircraftPlugin, AircraftPilotageStatus, AircraftState, AircraftStatusTopicMessage, PilotUserHealth, GCSController, UserStatusTopicSubscriptionMessage, HandOverResponseData, HandOverCommandData, AircraftIdentifier, GPSInfo, PluginTelemetryData, VtolControlInfo, VtolQuadInfo, LinkHealthStatus, AircraftMission, GeoFence, FailSafe, NavigationCommandParam, FailSafeAction, FlightInfo, Coordinates, FlightIdentifier, PluginCallback, PluginCommandResponseData, UserStatus, ICurrentUser, UIPluginCommand, IFlightEventApi, IMissionApi, IUserAuth, Mission, PilotUserStatus, TelemetryHeader, FlightEventMessage, FlightEventMessageInput };
|
|
98
99
|
export { SensorStatus, CommandTypeEnum, CommandSourceEnum, GPSCorrectionStatusEnum, UnitTypeEnum, GPSFixStatusEnum, PayloadRetractStatusEnum, TravelStatusEnum, UnitSystemEnum, WarningStatusEnum, PilotageStateEnum, UserTypeEnum, AircraftHealthEnum, HandOverCommandType, IndicatorStatusEnum, LogLevel, FailSafeTypeEnum, PluginNames, PluginServiceNames, PilotageStatus, PluginData, ClientType, IPluginDataAnalysis, FlightEventTarget };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AircraftPlugin } from "./AircraftPlugin";
|
|
1
2
|
export interface AircraftConfiguration {
|
|
2
3
|
aircraftType: string;
|
|
3
4
|
minimumECT: number;
|
|
@@ -53,4 +54,8 @@ export interface AircraftConfiguration {
|
|
|
53
54
|
vtolSpeedUpAltitudeAddOn: number;
|
|
54
55
|
vtolTransitionAltitude: number;
|
|
55
56
|
customParameters: Map<string, any>;
|
|
57
|
+
mcVersion: string;
|
|
58
|
+
autopilotVersion: string;
|
|
59
|
+
installedPlugins: AircraftPlugin[];
|
|
60
|
+
notInstalledPlugins: AircraftPlugin[];
|
|
56
61
|
}
|
|
@@ -56,6 +56,11 @@ export interface IEventListener {
|
|
|
56
56
|
* Triggered when the active aircraft changes.
|
|
57
57
|
*/
|
|
58
58
|
onActiveAircraftChanged(callback: any): void;
|
|
59
|
+
onFlightIdChanged(callback: any): void;
|
|
60
|
+
/**
|
|
61
|
+
* Triggered when aircraft parameters change.
|
|
62
|
+
*/
|
|
63
|
+
onAircraftParametersChanged(callback: any): void;
|
|
59
64
|
/**
|
|
60
65
|
* TODO: not used
|
|
61
66
|
*/
|
|
@@ -119,4 +124,6 @@ export interface IEventListener {
|
|
|
119
124
|
removeHandoverPilotMessage(callback: any): void;
|
|
120
125
|
removeUnitTypeChanged(callback: any): void;
|
|
121
126
|
removeInsertFlightEvent(callback: any): void;
|
|
127
|
+
removeAircraftParametersChanged(callback: any): void;
|
|
128
|
+
removeFlightIdChanged(callback: any): void;
|
|
122
129
|
}
|
|
@@ -6,6 +6,7 @@ import { CommandTypeEnum } from "../../../models/enums/CommandTypeEnum";
|
|
|
6
6
|
import { AircraftPlugin } from "../../../models/AircraftPlugin";
|
|
7
7
|
import { PluginCommandResponseData } from "../../../models/PluginCommandResponseData";
|
|
8
8
|
import { PluginData } from "../../../models/PluginData";
|
|
9
|
+
import { FlightInfo } from "../../../models/FlightInfo";
|
|
9
10
|
export interface IAircraftApi {
|
|
10
11
|
/**
|
|
11
12
|
* Indicates whether the aircraft is being controlled.
|
|
@@ -63,4 +64,5 @@ export interface IAircraftApi {
|
|
|
63
64
|
* Lists the installed plugins in the mission controller.
|
|
64
65
|
*/
|
|
65
66
|
getAircraftPlugins(aircraftIdentifier: AircraftIdentifier): AircraftPlugin[];
|
|
67
|
+
getFlightInfo(aircraftIdentifier: AircraftIdentifier): FlightInfo;
|
|
66
68
|
}
|
|
@@ -4,6 +4,7 @@ import { AircraftLocation } from "../../../models/AircraftLocation";
|
|
|
4
4
|
import { AircraftIdentifier } from "../../../models/AircraftIdentifier";
|
|
5
5
|
import { CommandTypeEnum } from "../../../models/enums/CommandTypeEnum";
|
|
6
6
|
import { PluginData } from "../../../models/PluginData";
|
|
7
|
+
import { FlightInfo } from "../../../models/FlightInfo";
|
|
7
8
|
export interface ISelectedAircraftApi {
|
|
8
9
|
/**
|
|
9
10
|
* Indicates whether the selected aircraft is being controlled.
|
|
@@ -54,4 +55,5 @@ export interface ISelectedAircraftApi {
|
|
|
54
55
|
* Returns the configuration of this plugin on the selected aircraft.
|
|
55
56
|
*/
|
|
56
57
|
getPluginConfig(): any;
|
|
58
|
+
getFlightInfo(): FlightInfo;
|
|
57
59
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -100,6 +100,7 @@ import {TelemetryHeader} from "./models/TelemetryHeader";
|
|
|
100
100
|
import {FlightEventMessage} from "./models/FlightEventMessage";
|
|
101
101
|
import {FlightEventMessageInput} from "./models/FlightEventMessageInput";
|
|
102
102
|
import {FlightEventTarget} from "./models/FlightEventTarget";
|
|
103
|
+
import { FlightInfo } from "./models/FlightInfo";
|
|
103
104
|
|
|
104
105
|
export type {
|
|
105
106
|
IPlugin,
|
|
@@ -159,6 +160,7 @@ export type {
|
|
|
159
160
|
FailSafe,
|
|
160
161
|
NavigationCommandParam,
|
|
161
162
|
FailSafeAction,
|
|
163
|
+
FlightInfo,
|
|
162
164
|
Coordinates,
|
|
163
165
|
FlightIdentifier,
|
|
164
166
|
PluginCallback,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {AircraftPlugin} from "./AircraftPlugin";
|
|
2
|
+
|
|
1
3
|
export interface AircraftConfiguration {
|
|
2
4
|
aircraftType: string
|
|
3
5
|
minimumECT: number
|
|
@@ -52,5 +54,9 @@ export interface AircraftConfiguration {
|
|
|
52
54
|
vtolLandingDescendAngle: number
|
|
53
55
|
vtolSpeedUpAltitudeAddOn: number
|
|
54
56
|
vtolTransitionAltitude: number
|
|
55
|
-
customParameters: Map<string, any
|
|
57
|
+
customParameters: Map<string, any>,
|
|
58
|
+
mcVersion: string,
|
|
59
|
+
autopilotVersion: string,
|
|
60
|
+
installedPlugins: AircraftPlugin[],
|
|
61
|
+
notInstalledPlugins: AircraftPlugin[]
|
|
56
62
|
}
|
|
@@ -16,6 +16,8 @@ export interface IEventListener {
|
|
|
16
16
|
*/
|
|
17
17
|
onAircraftPilotChanged(callback: any): void;
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
|
|
19
21
|
/**
|
|
20
22
|
* Triggered when a handover request is received.
|
|
21
23
|
*/
|
|
@@ -70,6 +72,12 @@ export interface IEventListener {
|
|
|
70
72
|
* Triggered when the active aircraft changes.
|
|
71
73
|
*/
|
|
72
74
|
onActiveAircraftChanged(callback: any): void;
|
|
75
|
+
onFlightIdChanged(callback: any): void;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Triggered when aircraft parameters change.
|
|
79
|
+
*/
|
|
80
|
+
onAircraftParametersChanged(callback: any): void;
|
|
73
81
|
|
|
74
82
|
/**
|
|
75
83
|
* TODO: not used
|
|
@@ -144,4 +152,6 @@ export interface IEventListener {
|
|
|
144
152
|
removeHandoverPilotMessage(callback: any): void;
|
|
145
153
|
removeUnitTypeChanged(callback: any): void;
|
|
146
154
|
removeInsertFlightEvent(callback: any): void
|
|
155
|
+
removeAircraftParametersChanged(callback: any): void;
|
|
156
|
+
removeFlightIdChanged(callback: any): void;
|
|
147
157
|
}
|
|
@@ -6,6 +6,7 @@ import {CommandTypeEnum} from "../../../models/enums/CommandTypeEnum";
|
|
|
6
6
|
import { AircraftPlugin } from "../../../models/AircraftPlugin";
|
|
7
7
|
import {PluginCommandResponseData} from "../../../models/PluginCommandResponseData";
|
|
8
8
|
import {PluginData} from "../../../models/PluginData";
|
|
9
|
+
import {FlightInfo} from "../../../models/FlightInfo";
|
|
9
10
|
|
|
10
11
|
export interface IAircraftApi {
|
|
11
12
|
/**
|
|
@@ -77,4 +78,6 @@ export interface IAircraftApi {
|
|
|
77
78
|
* Lists the installed plugins in the mission controller.
|
|
78
79
|
*/
|
|
79
80
|
getAircraftPlugins(aircraftIdentifier: AircraftIdentifier): AircraftPlugin[];
|
|
81
|
+
|
|
82
|
+
getFlightInfo(aircraftIdentifier: AircraftIdentifier): FlightInfo;
|
|
80
83
|
}
|
|
@@ -4,6 +4,7 @@ import {AircraftLocation} from "../../../models/AircraftLocation";
|
|
|
4
4
|
import {AircraftIdentifier} from "../../../models/AircraftIdentifier";
|
|
5
5
|
import {CommandTypeEnum} from "../../../models/enums/CommandTypeEnum";
|
|
6
6
|
import {PluginData} from "../../../models/PluginData";
|
|
7
|
+
import {FlightInfo} from "../../../models/FlightInfo";
|
|
7
8
|
|
|
8
9
|
export interface ISelectedAircraftApi {
|
|
9
10
|
/**
|
|
@@ -66,5 +67,6 @@ export interface ISelectedAircraftApi {
|
|
|
66
67
|
* Returns the configuration of this plugin on the selected aircraft.
|
|
67
68
|
*/
|
|
68
69
|
getPluginConfig(): any;
|
|
70
|
+
getFlightInfo(): FlightInfo;
|
|
69
71
|
}
|
|
70
72
|
|