@@ -21,6 +21,12 @@ service ParamServerService {
21
21
* If the type is wrong, the result will be `WRONG_TYPE`.
22
22
*/
23
23
rpc ProvideParamInt (ProvideParamIntRequest ) returns (ProvideParamIntResponse ) { option (mavsdk.options.async_type ) = SYNC ; }
24
+ /*
25
+ * Change an int parameter internally.
26
+ *
27
+ * If the type is wrong, the result will be `WRONG_TYPE`.
28
+ */
29
+ rpc ChangeParamInt (ChangeParamIntRequest ) returns (ChangeParamIntResponse ) { option (mavsdk.options.async_type ) = SYNC ; }
24
30
/*
25
31
* Retrieve a float parameter.
26
32
*
@@ -33,6 +39,12 @@ service ParamServerService {
33
39
* If the type is wrong, the result will be `WRONG_TYPE`.
34
40
*/
35
41
rpc ProvideParamFloat (ProvideParamFloatRequest ) returns (ProvideParamFloatResponse ) { option (mavsdk.options.async_type ) = SYNC ; }
42
+ /*
43
+ * Change a float parameter internally.
44
+ *
45
+ * If the type is wrong, the result will be `WRONG_TYPE`.
46
+ */
47
+ rpc ChangeParamFloat (ChangeParamFloatRequest ) returns (ChangeParamFloatResponse ) { option (mavsdk.options.async_type ) = SYNC ; }
36
48
/*
37
49
* Retrieve a custom parameter.
38
50
*
@@ -45,6 +57,12 @@ service ParamServerService {
45
57
* If the type is wrong, the result will be `WRONG_TYPE`.
46
58
*/
47
59
rpc ProvideParamCustom (ProvideParamCustomRequest ) returns (ProvideParamCustomResponse ) { option (mavsdk.options.async_type ) = SYNC ; }
60
+ /*
61
+ * Change a custom parameter internally.
62
+ *
63
+ * If the type is wrong, the result will be `WRONG_TYPE`.
64
+ */
65
+ rpc ChangeParamCustom (ChangeParamCustomRequest ) returns (ChangeParamCustomResponse ) { option (mavsdk.options.async_type ) = SYNC ; }
48
66
/*
49
67
* Retrieve all parameters.
50
68
*/
@@ -54,7 +72,6 @@ service ParamServerService {
54
72
message RetrieveParamIntRequest {
55
73
string name = 1 ; // Name of the parameter
56
74
}
57
-
58
75
message RetrieveParamIntResponse {
59
76
ParamServerResult param_server_result = 1 ;
60
77
int32 value = 2 ; // Value of the requested parameter
@@ -68,6 +85,14 @@ message ProvideParamIntResponse {
68
85
ParamServerResult param_server_result = 1 ;
69
86
}
70
87
88
+ message ChangeParamIntRequest {
89
+ string name = 1 ; // Name of the parameter to change
90
+ int32 value = 2 ; // Value the parameter should be set to
91
+ }
92
+ message ChangeParamIntResponse {
93
+ ParamServerResult param_server_result = 1 ;
94
+ }
95
+
71
96
message RetrieveParamFloatRequest {
72
97
string name = 1 ; // Name of the parameter
73
98
}
@@ -84,10 +109,17 @@ message ProvideParamFloatResponse {
84
109
ParamServerResult param_server_result = 1 ;
85
110
}
86
111
112
+ message ChangeParamFloatRequest {
113
+ string name = 1 ; // Name of the parameter to change
114
+ float value = 2 ; // Value the parameter should be set to
115
+ }
116
+ message ChangeParamFloatResponse {
117
+ ParamServerResult param_server_result = 1 ;
118
+ }
119
+
87
120
message RetrieveParamCustomRequest {
88
121
string name = 1 ; // Name of the parameter
89
122
}
90
-
91
123
message RetrieveParamCustomResponse {
92
124
ParamServerResult param_server_result = 1 ;
93
125
string value = 2 ; // Value of the requested parameter
@@ -101,6 +133,14 @@ message ProvideParamCustomResponse {
101
133
ParamServerResult param_server_result = 1 ;
102
134
}
103
135
136
+ message ChangeParamCustomRequest {
137
+ string name = 1 ; // Name of the parameter to change
138
+ string value = 2 ; // Value the parameter should be set to
139
+ }
140
+ message ChangeParamCustomResponse {
141
+ ParamServerResult param_server_result = 1 ;
142
+ }
143
+
104
144
105
145
message RetrieveAllParamsRequest {}
106
146
0 commit comments