rts-sim-module/model/axle_model.go

18 lines
379 B
Go
Raw Normal View History

2023-08-14 16:23:34 +08:00
package model
2023-08-23 09:54:41 +08:00
import (
"joylink.club/rtsssimulation/cstate"
"joylink.club/rtsssimulation/umi"
)
2023-08-21 15:12:57 +08:00
2023-08-23 09:54:41 +08:00
// 计轴检测点模型
2023-08-14 16:23:34 +08:00
type AxlePointModel struct {
2023-08-14 18:06:26 +08:00
DeviceModel
2023-08-14 16:23:34 +08:00
//计轴检测点所在轨道
2023-08-23 09:54:41 +08:00
LinkOffset umi.ILinkOffsetRef
2023-08-14 16:23:34 +08:00
}
2023-08-21 15:12:57 +08:00
func NewAxlePointModel(id string) *AxlePointModel {
2023-08-22 11:00:14 +08:00
return &AxlePointModel{DeviceModel: DeviceModel{Id: id, Type: cstate.DeviceType_AxlePoint}}
2023-08-21 15:12:57 +08:00
}