Skip to content
Snippets Groups Projects
Commit e3635569 authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

Initial commit. split up from tanog repo

parents
No related branches found
No related tags found
No related merge requests found
# sid
This Repo contains the Following Proto defintions:
* hosted by the TANGO-GRPC (StationName:50032) - tango f
\ No newline at end of file
syntax = "proto3";
service Antennafield {
rpc GetAntenna(GetAntennaRequest) returns (AntennaReply) {}
rpc SetAntennaStatus(SetAntennaStatusRequest) returns (AntennaReply) {}
rpc SetAntennaUse(SetAntennaUseRequest) returns (AntennaReply) {}
}
enum Antenna_Status {
OK = 0;
SUSPICIOUS = 1;
BROKEN = 2;
BEYOND_REPAIR = 3;
NOT_AVAILABLE = 4;
}
enum Antenna_Use {
// use antenna only if it's OK or SUSPICIOUS
AUTO = 0;
// force antenna to be on, regardless of status
ON = 1;
// force antenna to be off, regardless of status
OFF = 2;
}
message Identifier {
// e.g. "LBA"
string antennafield_name = 1;
// e.g. "LBA00"
string antenna_name = 2;
}
message SetAntennaStatusRequest {
Identifier identifier = 1;
Antenna_Status antenna_status = 2 ;
}
message GetAntennaRequest {
Identifier identifier = 1;
}
message SetAntennaUseRequest {
Identifier identifier = 1;
Antenna_Use antenna_use = 2;
}
message AntennaResult {
Identifier identifier = 1;
Antenna_Use antenna_use = 2;
Antenna_Status antenna_status = 3;
}
message AntennaReply {
bool success = 1;
string exception = 2;
AntennaResult result = 3;
}
syntax = "proto3";
service Observation {
rpc StartObservation(StartObservationRequest) returns (ObservationReply){}
rpc StopObservation(StopObservationRequest) returns (ObservationReply) {}
}
message StartObservationRequest {
string configuration = 1;
}
message StopObservationRequest {
int64 observation_id = 1;
}
message ObservationReply {
bool success = 1;
string exception = 2;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment