[refactor] Use protobuf messages

This commit is contained in:
2020-01-01 20:33:41 +01:00
parent 7b0cb1c71f
commit 7da813e837
29 changed files with 12643 additions and 66 deletions

View File

@ -3,7 +3,6 @@ package main
import (
"flag"
"github.com/cyrilix/robocar-base/cli"
"github.com/cyrilix/robocar-base/mqttdevice"
"github.com/cyrilix/robocar-throttle/part"
"log"
"os"
@ -51,9 +50,7 @@ func main() {
}
defer client.Disconnect(50)
pub := mqttdevice.NewPahoMqttPubSub(client, mqttQos, mqttRetain)
p := part.NewPart(client, pub, throttleTopic, driveModeTopic, rcThrottleTopic, minThrottle, maxThrottle, 2)
p := part.NewPart(client, throttleTopic, driveModeTopic, rcThrottleTopic, float32(minThrottle), float32(maxThrottle), 2)
defer p.Stop()
cli.HandleExit(p)