[change] 更新PB注释

This commit is contained in:
xinfengkun
2022-11-03 17:12:03 +08:00
parent 1a007143e4
commit c6d4685d15

View File

@@ -3,21 +3,21 @@ syntax = "proto2";
package system_master;
enum SystemState {
SYS_STARTING = 0;
SYS_RUNNING = 1;
SYS_EXITING = 2;
SYS_FAULT = 3;
PILOT_READY = 4;
AUTO_PILOT_STARTING = 5;
AUTO_PILOT_RUNNING = 6;
REMOTE_PILOT_STARTING = 7;
REMOTE_PILOT_RUNNING = 8;
SYS_STARTING = 0; //系统正在启动
SYS_RUNNING = 1; //系统运行中
SYS_EXITING = 2; //系统正在关闭 例如重启
SYS_FAULT = 3; //系统异常
PILOT_READY = 4; //自动驾驶准备就绪,轨迹下载完成,可以开始自动驾驶
AUTO_PILOT_STARTING = 5; //正在开始自动驾驶 自动驾驶命令已下发,正在启动中
AUTO_PILOT_RUNNING = 6; //自动驾驶运行中
REMOTE_PILOT_STARTING = 7; //平行驾驶启动中
REMOTE_PILOT_RUNNING = 8; //平行驾驶运行中
}
enum HealthState {
NORMAL = 0;
FAULT = 1;
UNKNOW = 2;
NORMAL = 0;//正常
FAULT = 1;//异常
UNKNOW = 2;//未知
}
message HealthInfo{
@@ -29,19 +29,19 @@ message HealthInfo{
message TopicInfo{
optional string name = 1; //topic name
optional int32 hz = 2;
optional int32 hz = 2; //Topic发送的频率
// optional int32 max_delay = 3; //unit msec
}
message DropTopic{
required int32 sum = 1; //dropped topic sum
required int32 sum = 1; //dropped topic sum 有多少个Topic掉帧
repeated TopicInfo topic = 2;
}
message StatusInfo {
required SystemState sys_state=1; // 当前消息状态
repeated HealthInfo health_info=2; // 健康检查状态信息
repeated HealthInfo health_info=2; // 健康检查状态信息
optional DropTopic topic_drop_info=3; // topic 掉频信息, 如有掉频添加没有不添加
optional string reserved = 4; // 预留可选字段,用于接口扩充或者,其他信息补充
}