速传,雷达输出数值功能

This commit is contained in:
tiger_zhou 2024-03-12 13:58:57 +08:00
parent 4540528528
commit a7ab416ebd
4 changed files with 17 additions and 17 deletions

View File

@ -239,9 +239,9 @@ type TrainEndsState struct {
// 加速度持续时间
AccCheckTime int32 `protobuf:"varint,8,opt,name=accCheckTime,proto3" json:"accCheckTime,omitempty"`
// 速传速度输出(米/秒)
AccOutSpeed float32 `protobuf:"fixed32,9,opt,name=accOutSpeed,proto3" json:"accOutSpeed,omitempty"`
AccOutSpeed int32 `protobuf:"varint,9,opt,name=accOutSpeed,proto3" json:"accOutSpeed,omitempty"`
// 雷达速度输出(米/秒)
RadarOutSpeed float32 `protobuf:"fixed32,10,opt,name=radarOutSpeed,proto3" json:"radarOutSpeed,omitempty"`
RadarOutSpeed int32 `protobuf:"varint,10,opt,name=radarOutSpeed,proto3" json:"radarOutSpeed,omitempty"`
}
func (x *TrainEndsState) Reset() {
@ -332,14 +332,14 @@ func (x *TrainEndsState) GetAccCheckTime() int32 {
return 0
}
func (x *TrainEndsState) GetAccOutSpeed() float32 {
func (x *TrainEndsState) GetAccOutSpeed() int32 {
if x != nil {
return x.AccOutSpeed
}
return 0
}
func (x *TrainEndsState) GetRadarOutSpeed() float32 {
func (x *TrainEndsState) GetRadarOutSpeed() int32 {
if x != nil {
return x.RadarOutSpeed
}
@ -412,9 +412,9 @@ var file_common_data_proto_rawDesc = []byte{
0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52,
0x0c, 0x61, 0x63, 0x63, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a,
0x0b, 0x61, 0x63, 0x63, 0x4f, 0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01,
0x28, 0x02, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x4f, 0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64, 0x12,
0x28, 0x05, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x4f, 0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64, 0x12,
0x24, 0x0a, 0x0d, 0x72, 0x61, 0x64, 0x61, 0x72, 0x4f, 0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64,
0x18, 0x0a, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0d, 0x72, 0x61, 0x64, 0x61, 0x72, 0x4f, 0x75, 0x74,
0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x61, 0x64, 0x61, 0x72, 0x4f, 0x75, 0x74,
0x53, 0x70, 0x65, 0x65, 0x64, 0x42, 0x2f, 0x5a, 0x2d, 0x6a, 0x6f, 0x79, 0x6c, 0x69, 0x6e, 0x6b,
0x2e, 0x63, 0x6c, 0x75, 0x62, 0x2f, 0x62, 0x6a, 0x2d, 0x72, 0x74, 0x73, 0x74, 0x73, 0x2d, 0x73,
0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x64, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,

View File

@ -103,8 +103,8 @@ type ConfigTrainEnds struct {
AccEnable bool `json:"accEnable"` // 加速计是否有效
AccCheckSpeedDiff float32 `json:"accCheckSpeedDiff"` // 加速计速度差
AccCheckTime int32 `json:"accCheckTime"` // 加速计储蓄时间
AccOutSpeed float32 `json:"accOutSpeed"` // 速传速度输出
RadarOutSpeed float32 `json:"radarOutSpeed"` // 雷达速度输出
AccOutSpeed int32 `json:"accOutSpeed"` // 速传速度输出
RadarOutSpeed int32 `json:"radarOutSpeed"` // 雷达速度输出
}
type ConfigTrainData struct {
//Mass int32 `json:"mass" form:"mass"` // 列车的质量100=1ton

View File

@ -2564,9 +2564,9 @@ type TrainEndsStateMqtt struct {
// 加速度持续时间
AccCheckTime int32 `protobuf:"varint,8,opt,name=accCheckTime,proto3" json:"accCheckTime,omitempty"`
// 速传速度输出(米/秒)
AccOutSpeed string `protobuf:"bytes,9,opt,name=accOutSpeed,proto3" json:"accOutSpeed,omitempty"`
AccOutSpeed int32 `protobuf:"varint,9,opt,name=accOutSpeed,proto3" json:"accOutSpeed,omitempty"`
// 雷达速度输出(米/秒)
RadarOutSpeed string `protobuf:"bytes,10,opt,name=radarOutSpeed,proto3" json:"radarOutSpeed,omitempty"`
RadarOutSpeed int32 `protobuf:"varint,10,opt,name=radarOutSpeed,proto3" json:"radarOutSpeed,omitempty"`
}
func (x *TrainEndsStateMqtt) Reset() {
@ -2657,18 +2657,18 @@ func (x *TrainEndsStateMqtt) GetAccCheckTime() int32 {
return 0
}
func (x *TrainEndsStateMqtt) GetAccOutSpeed() string {
func (x *TrainEndsStateMqtt) GetAccOutSpeed() int32 {
if x != nil {
return x.AccOutSpeed
}
return ""
return 0
}
func (x *TrainEndsStateMqtt) GetRadarOutSpeed() string {
func (x *TrainEndsStateMqtt) GetRadarOutSpeed() int32 {
if x != nil {
return x.RadarOutSpeed
}
return ""
return 0
}
// 继电器状态
@ -4378,9 +4378,9 @@ var file_device_state_proto_rawDesc = []byte{
0x66, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x69, 0x6d,
0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x61, 0x63, 0x63, 0x43, 0x68, 0x65, 0x63,
0x6b, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x4f, 0x75, 0x74, 0x53,
0x70, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x4f,
0x70, 0x65, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x4f,
0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x61, 0x64, 0x61, 0x72,
0x4f, 0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
0x4f, 0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d,
0x72, 0x61, 0x64, 0x61, 0x72, 0x4f, 0x75, 0x74, 0x53, 0x70, 0x65, 0x65, 0x64, 0x22, 0x56, 0x0a,
0x0a, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x78,

@ -1 +1 @@
Subproject commit 7694e092231530cbfa1d838902d802ca8c1de336
Subproject commit 39be7b4bfa46b9bd23fbb1696e9cbf96dd138232