@flightpath/flightpath 0.0.8 → 0.0.9
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.
|
@@ -2,116 +2,224 @@
|
|
|
2
2
|
// @generated from file flightpath/mavlink_service.proto (package flightpath, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
-
import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import type {
|
|
5
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { ExtendedSysState } from "./extended_sys_state_pb.js";
|
|
8
8
|
import { file_flightpath_extended_sys_state } from "./extended_sys_state_pb.js";
|
|
9
|
-
import type {
|
|
9
|
+
import type { GlobalPositionInt } from "./global_position_int_pb.js";
|
|
10
10
|
import { file_flightpath_global_position_int } from "./global_position_int_pb.js";
|
|
11
|
-
import type {
|
|
11
|
+
import type { GpsRawInt } from "./gps_raw_int_pb.js";
|
|
12
12
|
import { file_flightpath_gps_raw_int } from "./gps_raw_int_pb.js";
|
|
13
|
-
import type {
|
|
13
|
+
import type { Heartbeat } from "./heartbeat_pb.js";
|
|
14
14
|
import { file_flightpath_heartbeat } from "./heartbeat_pb.js";
|
|
15
|
-
import type {
|
|
15
|
+
import type { RadioStatus } from "./radio_status_pb.js";
|
|
16
16
|
import { file_flightpath_radio_status } from "./radio_status_pb.js";
|
|
17
|
-
import type {
|
|
17
|
+
import type { StatusText } from "./statustext_pb.js";
|
|
18
18
|
import { file_flightpath_statustext } from "./statustext_pb.js";
|
|
19
|
-
import type {
|
|
19
|
+
import type { SysStatus } from "./sys_status_pb.js";
|
|
20
20
|
import { file_flightpath_sys_status } from "./sys_status_pb.js";
|
|
21
|
-
import type {
|
|
21
|
+
import type { VfrHud } from "./vfr_hud_pb.js";
|
|
22
22
|
import { file_flightpath_vfr_hud } from "./vfr_hud_pb.js";
|
|
23
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* Describes the file flightpath/mavlink_service.proto.
|
|
26
27
|
*/
|
|
27
28
|
export const file_flightpath_mavlink_service: GenFile = /*@__PURE__*/
|
|
28
|
-
fileDesc("
|
|
29
|
+
fileDesc("CiBmbGlnaHRwYXRoL21hdmxpbmtfc2VydmljZS5wcm90bxIKZmxpZ2h0cGF0aCJRChhTdWJzY3JpYmVNZXNzYWdlc1JlcXVlc3QSNQoNbWVzc2FnZV90eXBlcxgBIAMoDjIeLmZsaWdodHBhdGguTWF2bGlua01lc3NhZ2VUeXBlIqMEChlTdWJzY3JpYmVNZXNzYWdlc1Jlc3BvbnNlEhQKDHRpbWVzdGFtcF9tcxgBIAEoAxIRCglzeXN0ZW1faWQYAiABKA0SFAoMY29tcG9uZW50X2lkGAMgASgNEjQKDG1lc3NhZ2VfdHlwZRgEIAEoDjIeLmZsaWdodHBhdGguTWF2bGlua01lc3NhZ2VUeXBlEioKCWhlYXJ0YmVhdBgFIAEoCzIVLmZsaWdodHBhdGguSGVhcnRiZWF0SAASKwoKc3lzX3N0YXR1cxgGIAEoCzIVLmZsaWdodHBhdGguU3lzU3RhdHVzSAASLAoLZ3BzX3Jhd19pbnQYByABKAsyFS5mbGlnaHRwYXRoLkdwc1Jhd0ludEgAEjwKE2dsb2JhbF9wb3NpdGlvbl9pbnQYCCABKAsyHS5mbGlnaHRwYXRoLkdsb2JhbFBvc2l0aW9uSW50SAASJQoHdmZyX2h1ZBgJIAEoCzISLmZsaWdodHBhdGguVmZySHVkSAASLwoMcmFkaW9fc3RhdHVzGAogASgLMhcuZmxpZ2h0cGF0aC5SYWRpb1N0YXR1c0gAEjoKEmV4dGVuZGVkX3N5c19zdGF0ZRgLIAEoCzIcLmZsaWdodHBhdGguRXh0ZW5kZWRTeXNTdGF0ZUgAEi0KC3N0YXR1c190ZXh0GAwgASgLMhYuZmxpZ2h0cGF0aC5TdGF0dXNUZXh0SABCCQoHbWVzc2FnZSryAgoSTWF2bGlua01lc3NhZ2VUeXBlEiQKIE1BVkxJTktfTUVTU0FHRV9UWVBFX1VOU1BFQ0lGSUVEEAASIgoeTUFWTElOS19NRVNTQUdFX1RZUEVfSEVBUlRCRUFUEAESIwofTUFWTElOS19NRVNTQUdFX1RZUEVfU1lTX1NUQVRVUxACEiQKIE1BVkxJTktfTUVTU0FHRV9UWVBFX0dQU19SQVdfSU5UEAMSLAooTUFWTElOS19NRVNTQUdFX1RZUEVfR0xPQkFMX1BPU0lUSU9OX0lOVBAEEiAKHE1BVkxJTktfTUVTU0FHRV9UWVBFX1ZGUl9IVUQQBRIlCiFNQVZMSU5LX01FU1NBR0VfVFlQRV9SQURJT19TVEFUVVMQBhIrCidNQVZMSU5LX01FU1NBR0VfVFlQRV9FWFRFTkRFRF9TWVNfU1RBVEUQBxIjCh9NQVZMSU5LX01FU1NBR0VfVFlQRV9TVEFUVVNURVhUEAgydAoOTUFWTGlua1NlcnZpY2USYgoRU3Vic2NyaWJlTWVzc2FnZXMSJC5mbGlnaHRwYXRoLlN1YnNjcmliZU1lc3NhZ2VzUmVxdWVzdBolLmZsaWdodHBhdGguU3Vic2NyaWJlTWVzc2FnZXNSZXNwb25zZTABQm0KDmNvbS5mbGlnaHRwYXRoQhNNYXZsaW5rU2VydmljZVByb3RvUAGiAgNGWFiqAgpGbGlnaHRwYXRoygIKRmxpZ2h0cGF0aOICFkZsaWdodHBhdGhcR1BCTWV0YWRhdGHqAgpGbGlnaHRwYXRoYgZwcm90bzM", [file_flightpath_extended_sys_state, file_flightpath_global_position_int, file_flightpath_gps_raw_int, file_flightpath_heartbeat, file_flightpath_radio_status, file_flightpath_statustext, file_flightpath_sys_status, file_flightpath_vfr_hud]);
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
+
* Subscribe to all messages or a filtered subset
|
|
32
33
|
*
|
|
33
|
-
* @generated from
|
|
34
|
+
* @generated from message flightpath.SubscribeMessagesRequest
|
|
34
35
|
*/
|
|
35
|
-
export
|
|
36
|
+
export type SubscribeMessagesRequest = Message<"flightpath.SubscribeMessagesRequest"> & {
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
+
* Optional: if empty, subscribe to all message types
|
|
39
|
+
* If specified, only these message types will be sent
|
|
38
40
|
*
|
|
39
|
-
* @generated from
|
|
41
|
+
* @generated from field: repeated flightpath.MavlinkMessageType message_types = 1;
|
|
40
42
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
messageTypes: MavlinkMessageType[];
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Describes the message flightpath.SubscribeMessagesRequest.
|
|
48
|
+
* Use `create(SubscribeMessagesRequestSchema)` to create a new message.
|
|
49
|
+
*/
|
|
50
|
+
export const SubscribeMessagesRequestSchema: GenMessage<SubscribeMessagesRequest> = /*@__PURE__*/
|
|
51
|
+
messageDesc(file_flightpath_mavlink_service, 0);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Contains any MAVLink message type specified by message_type
|
|
55
|
+
*
|
|
56
|
+
* @generated from message flightpath.SubscribeMessagesResponse
|
|
57
|
+
*/
|
|
58
|
+
export type SubscribeMessagesResponse = Message<"flightpath.SubscribeMessagesResponse"> & {
|
|
46
59
|
/**
|
|
47
|
-
*
|
|
60
|
+
* Timestamp when this message was captured (milliseconds since Unix epoch)
|
|
48
61
|
*
|
|
49
|
-
* @generated from
|
|
62
|
+
* @generated from field: int64 timestamp_ms = 1;
|
|
50
63
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
input: typeof SubscribeSysStatusRequestSchema;
|
|
54
|
-
output: typeof SubscribeSysStatusResponseSchema;
|
|
55
|
-
},
|
|
64
|
+
timestampMs: bigint;
|
|
65
|
+
|
|
56
66
|
/**
|
|
57
|
-
*
|
|
67
|
+
* System ID of the component sending the message
|
|
58
68
|
*
|
|
59
|
-
* @generated from
|
|
69
|
+
* @generated from field: uint32 system_id = 2;
|
|
60
70
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
input: typeof SubscribeGpsRawIntRequestSchema;
|
|
64
|
-
output: typeof SubscribeGpsRawIntResponseSchema;
|
|
65
|
-
},
|
|
71
|
+
systemId: number;
|
|
72
|
+
|
|
66
73
|
/**
|
|
67
|
-
*
|
|
74
|
+
* Component ID of the component sending the message
|
|
68
75
|
*
|
|
69
|
-
* @generated from
|
|
76
|
+
* @generated from field: uint32 component_id = 3;
|
|
70
77
|
*/
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
input: typeof SubscribeGlobalPositionIntRequestSchema;
|
|
74
|
-
output: typeof SubscribeGlobalPositionIntResponseSchema;
|
|
75
|
-
},
|
|
78
|
+
componentId: number;
|
|
79
|
+
|
|
76
80
|
/**
|
|
77
|
-
*
|
|
81
|
+
* Message type identifier
|
|
78
82
|
*
|
|
79
|
-
* @generated from
|
|
83
|
+
* @generated from field: flightpath.MavlinkMessageType message_type = 4;
|
|
80
84
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
input: typeof SubscribeVfrHudRequestSchema;
|
|
84
|
-
output: typeof SubscribeVfrHudResponseSchema;
|
|
85
|
-
},
|
|
85
|
+
messageType: MavlinkMessageType;
|
|
86
|
+
|
|
86
87
|
/**
|
|
87
|
-
*
|
|
88
|
+
* The actual message data - only one field will be set
|
|
88
89
|
*
|
|
89
|
-
* @generated from
|
|
90
|
+
* @generated from oneof flightpath.SubscribeMessagesResponse.message
|
|
90
91
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
message: {
|
|
93
|
+
/**
|
|
94
|
+
* @generated from field: flightpath.Heartbeat heartbeat = 5;
|
|
95
|
+
*/
|
|
96
|
+
value: Heartbeat;
|
|
97
|
+
case: "heartbeat";
|
|
98
|
+
} | {
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: flightpath.SysStatus sys_status = 6;
|
|
101
|
+
*/
|
|
102
|
+
value: SysStatus;
|
|
103
|
+
case: "sysStatus";
|
|
104
|
+
} | {
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: flightpath.GpsRawInt gps_raw_int = 7;
|
|
107
|
+
*/
|
|
108
|
+
value: GpsRawInt;
|
|
109
|
+
case: "gpsRawInt";
|
|
110
|
+
} | {
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: flightpath.GlobalPositionInt global_position_int = 8;
|
|
113
|
+
*/
|
|
114
|
+
value: GlobalPositionInt;
|
|
115
|
+
case: "globalPositionInt";
|
|
116
|
+
} | {
|
|
117
|
+
/**
|
|
118
|
+
* @generated from field: flightpath.VfrHud vfr_hud = 9;
|
|
119
|
+
*/
|
|
120
|
+
value: VfrHud;
|
|
121
|
+
case: "vfrHud";
|
|
122
|
+
} | {
|
|
123
|
+
/**
|
|
124
|
+
* @generated from field: flightpath.RadioStatus radio_status = 10;
|
|
125
|
+
*/
|
|
126
|
+
value: RadioStatus;
|
|
127
|
+
case: "radioStatus";
|
|
128
|
+
} | {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: flightpath.ExtendedSysState extended_sys_state = 11;
|
|
131
|
+
*/
|
|
132
|
+
value: ExtendedSysState;
|
|
133
|
+
case: "extendedSysState";
|
|
134
|
+
} | {
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: flightpath.StatusText status_text = 12;
|
|
137
|
+
*/
|
|
138
|
+
value: StatusText;
|
|
139
|
+
case: "statusText";
|
|
140
|
+
} | { case: undefined; value?: undefined };
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Describes the message flightpath.SubscribeMessagesResponse.
|
|
145
|
+
* Use `create(SubscribeMessagesResponseSchema)` to create a new message.
|
|
146
|
+
*/
|
|
147
|
+
export const SubscribeMessagesResponseSchema: GenMessage<SubscribeMessagesResponse> = /*@__PURE__*/
|
|
148
|
+
messageDesc(file_flightpath_mavlink_service, 1);
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* MavlinkMessageType identifies the type of MAVLink message
|
|
152
|
+
*
|
|
153
|
+
* @generated from enum flightpath.MavlinkMessageType
|
|
154
|
+
*/
|
|
155
|
+
export enum MavlinkMessageType {
|
|
96
156
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* @generated from rpc flightpath.MAVLinkService.SubscribeExtendedSysState
|
|
157
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_UNSPECIFIED = 0;
|
|
100
158
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
159
|
+
UNSPECIFIED = 0,
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_HEARTBEAT = 1;
|
|
163
|
+
*/
|
|
164
|
+
HEARTBEAT = 1,
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_SYS_STATUS = 2;
|
|
168
|
+
*/
|
|
169
|
+
SYS_STATUS = 2,
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_GPS_RAW_INT = 3;
|
|
173
|
+
*/
|
|
174
|
+
GPS_RAW_INT = 3,
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_GLOBAL_POSITION_INT = 4;
|
|
178
|
+
*/
|
|
179
|
+
GLOBAL_POSITION_INT = 4,
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_VFR_HUD = 5;
|
|
183
|
+
*/
|
|
184
|
+
VFR_HUD = 5,
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_RADIO_STATUS = 6;
|
|
188
|
+
*/
|
|
189
|
+
RADIO_STATUS = 6,
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_EXTENDED_SYS_STATE = 7;
|
|
193
|
+
*/
|
|
194
|
+
EXTENDED_SYS_STATE = 7,
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @generated from enum value: MAVLINK_MESSAGE_TYPE_STATUSTEXT = 8;
|
|
198
|
+
*/
|
|
199
|
+
STATUSTEXT = 8,
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Describes the enum flightpath.MavlinkMessageType.
|
|
204
|
+
*/
|
|
205
|
+
export const MavlinkMessageTypeSchema: GenEnum<MavlinkMessageType> = /*@__PURE__*/
|
|
206
|
+
enumDesc(file_flightpath_mavlink_service, 0);
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* MAVLinkService handles all MAVLink messages
|
|
210
|
+
*
|
|
211
|
+
* @generated from service flightpath.MAVLinkService
|
|
212
|
+
*/
|
|
213
|
+
export const MAVLinkService: GenService<{
|
|
106
214
|
/**
|
|
107
|
-
* Subscribe to
|
|
215
|
+
* Subscribe to all MAVLink messages (or a filtered subset)
|
|
108
216
|
*
|
|
109
|
-
* @generated from rpc flightpath.MAVLinkService.
|
|
217
|
+
* @generated from rpc flightpath.MAVLinkService.SubscribeMessages
|
|
110
218
|
*/
|
|
111
|
-
|
|
219
|
+
subscribeMessages: {
|
|
112
220
|
methodKind: "server_streaming";
|
|
113
|
-
input: typeof
|
|
114
|
-
output: typeof
|
|
221
|
+
input: typeof SubscribeMessagesRequestSchema;
|
|
222
|
+
output: typeof SubscribeMessagesResponseSchema;
|
|
115
223
|
},
|
|
116
224
|
}> = /*@__PURE__*/
|
|
117
225
|
serviceDesc(file_flightpath_mavlink_service, 0);
|