Add recording functionality, did some other minor tweaks as well to protos
This commit is contained in:
@@ -7,6 +7,8 @@ option java_multiple_files = true;
|
||||
option java_package = "org.vato.carcontroller";
|
||||
option java_outer_classname = "MotorServiceProto";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
message ThrottleRequest{
|
||||
float throttle = 1;
|
||||
}
|
||||
@@ -23,7 +25,17 @@ message SteeringResponse{
|
||||
bool steeringSet = 1;
|
||||
}
|
||||
|
||||
message RecordingReqeust{
|
||||
bool record = 1;
|
||||
}
|
||||
|
||||
message SaveRequest{
|
||||
string file = 1;
|
||||
}
|
||||
|
||||
service CarControl{
|
||||
rpc SetThrottle(ThrottleRequest) returns (ThrottleResponse){}
|
||||
rpc SetSteering(SteeringRequest) returns (SteeringResponse){}
|
||||
}
|
||||
rpc Record(RecordingReqeust) returns (google.protobuf.Empty) {}
|
||||
rpc SaveRecordedData(SaveRequest) returns (google.protobuf.Empty) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user