-
Notifications
You must be signed in to change notification settings - Fork 90
/
core.proto
38 lines (32 loc) · 1.18 KB
/
core.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
syntax = "proto3";
package mavsdk.rpc.core;
option java_package = "io.mavsdk.core";
option java_outer_classname = "CoreProto";
// Access to the connection state and core configurations
service CoreService {
/*
* Subscribe to 'connection state' updates.
*/
rpc SubscribeConnectionState(SubscribeConnectionStateRequest) returns(stream ConnectionStateResponse) {}
/*
* Set timeout of MAVLink transfers.
*
* The default timeout used is generally (0.5 seconds) seconds.
* If MAVSDK is used on the same host this timeout can be reduced, while
* if MAVSDK has to communicate over links with high latency it might
* need to be increased to prevent timeouts.
*/
rpc SetMavlinkTimeout(SetMavlinkTimeoutRequest) returns(SetMavlinkTimeoutResponse) {}
}
message SubscribeConnectionStateRequest {}
message ConnectionStateResponse {
ConnectionState connection_state = 1; // Connection state
}
message SetMavlinkTimeoutRequest {
double timeout_s = 1; // Timeout in seconds
}
message SetMavlinkTimeoutResponse {}
// Connection state type.
message ConnectionState {
bool is_connected = 2; // Whether the vehicle got connected or disconnected
}