From b7be75793b8c3c8d73d4000947ea03ccdf780238 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Tue, 12 Oct 2021 11:44:47 +0200 Subject: [PATCH] fix: set model path --- cmd/rc-steering/rc-steering.go | 2 +- pkg/steering/steering.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/rc-steering/rc-steering.go b/cmd/rc-steering/rc-steering.go index c507f73..8ecd9d1 100644 --- a/cmd/rc-steering/rc-steering.go +++ b/cmd/rc-steering/rc-steering.go @@ -53,7 +53,7 @@ func main() { } defer client.Disconnect(50) - p := steering.NewPart(client, steeringTopic, cameraTopic, edgeVerbosity) + p := steering.NewPart(client, modelPath, steeringTopic, cameraTopic, edgeVerbosity) defer p.Stop() cli.HandleExit(p) diff --git a/pkg/steering/steering.go b/pkg/steering/steering.go index 96a1fc6..bca0b67 100644 --- a/pkg/steering/steering.go +++ b/pkg/steering/steering.go @@ -14,9 +14,10 @@ import ( "sort" ) -func NewPart(client mqtt.Client, steeringTopic, cameraTopic string, edgeVerbosity int) *Part { +func NewPart(client mqtt.Client, modelPath, steeringTopic, cameraTopic string, edgeVerbosity int) *Part { return &Part{ client: client, + modelPath: modelPath, steeringTopic: steeringTopic, cameraTopic: cameraTopic, edgeVebosity: edgeVerbosity,