@flightpath/flightpath 0.0.9 → 0.0.10
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 +2 -7
- package/gen/ts/flightpath/mavlink_service_pb.ts +111 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,10 +80,7 @@ go run examples/monitor_heartbeat_flightpath/main.go
|
|
|
80
80
|
# 1. Turn on the drone
|
|
81
81
|
|
|
82
82
|
# 2. Run the server with a serial port configuration
|
|
83
|
-
|
|
84
|
-
export FLIGHTPATH_MAVLINK_SERIAL_DEVICE=/dev/cu.usbserial-D30JAXGS
|
|
85
|
-
export FLIGHTPATH_MAVLINK_SERIAL_BAUD=57600
|
|
86
|
-
go run cmd/server/main.go
|
|
83
|
+
./scripts/run-serial.sh
|
|
87
84
|
|
|
88
85
|
# 3. Monitor messages from the drone
|
|
89
86
|
go run examples/monitor_heartbeat_flightpath/main.go
|
|
@@ -95,9 +92,7 @@ go run examples/monitor_heartbeat_flightpath/main.go
|
|
|
95
92
|
# 1. Turn on the drone
|
|
96
93
|
|
|
97
94
|
# 2. Run the server with a UDP configuration
|
|
98
|
-
|
|
99
|
-
export FLIGHTPATH_MAVLINK_UDP_ADDRESS=0.0.0.0:14550
|
|
100
|
-
go run cmd/server/main.go
|
|
95
|
+
./scripts/run-udp.sh
|
|
101
96
|
|
|
102
97
|
# 3. Monitor messages from the drone
|
|
103
98
|
go run examples/monitor_heartbeat_flightpath/main.go
|
|
@@ -26,7 +26,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
26
26
|
* Describes the file flightpath/mavlink_service.proto.
|
|
27
27
|
*/
|
|
28
28
|
export const file_flightpath_mavlink_service: GenFile = /*@__PURE__*/
|
|
29
|
-
fileDesc("
|
|
29
|
+
fileDesc("CiBmbGlnaHRwYXRoL21hdmxpbmtfc2VydmljZS5wcm90bxIKZmxpZ2h0cGF0aCJRChhTdWJzY3JpYmVNZXNzYWdlc1JlcXV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_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]);
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Subscribe to all messages or a filtered subset
|
|
@@ -147,6 +147,106 @@ export type SubscribeMessagesResponse = Message<"flightpath.SubscribeMessagesRes
|
|
|
147
147
|
export const SubscribeMessagesResponseSchema: GenMessage<SubscribeMessagesResponse> = /*@__PURE__*/
|
|
148
148
|
messageDesc(file_flightpath_mavlink_service, 1);
|
|
149
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Send a MAVLink command to the drone
|
|
152
|
+
*
|
|
153
|
+
* @generated from message flightpath.SendCommandRequest
|
|
154
|
+
*/
|
|
155
|
+
export type SendCommandRequest = Message<"flightpath.SendCommandRequest"> & {
|
|
156
|
+
/**
|
|
157
|
+
* Target system ID (typically 1 for autopilot)
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: uint32 target_system_id = 1;
|
|
160
|
+
*/
|
|
161
|
+
targetSystemId: number;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Target component ID (typically 1 for autopilot)
|
|
165
|
+
*
|
|
166
|
+
* @generated from field: uint32 target_component_id = 2;
|
|
167
|
+
*/
|
|
168
|
+
targetComponentId: number;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* MAV_CMD enum value (e.g., 22 for MAV_CMD_NAV_TAKEOFF, 20 for MAV_CMD_NAV_RETURN_TO_LAUNCH)
|
|
172
|
+
*
|
|
173
|
+
* @generated from field: uint32 command = 3;
|
|
174
|
+
*/
|
|
175
|
+
command: number;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Command parameters (param1 through param7)
|
|
179
|
+
*
|
|
180
|
+
* @generated from field: float param1 = 4;
|
|
181
|
+
*/
|
|
182
|
+
param1: number;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: float param2 = 5;
|
|
186
|
+
*/
|
|
187
|
+
param2: number;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @generated from field: float param3 = 6;
|
|
191
|
+
*/
|
|
192
|
+
param3: number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: float param4 = 7;
|
|
196
|
+
*/
|
|
197
|
+
param4: number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @generated from field: float param5 = 8;
|
|
201
|
+
*/
|
|
202
|
+
param5: number;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: float param6 = 9;
|
|
206
|
+
*/
|
|
207
|
+
param6: number;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @generated from field: float param7 = 10;
|
|
211
|
+
*/
|
|
212
|
+
param7: number;
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Describes the message flightpath.SendCommandRequest.
|
|
217
|
+
* Use `create(SendCommandRequestSchema)` to create a new message.
|
|
218
|
+
*/
|
|
219
|
+
export const SendCommandRequestSchema: GenMessage<SendCommandRequest> = /*@__PURE__*/
|
|
220
|
+
messageDesc(file_flightpath_mavlink_service, 2);
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Response to a SendCommand request
|
|
224
|
+
*
|
|
225
|
+
* @generated from message flightpath.SendCommandResponse
|
|
226
|
+
*/
|
|
227
|
+
export type SendCommandResponse = Message<"flightpath.SendCommandResponse"> & {
|
|
228
|
+
/**
|
|
229
|
+
* Whether the command was sent successfully
|
|
230
|
+
*
|
|
231
|
+
* @generated from field: bool success = 1;
|
|
232
|
+
*/
|
|
233
|
+
success: boolean;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Error message if the command failed (optional)
|
|
237
|
+
*
|
|
238
|
+
* @generated from field: string error_message = 2;
|
|
239
|
+
*/
|
|
240
|
+
errorMessage: string;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Describes the message flightpath.SendCommandResponse.
|
|
245
|
+
* Use `create(SendCommandResponseSchema)` to create a new message.
|
|
246
|
+
*/
|
|
247
|
+
export const SendCommandResponseSchema: GenMessage<SendCommandResponse> = /*@__PURE__*/
|
|
248
|
+
messageDesc(file_flightpath_mavlink_service, 3);
|
|
249
|
+
|
|
150
250
|
/**
|
|
151
251
|
* MavlinkMessageType identifies the type of MAVLink message
|
|
152
252
|
*
|
|
@@ -221,6 +321,16 @@ export const MAVLinkService: GenService<{
|
|
|
221
321
|
input: typeof SubscribeMessagesRequestSchema;
|
|
222
322
|
output: typeof SubscribeMessagesResponseSchema;
|
|
223
323
|
},
|
|
324
|
+
/**
|
|
325
|
+
* Send a MAVLink command to the drone
|
|
326
|
+
*
|
|
327
|
+
* @generated from rpc flightpath.MAVLinkService.SendCommand
|
|
328
|
+
*/
|
|
329
|
+
sendCommand: {
|
|
330
|
+
methodKind: "unary";
|
|
331
|
+
input: typeof SendCommandRequestSchema;
|
|
332
|
+
output: typeof SendCommandResponseSchema;
|
|
333
|
+
},
|
|
224
334
|
}> = /*@__PURE__*/
|
|
225
335
|
serviceDesc(file_flightpath_mavlink_service, 0);
|
|
226
336
|
|