From a78bedd598da12b925b8983a537f6ddf9aeee01f Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Wed, 31 Aug 2022 21:27:05 +0200 Subject: [PATCH] add debug logs --- pkg/steering/controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/steering/controller.go b/pkg/steering/controller.go index 6cec875..4e286a2 100644 --- a/pkg/steering/controller.go +++ b/pkg/steering/controller.go @@ -186,6 +186,7 @@ func (c *Controller) onTFSteering(_ mqtt.Client, message mqtt.Message) { func (c *Controller) adjustSteering(evt *events.SteeringMessage) ([]byte, error) { steering := float64(evt.GetSteering()) steering = c.corrector.AdjustFromObjectPosition(steering, c.Objects()) + zap.S().Debugf("adjust steering to avoid objects: %v -> %v", evt.GetSteering(), steering) evt.Steering = float32(steering) // override payload content payload, err := proto.Marshal(evt)