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)
p := steering.NewPart(client, steeringTopic, cameraTopic, edgeVerbosity)
p := steering.NewPart(client, modelPath, steeringTopic, cameraTopic, edgeVerbosity)
defer p.Stop()
cli.HandleExit(p)

View File

@ -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,