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,