@flightpath/flightpath 0.0.2 → 0.0.3
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/README.md
CHANGED
|
@@ -64,14 +64,13 @@ go mod tidy
|
|
|
64
64
|
|
|
65
65
|
### Run with a PX4 SITL
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
# 1. Start a PX4 SITL
|
|
69
|
-
See [PX4 SITL Setup](docs/px4-sitl-setup.md)
|
|
67
|
+
Start a PX4 SITL by following the instructions in [PX4 SITL Setup](docs/px4-sitl-setup.md).
|
|
70
68
|
|
|
71
|
-
|
|
69
|
+
```bash
|
|
70
|
+
# 1. Run server
|
|
72
71
|
go run cmd/server/main.go
|
|
73
72
|
|
|
74
|
-
#
|
|
73
|
+
# 2. Monitor messages from the SITL
|
|
75
74
|
go run examples/monitor_heartbeat_flightpath/main.go
|
|
76
75
|
```
|
|
77
76
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=.js"
|
|
2
|
-
// @generated from file flightpath/
|
|
2
|
+
// @generated from file flightpath/gps_raw_int.proto (package flightpath, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -7,10 +7,10 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf
|
|
|
7
7
|
import type { Message } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Describes the file flightpath/
|
|
10
|
+
* Describes the file flightpath/gps_raw_int.proto.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
13
|
-
fileDesc("
|
|
12
|
+
export const file_flightpath_gps_raw_int: GenFile = /*@__PURE__*/
|
|
13
|
+
fileDesc("ChxmbGlnaHRwYXRoL2dwc19yYXdfaW50LnByb3RvEgpmbG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pYmVSYXdHcHNSZXF1ZXN0GiMuZmxpZ2h0cGF0aC5TdWJzY3JpYmVSYXdHcHNSZXNwb25zZTABQmgKDmNvbS5mbGlnaHRwYXRoQg5HcHNSYXdJbnRQcm90b1ABogIDRlhYqgIKRmxpZ2h0cGF0aMoCCkZsaWdodHBhdGjiAhZGbGlnaHRwYXRoXEdQQk1ldGFkYXRh6gIKRmxpZ2h0cGF0aGIGcHJvdG8z");
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* SubscribeRawGpsRequest is the request message for SubscribeRawGps
|
|
@@ -25,7 +25,7 @@ export type SubscribeRawGpsRequest = Message<"flightpath.SubscribeRawGpsRequest"
|
|
|
25
25
|
* Use `create(SubscribeRawGpsRequestSchema)` to create a new message.
|
|
26
26
|
*/
|
|
27
27
|
export const SubscribeRawGpsRequestSchema: GenMessage<SubscribeRawGpsRequest> = /*@__PURE__*/
|
|
28
|
-
messageDesc(
|
|
28
|
+
messageDesc(file_flightpath_gps_raw_int, 0);
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* SubscribeRawGpsResponse contains GPS_RAW_INT message data
|
|
@@ -67,7 +67,7 @@ export type SubscribeRawGpsResponse = Message<"flightpath.SubscribeRawGpsRespons
|
|
|
67
67
|
* Use `create(SubscribeRawGpsResponseSchema)` to create a new message.
|
|
68
68
|
*/
|
|
69
69
|
export const SubscribeRawGpsResponseSchema: GenMessage<SubscribeRawGpsResponse> = /*@__PURE__*/
|
|
70
|
-
messageDesc(
|
|
70
|
+
messageDesc(file_flightpath_gps_raw_int, 1);
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* GpsRawInt represents the GPS_RAW_INT MAVLink message
|
|
@@ -195,7 +195,7 @@ export type GpsRawInt = Message<"flightpath.GpsRawInt"> & {
|
|
|
195
195
|
* Use `create(GpsRawIntSchema)` to create a new message.
|
|
196
196
|
*/
|
|
197
197
|
export const GpsRawIntSchema: GenMessage<GpsRawInt> = /*@__PURE__*/
|
|
198
|
-
messageDesc(
|
|
198
|
+
messageDesc(file_flightpath_gps_raw_int, 2);
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* GpsFixType represents GPS fix types from MAVLink GPS_FIX_TYPE enum
|
|
@@ -259,18 +259,18 @@ export enum GpsFixType {
|
|
|
259
259
|
* Describes the enum flightpath.GpsFixType.
|
|
260
260
|
*/
|
|
261
261
|
export const GpsFixTypeSchema: GenEnum<GpsFixType> = /*@__PURE__*/
|
|
262
|
-
enumDesc(
|
|
262
|
+
enumDesc(file_flightpath_gps_raw_int, 0);
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
|
-
*
|
|
265
|
+
* GpsRawIntService handles GPS_RAW_INT messages from the drone
|
|
266
266
|
*
|
|
267
|
-
* @generated from service flightpath.
|
|
267
|
+
* @generated from service flightpath.GpsRawIntService
|
|
268
268
|
*/
|
|
269
|
-
export const
|
|
269
|
+
export const GpsRawIntService: GenService<{
|
|
270
270
|
/**
|
|
271
271
|
* Subscribe to GPS_RAW_INT messages from the drone
|
|
272
272
|
*
|
|
273
|
-
* @generated from rpc flightpath.
|
|
273
|
+
* @generated from rpc flightpath.GpsRawIntService.SubscribeRawGps
|
|
274
274
|
*/
|
|
275
275
|
subscribeRawGps: {
|
|
276
276
|
methodKind: "server_streaming";
|
|
@@ -278,5 +278,5 @@ export const TelemetryService: GenService<{
|
|
|
278
278
|
output: typeof SubscribeRawGpsResponseSchema;
|
|
279
279
|
},
|
|
280
280
|
}> = /*@__PURE__*/
|
|
281
|
-
serviceDesc(
|
|
281
|
+
serviceDesc(file_flightpath_gps_raw_int, 0);
|
|
282
282
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=.js"
|
|
2
|
-
// @generated from file flightpath/
|
|
2
|
+
// @generated from file flightpath/heartbeat.proto (package flightpath, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
5
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -7,10 +7,10 @@ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf
|
|
|
7
7
|
import type { Message } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Describes the file flightpath/
|
|
10
|
+
* Describes the file flightpath/heartbeat.proto.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
13
|
-
fileDesc("
|
|
12
|
+
export const file_flightpath_heartbeat: GenFile = /*@__PURE__*/
|
|
13
|
+
fileDesc("ChpmbGlnaHRwYXRoL2hlYXJ0YmVhdC5wcm90bxIKZmxpZ2h0cGF0aCIbChlTdWJzY3JpYmVIZWFydGJlYXRSZXF1ZXN0IoUBChpTdWJzY3JpYmVIZWFydGJlYXRSZXNwb25zZRIUCgx0aW1lc3RhbXBfbXMYASABKAMSEQoJc3lzdGVtX2lkGAIgASgNEhQKDGNvbXBvbmVudF9pZBgDIAEoDRIoCgloZWFydGJlYXQYBCABKAsyFS5mbGlnaHRwYXRoLkhlYXJ0YmVhdCL3AQoJSGVhcnRiZWF0EiEKBHR5cGUYASABKA4yEy5mbGlnaHRwYXRoLk1hdlR5cGUSKwoJYXV0b3BpbG90GAIgASgOMhguZmxpZ2h0cGF0aC5NYXZBdXRvcGlsb3QSJwoJYmFzZV9tb2RlGAMgASgLMhQuZmxpZ2h0cGF0aC5CYXNlTW9kZRIrCgtjdXN0b21fbW9kZRgEIAEoCzIWLmZsaWdodHBhdGguQ3VzdG9tTW9kZRIrCg1zeXN0ZW1fc3RhdHVzGAUgASgOMhQuZmxpZ2h0cGF0aC5NYXZTdGF0ZRIXCg9tYXZsaW5rX3ZlcnNpb24YBiABKA0izwEKCEJhc2VNb2RlEhsKE2N1c3RvbV9tb2RlX2VuYWJsZWQYASABKAgSFAoMdGVzdF9lbmFibGVkGAIgASgIEhQKDGF1dG9fZW5hYmxlZBgDIAEoCBIWCg5ndWlkZWRfZW5hY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REVfRVhURVJOQUw4EBQyeQoQSGVhcnRiZWF0U2VydmljZRJlChJTdWJzY3JpYmVIZWFydGJlYXQSJS5mbGlnaHRwYXRoLlN1YnNjcmliZUhlYXJ0YmVhdFJlcXVlc3QaJi5mbGlnaHRwYXRoLlN1YnNjcmliZUhlYXJ0YmVhdFJlc3BvbnNlMAFCaAoOY29tLmZsaWdodHBhdGhCDkhlYXJ0YmVhdFByb3RvUAGiAgNGWFiqAgpGbGlnaHRwYXRoygIKRmxpZ2h0cGF0aOICFkZsaWdodHBhdGhcR1BCTWV0YWRhdGHqAgpGbGlnaHRwYXRoYgZwcm90bzM");
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @generated from message flightpath.SubscribeHeartbeatRequest
|
|
@@ -23,7 +23,7 @@ export type SubscribeHeartbeatRequest = Message<"flightpath.SubscribeHeartbeatRe
|
|
|
23
23
|
* Use `create(SubscribeHeartbeatRequestSchema)` to create a new message.
|
|
24
24
|
*/
|
|
25
25
|
export const SubscribeHeartbeatRequestSchema: GenMessage<SubscribeHeartbeatRequest> = /*@__PURE__*/
|
|
26
|
-
messageDesc(
|
|
26
|
+
messageDesc(file_flightpath_heartbeat, 0);
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* @generated from message flightpath.SubscribeHeartbeatResponse
|
|
@@ -63,7 +63,7 @@ export type SubscribeHeartbeatResponse = Message<"flightpath.SubscribeHeartbeatR
|
|
|
63
63
|
* Use `create(SubscribeHeartbeatResponseSchema)` to create a new message.
|
|
64
64
|
*/
|
|
65
65
|
export const SubscribeHeartbeatResponseSchema: GenMessage<SubscribeHeartbeatResponse> = /*@__PURE__*/
|
|
66
|
-
messageDesc(
|
|
66
|
+
messageDesc(file_flightpath_heartbeat, 1);
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* @generated from message flightpath.Heartbeat
|
|
@@ -117,7 +117,7 @@ export type Heartbeat = Message<"flightpath.Heartbeat"> & {
|
|
|
117
117
|
* Use `create(HeartbeatSchema)` to create a new message.
|
|
118
118
|
*/
|
|
119
119
|
export const HeartbeatSchema: GenMessage<Heartbeat> = /*@__PURE__*/
|
|
120
|
-
messageDesc(
|
|
120
|
+
messageDesc(file_flightpath_heartbeat, 2);
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* BaseMode represents the MAV_MODE_FLAG bitfield as structured boolean flags.
|
|
@@ -189,7 +189,7 @@ export type BaseMode = Message<"flightpath.BaseMode"> & {
|
|
|
189
189
|
* Use `create(BaseModeSchema)` to create a new message.
|
|
190
190
|
*/
|
|
191
191
|
export const BaseModeSchema: GenMessage<BaseMode> = /*@__PURE__*/
|
|
192
|
-
messageDesc(
|
|
192
|
+
messageDesc(file_flightpath_heartbeat, 3);
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* CustomMode represents flight mode as platform-agnostic abstractions
|
|
@@ -217,7 +217,7 @@ export type CustomMode = Message<"flightpath.CustomMode"> & {
|
|
|
217
217
|
* Use `create(CustomModeSchema)` to create a new message.
|
|
218
218
|
*/
|
|
219
219
|
export const CustomModeSchema: GenMessage<CustomMode> = /*@__PURE__*/
|
|
220
|
-
messageDesc(
|
|
220
|
+
messageDesc(file_flightpath_heartbeat, 4);
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* MavType represents vehicle types from MAVLink MAV_TYPE enum
|
|
@@ -480,7 +480,7 @@ export enum MavType {
|
|
|
480
480
|
* Describes the enum flightpath.MavType.
|
|
481
481
|
*/
|
|
482
482
|
export const MavTypeSchema: GenEnum<MavType> = /*@__PURE__*/
|
|
483
|
-
enumDesc(
|
|
483
|
+
enumDesc(file_flightpath_heartbeat, 0);
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* MavAutopilot represents autopilot types from MAVLink MAV_AUTOPILOT enum
|
|
@@ -598,7 +598,7 @@ export enum MavAutopilot {
|
|
|
598
598
|
* Describes the enum flightpath.MavAutopilot.
|
|
599
599
|
*/
|
|
600
600
|
export const MavAutopilotSchema: GenEnum<MavAutopilot> = /*@__PURE__*/
|
|
601
|
-
enumDesc(
|
|
601
|
+
enumDesc(file_flightpath_heartbeat, 1);
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
604
|
* MavState represents system states from MAVLink MAV_STATE enum
|
|
@@ -656,7 +656,7 @@ export enum MavState {
|
|
|
656
656
|
* Describes the enum flightpath.MavState.
|
|
657
657
|
*/
|
|
658
658
|
export const MavStateSchema: GenEnum<MavState> = /*@__PURE__*/
|
|
659
|
-
enumDesc(
|
|
659
|
+
enumDesc(file_flightpath_heartbeat, 2);
|
|
660
660
|
|
|
661
661
|
/**
|
|
662
662
|
* MainMode represents main flight modes (platform-agnostic abstraction based on PX4)
|
|
@@ -729,7 +729,7 @@ export enum MainMode {
|
|
|
729
729
|
* Describes the enum flightpath.MainMode.
|
|
730
730
|
*/
|
|
731
731
|
export const MainModeSchema: GenEnum<MainMode> = /*@__PURE__*/
|
|
732
|
-
enumDesc(
|
|
732
|
+
enumDesc(file_flightpath_heartbeat, 3);
|
|
733
733
|
|
|
734
734
|
/**
|
|
735
735
|
* SubMode represents sub flight modes (platform-agnostic abstraction based on PX4)
|
|
@@ -853,18 +853,18 @@ export enum SubMode {
|
|
|
853
853
|
* Describes the enum flightpath.SubMode.
|
|
854
854
|
*/
|
|
855
855
|
export const SubModeSchema: GenEnum<SubMode> = /*@__PURE__*/
|
|
856
|
-
enumDesc(
|
|
856
|
+
enumDesc(file_flightpath_heartbeat, 4);
|
|
857
857
|
|
|
858
858
|
/**
|
|
859
|
-
*
|
|
859
|
+
* HeartbeatService handles HEARTBEAT messages from the drone
|
|
860
860
|
*
|
|
861
|
-
* @generated from service flightpath.
|
|
861
|
+
* @generated from service flightpath.HeartbeatService
|
|
862
862
|
*/
|
|
863
|
-
export const
|
|
863
|
+
export const HeartbeatService: GenService<{
|
|
864
864
|
/**
|
|
865
865
|
* Subscribe to HEARTBEAT messages from the drone
|
|
866
866
|
*
|
|
867
|
-
* @generated from rpc flightpath.
|
|
867
|
+
* @generated from rpc flightpath.HeartbeatService.SubscribeHeartbeat
|
|
868
868
|
*/
|
|
869
869
|
subscribeHeartbeat: {
|
|
870
870
|
methodKind: "server_streaming";
|
|
@@ -872,5 +872,5 @@ export const ConnectionService: GenService<{
|
|
|
872
872
|
output: typeof SubscribeHeartbeatResponseSchema;
|
|
873
873
|
},
|
|
874
874
|
}> = /*@__PURE__*/
|
|
875
|
-
serviceDesc(
|
|
875
|
+
serviceDesc(file_flightpath_heartbeat, 0);
|
|
876
876
|
|