fix: set model path

This commit is contained in:
Cyrille Nofficial 2021-10-12 11:44:47 +02:00
parent 0dfd7a595b
commit b7be75793b
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@ func main() {
} }
defer client.Disconnect(50) defer client.Disconnect(50)
p := steering.NewPart(client, steeringTopic, cameraTopic, edgeVerbosity) p := steering.NewPart(client, modelPath, steeringTopic, cameraTopic, edgeVerbosity)
defer p.Stop() defer p.Stop()
cli.HandleExit(p) cli.HandleExit(p)

View File

@ -14,9 +14,10 @@ import (
"sort" "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{ return &Part{
client: client, client: client,
modelPath: modelPath,
steeringTopic: steeringTopic, steeringTopic: steeringTopic,
cameraTopic: cameraTopic, cameraTopic: cameraTopic,
edgeVebosity: edgeVerbosity, edgeVebosity: edgeVerbosity,