refactor: rename part to controller

This commit is contained in:
2022-08-20 21:33:45 +02:00
parent ee02b09657
commit 5a386de4ab
3 changed files with 15 additions and 15 deletions

View File

@ -3,7 +3,7 @@ package main
import (
"flag"
"github.com/cyrilix/robocar-base/cli"
"github.com/cyrilix/robocar-steering/pkg/part"
"github.com/cyrilix/robocar-steering/pkg/steering"
"go.uber.org/zap"
"log"
"os"
@ -57,7 +57,7 @@ func main() {
}
defer client.Disconnect(50)
p := part.NewPart(client, steeringTopic, driveModeTopic, rcSteeringTopic, tfSteeringTopic, debug)
p := steering.NewController(client, steeringTopic, driveModeTopic, rcSteeringTopic, tfSteeringTopic, debug)
defer p.Stop()
cli.HandleExit(p)