列车前端操作接口,列车连接三方映射接口及ws返回列车连接状态
This commit is contained in:
parent
ab72ff8e00
commit
88b5ea8c77
|
@ -2,16 +2,9 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
|
||||||
"os"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
"joylink.club/ecs"
|
"joylink.club/ecs"
|
||||||
rtss_simulation "joylink.club/rtsssimulation"
|
|
||||||
"joylink.club/rtsssimulation/consts"
|
"joylink.club/rtsssimulation/consts"
|
||||||
"joylink.club/rtsssimulation/entity"
|
"joylink.club/rtsssimulation/entity"
|
||||||
"joylink.club/rtsssimulation/examples/signal_3xh1/sigSys"
|
|
||||||
"joylink.club/rtsssimulation/fi"
|
|
||||||
"joylink.club/rtsssimulation/repository"
|
"joylink.club/rtsssimulation/repository"
|
||||||
"joylink.club/rtsssimulation/repository/model/proto"
|
"joylink.club/rtsssimulation/repository/model/proto"
|
||||||
)
|
)
|
||||||
|
@ -22,7 +15,7 @@ const (
|
||||||
|
|
||||||
// 信号机测试
|
// 信号机测试
|
||||||
func main() {
|
func main() {
|
||||||
logConfig := &slog.HandlerOptions{AddSource: false, Level: slog.LevelDebug}
|
/* logConfig := &slog.HandlerOptions{AddSource: false, Level: slog.LevelDebug}
|
||||||
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stderr, logConfig)))
|
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stderr, logConfig)))
|
||||||
//
|
//
|
||||||
proto := &proto.Repository{}
|
proto := &proto.Repository{}
|
||||||
|
@ -52,7 +45,7 @@ func main() {
|
||||||
fi.DriveSignal3XH1Lx(sim, IdSignal3XH1, false)
|
fi.DriveSignal3XH1Lx(sim, IdSignal3XH1, false)
|
||||||
//
|
//
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
sim.Close()
|
sim.Close()*/
|
||||||
}
|
}
|
||||||
func addProtoSignal3XH1(r *proto.Repository) {
|
func addProtoSignal3XH1(r *proto.Repository) {
|
||||||
//相关继电器
|
//相关继电器
|
||||||
|
|
Loading…
Reference in New Issue