sgianl 测试

This commit is contained in:
xzb 2023-10-16 14:57:44 +08:00
parent 1521868a88
commit f687aba479

View File

@ -9,7 +9,6 @@ import (
"joylink.club/rtsssimulation/fi" "joylink.club/rtsssimulation/fi"
"joylink.club/rtsssimulation/repository" "joylink.club/rtsssimulation/repository"
"joylink.club/rtsssimulation/repository/model/proto" "joylink.club/rtsssimulation/repository/model/proto"
"log"
"log/slog" "log/slog"
"os" "os"
"time" "time"
@ -52,12 +51,6 @@ func main() {
time.Sleep(3 * time.Second) time.Sleep(3 * time.Second)
sim.Close() sim.Close()
} }
func worldLog(w ecs.World, logInfo string) {
ecs.Request(w, func() any {
log.Println(logInfo)
return nil
})
}
func addProtoSignal2XH1(r *proto.Repository) { func addProtoSignal2XH1(r *proto.Repository) {
//相关继电器 //相关继电器
r.Relays = append(r.Relays, &proto.Relay{Id: "2xh1-ddj", Code: consts.SIGNAL_DDJ, Model: proto.Relay_JWXC_1700}) r.Relays = append(r.Relays, &proto.Relay{Id: "2xh1-ddj", Code: consts.SIGNAL_DDJ, Model: proto.Relay_JWXC_1700})