@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 { SubscribeExtendedSysStateRequestSchema, SubscribeExtendedSysStateResponseSchema } from "./extended_sys_state_pb.js";
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 { SubscribeGlobalPositionIntRequestSchema, SubscribeGlobalPositionIntResponseSchema } from "./global_position_int_pb.js";
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 { SubscribeGpsRawIntRequestSchema, SubscribeGpsRawIntResponseSchema } from "./gps_raw_int_pb.js";
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 { SubscribeHeartbeatRequestSchema, SubscribeHeartbeatResponseSchema } from "./heartbeat_pb.js";
13
+ import type { Heartbeat } from "./heartbeat_pb.js";
14
14
  import { file_flightpath_heartbeat } from "./heartbeat_pb.js";
15
- import type { SubscribeRadioStatusRequestSchema, SubscribeRadioStatusResponseSchema } from "./radio_status_pb.js";
15
+ import type { RadioStatus } from "./radio_status_pb.js";
16
16
  import { file_flightpath_radio_status } from "./radio_status_pb.js";
17
- import type { SubscribeStatusTextRequestSchema, SubscribeStatusTextResponseSchema } from "./statustext_pb.js";
17
+ import type { StatusText } from "./statustext_pb.js";
18
18
  import { file_flightpath_statustext } from "./statustext_pb.js";
19
- import type { SubscribeSysStatusRequestSchema, SubscribeSysStatusResponseSchema } from "./sys_status_pb.js";
19
+ import type { SysStatus } from "./sys_status_pb.js";
20
20
  import { file_flightpath_sys_status } from "./sys_status_pb.js";
21
- import type { SubscribeVfrHudRequestSchema, SubscribeVfrHudResponseSchema } from "./vfr_hud_pb.js";
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("CiBmbGlnaHRwYXRoL21hdmxpbmtfc2VydmljZS5wcm90bxIKZmxpZ2h0cGF0aDL1BgoOTUFWTGlua1NlcnZpY2USZQoSU3Vic2NyaWJlSGVhcnRiZWF0EiUuZmxpZ2h0cGF0aC5TdWJzY3JpYmVIZWFydGJlYXRSZXF1ZXN0GiYuZmxpZ2h0cGF0aC5TdWJzY3JpYmVIZWFydGJlYXRSZXNwb25zZTABEmUKElN1YnNjcmliZVN5c1N0YXR1cxIlLmZsaWdodHBhdGguU3Vic2NyaWJlU3lzU3RhdHVzUmVxdWVzdBomLmZsaWdodHBhdGguU3Vic2NyaWJlU3lzU3RhdHVzUmVzcG9uc2UwARJlChJTdWJzY3JpYmVHcHNSYXdJbnQSJS5mbGlnaHRwYXRoLlN1YnNjcmliZUdwc1Jhd0ludFJlcXVlc3QaJi5mbGlnaHRwYXRoLlN1YnNjcmliZUdwc1Jhd0ludFJlc3BvbnNlMAESfQoaU3Vic2NyaWJlR2xvYmFsUG9zaXRpb25JbnQSLS5mbGlnaHRwYXRoLlN1YnNjcmliZUdsb2JhbFBvc2l0aW9uSW50UmVxdWVzdBouLmZsaWdodHBhdGguU3Vic2NyaWJlR2xvYmFsUG9zaXRpb25JbnRSZXNwb25zZTABElwKD1N1YnNjcmliZVZmckh1ZBIiLmZsaWdodHBhdGguU3Vic2NyaWJlVmZySHVkUmVxdWVzdBojLmZsaWdodHBhdGguU3Vic2NyaWJlVmZySHVkUmVzcG9uc2UwARJrChRTdWJzY3JpYmVSYWRpb1N0YXR1cxInLmZsaWdodHBhdGguU3Vic2NyaWJlUmFkaW9TdGF0dXNSZXF1ZXN0GiguZmxpZ2h0cGF0aC5TdWJzY3JpYmVSYWRpb1N0YXR1c1Jlc3BvbnNlMAESegoZU3Vic2NyaWJlRXh0ZW5kZWRTeXNTdGF0ZRIsLmZsaWdodHBhdGguU3Vic2NyaWJlRXh0ZW5kZWRTeXNTdGF0ZVJlcXVlc3QaLS5mbGlnaHRwYXRoLlN1YnNjcmliZUV4dGVuZGVkU3lzU3RhdGVSZXNwb25zZTABEmgKE1N1YnNjcmliZVN0YXR1c1RleHQSJi5mbGlnaHRwYXRoLlN1YnNjcmliZVN0YXR1c1RleHRSZXF1ZXN0GicuZmxpZ2h0cGF0aC5TdWJzY3JpYmVTdGF0dXNUZXh0UmVzcG9uc2UwAUJtCg5jb20uZmxpZ2h0cGF0aEITTWF2bGlua1NlcnZpY2VQcm90b1ABogIDRlhYqgIKRmxpZ2h0cGF0aMoCCkZsaWdodHBhdGjiAhZGbGlnaHRwYXRoXEdQQk1ldGFkYXRh6gIKRmxpZ2h0cGF0aGIGcHJvdG8z", [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
+ fileDesc("CiBmbGlnaHRwYXRoL21hdmxpbmtfc2VydmljZS5wcm90bxIKZmxpZ2h0cGF0aCJRChhTdWJzY3JpYmVNZXNzYWdlc1JlcXVlc3QSNQoNbWVzc2FnZV90eXBlcxgBIAMoDjIeLmZsaWdodHBhdGguTWF2bGlua01l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UWVBFX1ZGUl9IVUQQBRIlCiFNQVZMSU5LX01FU1NBR0VfVFlQRV9SQURJT19TVEFUVVMQBhIrCidNQVZMSU5LX01FU1NBR0VfVFlQRV9FWFRFTkRFRF9TWVNfU1RBVEUQBxIjCh9NQVZMSU5LX01FU1NBR0VfVFlQRV9TVEFUVVNURVhUEAgydAoOTUFWTGlua1NlcnZpY2USYgoRU3Vic2NyaWJlTWVzc2FnZXMSJC5mbGlnaHRwYXRoLlN1YnNjcmliZU1lc3NhZ2VzUmVxdWVzdBolLmZsaWdodHBhdGguU3Vic2NyaWJlTWVzc2FnZXNSZXNwb25zZTABQm0KDmNvbS5mbGlnaHRwYXRoQhNNYXZsaW5rU2VydmljZVByb3RvUAGiAgNGWFiqAgpGbGlnaHRwYXRoygIKRmxpZ2h0cGF0aOICFkZsaWdodHBhdGhcR1BCTWV0YWRhdGHqAgpGbGlnaHRwYXRoYgZwcm90bzM", [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
- * MAVLinkService handles all MAVLink.
32
+ * Subscribe to all messages or a filtered subset
32
33
  *
33
- * @generated from service flightpath.MAVLinkService
34
+ * @generated from message flightpath.SubscribeMessagesRequest
34
35
  */
35
- export const MAVLinkService: GenService<{
36
+ export type SubscribeMessagesRequest = Message<"flightpath.SubscribeMessagesRequest"> & {
36
37
  /**
37
- * Subscribe to HEARTBEAT (0)
38
+ * Optional: if empty, subscribe to all message types
39
+ * If specified, only these message types will be sent
38
40
  *
39
- * @generated from rpc flightpath.MAVLinkService.SubscribeHeartbeat
41
+ * @generated from field: repeated flightpath.MavlinkMessageType message_types = 1;
40
42
  */
41
- subscribeHeartbeat: {
42
- methodKind: "server_streaming";
43
- input: typeof SubscribeHeartbeatRequestSchema;
44
- output: typeof SubscribeHeartbeatResponseSchema;
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
- * Subscribe to SYS_STATUS (1)
60
+ * Timestamp when this message was captured (milliseconds since Unix epoch)
48
61
  *
49
- * @generated from rpc flightpath.MAVLinkService.SubscribeSysStatus
62
+ * @generated from field: int64 timestamp_ms = 1;
50
63
  */
51
- subscribeSysStatus: {
52
- methodKind: "server_streaming";
53
- input: typeof SubscribeSysStatusRequestSchema;
54
- output: typeof SubscribeSysStatusResponseSchema;
55
- },
64
+ timestampMs: bigint;
65
+
56
66
  /**
57
- * Subscribe to GPS_RAW_INT (24)
67
+ * System ID of the component sending the message
58
68
  *
59
- * @generated from rpc flightpath.MAVLinkService.SubscribeGpsRawInt
69
+ * @generated from field: uint32 system_id = 2;
60
70
  */
61
- subscribeGpsRawInt: {
62
- methodKind: "server_streaming";
63
- input: typeof SubscribeGpsRawIntRequestSchema;
64
- output: typeof SubscribeGpsRawIntResponseSchema;
65
- },
71
+ systemId: number;
72
+
66
73
  /**
67
- * Subscribe to GLOBAL_POSITION_INT (33)
74
+ * Component ID of the component sending the message
68
75
  *
69
- * @generated from rpc flightpath.MAVLinkService.SubscribeGlobalPositionInt
76
+ * @generated from field: uint32 component_id = 3;
70
77
  */
71
- subscribeGlobalPositionInt: {
72
- methodKind: "server_streaming";
73
- input: typeof SubscribeGlobalPositionIntRequestSchema;
74
- output: typeof SubscribeGlobalPositionIntResponseSchema;
75
- },
78
+ componentId: number;
79
+
76
80
  /**
77
- * Subscribe to VFR_HUD (74)
81
+ * Message type identifier
78
82
  *
79
- * @generated from rpc flightpath.MAVLinkService.SubscribeVfrHud
83
+ * @generated from field: flightpath.MavlinkMessageType message_type = 4;
80
84
  */
81
- subscribeVfrHud: {
82
- methodKind: "server_streaming";
83
- input: typeof SubscribeVfrHudRequestSchema;
84
- output: typeof SubscribeVfrHudResponseSchema;
85
- },
85
+ messageType: MavlinkMessageType;
86
+
86
87
  /**
87
- * Subscribe to RADIO_STATUS (109)
88
+ * The actual message data - only one field will be set
88
89
  *
89
- * @generated from rpc flightpath.MAVLinkService.SubscribeRadioStatus
90
+ * @generated from oneof flightpath.SubscribeMessagesResponse.message
90
91
  */
91
- subscribeRadioStatus: {
92
- methodKind: "server_streaming";
93
- input: typeof SubscribeRadioStatusRequestSchema;
94
- output: typeof SubscribeRadioStatusResponseSchema;
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
- * Subscribe to EXTENDED_SYS_STATE (245)
98
- *
99
- * @generated from rpc flightpath.MAVLinkService.SubscribeExtendedSysState
157
+ * @generated from enum value: MAVLINK_MESSAGE_TYPE_UNSPECIFIED = 0;
100
158
  */
101
- subscribeExtendedSysState: {
102
- methodKind: "server_streaming";
103
- input: typeof SubscribeExtendedSysStateRequestSchema;
104
- output: typeof SubscribeExtendedSysStateResponseSchema;
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 STATUSTEXT (253)
215
+ * Subscribe to all MAVLink messages (or a filtered subset)
108
216
  *
109
- * @generated from rpc flightpath.MAVLinkService.SubscribeStatusText
217
+ * @generated from rpc flightpath.MAVLinkService.SubscribeMessages
110
218
  */
111
- subscribeStatusText: {
219
+ subscribeMessages: {
112
220
  methodKind: "server_streaming";
113
- input: typeof SubscribeStatusTextRequestSchema;
114
- output: typeof SubscribeStatusTextResponseSchema;
221
+ input: typeof SubscribeMessagesRequestSchema;
222
+ output: typeof SubscribeMessagesResponseSchema;
115
223
  },
116
224
  }> = /*@__PURE__*/
117
225
  serviceDesc(file_flightpath_mavlink_service, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flightpath/flightpath",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Go platform exposing a gRPC API to control a drone",
5
5
  "type": "module",
6
6
  "files": [